| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9f2065e commit 91f42b3
23 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,9 +1,8 @@ | |||
| 1 | 1 | using System; | |
| 2 | 2 | using System.Collections.Generic; | |
| 3 | 3 | using System.Text; | |
| 4 | - using Tensorflow; | ||
| 5 | 4 | ||
| 6 | - namespace TensorFlowNET.Core | ||
| 5 | + namespace Tensorflow | ||
| 7 | 6 | { | |
| 8 | 7 | public class BaseSession | |
| 9 | 8 | { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,9 +2,8 @@ | |||
| 2 | 2 | using System.Collections.Generic; | |
| 3 | 3 | using System.Runtime.InteropServices; | |
| 4 | 4 | using System.Text; | |
| 5 | - using Tensorflow; | ||
| 6 | 5 | ||
| 7 | - namespace TensorFlowNET.Core | ||
| 6 | + namespace Tensorflow | ||
| 8 | 7 | { | |
| 9 | 8 | public class Buffer | |
| 10 | 9 | { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,7 @@ | |||
| 2 | 2 | using System.Collections.Generic; | |
| 3 | 3 | using System.Text; | |
| 4 | 4 | ||
| 5 | - namespace TensorFlowNET.Core.Eager | ||
| 5 | + namespace Tensorflow.Eager | ||
| 6 | 6 | { | |
| 7 | 7 | public class Context | |
| 8 | 8 | { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,10 +3,9 @@ | |||
| 3 | 3 | using System.Linq; | |
| 4 | 4 | using System.Runtime.InteropServices; | |
| 5 | 5 | using System.Text; | |
| 6 | - using Tensorflow; | ||
| 7 | 6 | using TF_DataType = Tensorflow.DataType; | |
| 8 | 7 | ||
| 9 | - namespace TensorFlowNET.Core | ||
| 8 | + namespace Tensorflow | ||
| 10 | 9 | { | |
| 11 | 10 | /// <summary> | |
| 12 | 11 | /// TensorFlow uses a dataflow graph to represent your computation in terms of the dependencies between individual operations. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,7 @@ | |||
| 2 | 2 | using System.Collections.Generic; | |
| 3 | 3 | using System.Text; | |
| 4 | 4 | ||
| 5 | - namespace TensorFlowNET.Core | ||
| 5 | + namespace Tensorflow | ||
| 6 | 6 | { | |
| 7 | 7 | public sealed class MonoPInvokeCallbackAttribute : Attribute | |
| 8 | 8 | { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,10 +3,9 @@ | |||
| 3 | 3 | using System.IO; | |
| 4 | 4 | using System.Runtime.InteropServices; | |
| 5 | 5 | using System.Text; | |
| 6 | - using Tensorflow; | ||
| 7 | 6 | using static Tensorflow.OpDef.Types; | |
| 8 | 7 | ||
| 9 | - namespace TensorFlowNET.Core | ||
| 8 | + namespace Tensorflow | ||
| 10 | 9 | { | |
| 11 | 10 | public class OpDefLibrary | |
| 12 | 11 | { | |
@@ -39,7 +38,9 @@ public unsafe Operation _apply_op_helper(string op_type_name, string name = "", | |||
| 39 | 38 | name = op_type_name; | |
| 40 | 39 | } | |
| 41 | 40 | ||
| 42 | - foreach(var attr_def in op_def.Attr) | ||
| 41 | + string scope = g.unique_name(name) + "/"; | ||
| 42 | + | ||
| 43 | + foreach (var attr_def in op_def.Attr) | ||
| 43 | 44 | { | |
| 44 | 45 | if (attr_def.Type != "type") continue; | |
| 45 | 46 | var key = attr_def.Name; | |
@@ -84,7 +85,7 @@ public unsafe Operation _apply_op_helper(string op_type_name, string name = "", | |||
| 84 | 85 | } | |
| 85 | 86 | ||
| 86 | 87 | var op = g.create_op(op_type_name, null, output_types.ToArray(), | |
| 87 | - name: "Placeholder_1/", | ||
| 88 | + name: scope, | ||
| 88 | 89 | input_types: new DataType[] { }, | |
| 89 | 90 | attrs: attr_protos, | |
| 90 | 91 | op_def: op_def); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,10 +1,9 @@ | |||
| 1 | 1 | using System; | |
| 2 | 2 | using System.Collections.Generic; | |
| 3 | 3 | using System.Text; | |
| 4 | - using Tensorflow; | ||
| 5 | 4 | using TF_DataType = Tensorflow.DataType; | |
| 6 | 5 | ||
| 7 | - namespace TensorFlowNET.Core | ||
| 6 | + namespace Tensorflow | ||
| 8 | 7 | { | |
| 9 | 8 | public class Operation | |
| 10 | 9 | { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,7 @@ | |||
| 2 | 2 | using System.Collections.Generic; | |
| 3 | 3 | using System.Text; | |
| 4 | 4 | ||
| 5 | - namespace TensorFlowNET.Core | ||
| 5 | + namespace Tensorflow | ||
| 6 | 6 | { | |
| 7 | 7 | public class Session : BaseSession | |
| 8 | 8 | { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,9 +1,8 @@ | |||
| 1 | 1 | using System; | |
| 2 | 2 | using System.Collections.Generic; | |
| 3 | 3 | using System.Text; | |
| 4 | - using Tensorflow; | ||
| 5 | 4 | ||
| 6 | - namespace TensorFlowNET.Core | ||
| 5 | + namespace Tensorflow | ||
| 7 | 6 | { | |
| 8 | 7 | public class Status | |
| 9 | 8 | { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,9 +1,8 @@ | |||
| 1 | 1 | using System; | |
| 2 | 2 | using System.Collections.Generic; | |
| 3 | 3 | using System.Text; | |
| 4 | - using Tensorflow; | ||
| 5 | 4 | ||
| 6 | - namespace TensorFlowNET.Core | ||
| 5 | + namespace Tensorflow | ||
| 7 | 6 | { | |
| 8 | 7 | public class Tensor | |
| 9 | 8 | { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments