FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

restructure dir and namespace · MichaelZhero/TensorFlow.NET@91f42b3 · GitHub

Repository navigation

Commit 91f42b3

Browse files
committed
restructure dir and namespace
1 parent 9f2065e commit 91f42b3

23 files changed

Lines changed: 53 additions & 58 deletions

‎src/TensorFlowNET.Core/BaseSession.cs‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Text;
4-
using Tensorflow;
54

6-
namespace TensorFlowNET.Core
5+
namespace Tensorflow
76
{
87
public class BaseSession
98
{

‎src/TensorFlowNET.Core/Buffer.cs‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
using System.Collections.Generic;
33
using System.Runtime.InteropServices;
44
using System.Text;
5-
using Tensorflow;
65

7-
namespace TensorFlowNET.Core
6+
namespace Tensorflow
87
{
98
public class Buffer
109
{

‎src/TensorFlowNET.Core/Eager/Context.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Collections.Generic;
33
using System.Text;
44

5-
namespace TensorFlowNET.Core.Eager
5+
namespace Tensorflow.Eager
66
{
77
public class Context
88
{

‎src/TensorFlowNET.Core/Graph.cs‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
using System.Linq;
44
using System.Runtime.InteropServices;
55
using System.Text;
6-
using Tensorflow;
76
using TF_DataType = Tensorflow.DataType;
87

9-
namespace TensorFlowNET.Core
8+
namespace Tensorflow
109
{
1110
/// <summary>
1211
/// TensorFlow uses a dataflow graph to represent your computation in terms of the dependencies between individual operations.

‎src/TensorFlowNET.Core/MonoPInvokeCallbackAttribute.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Collections.Generic;
33
using System.Text;
44

5-
namespace TensorFlowNET.Core
5+
namespace Tensorflow
66
{
77
public sealed class MonoPInvokeCallbackAttribute : Attribute
88
{

‎src/TensorFlowNET.Core/OpDefLibrary.cs‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
using System.IO;
44
using System.Runtime.InteropServices;
55
using System.Text;
6-
using Tensorflow;
76
using static Tensorflow.OpDef.Types;
87

9-
namespace TensorFlowNET.Core
8+
namespace Tensorflow
109
{
1110
public class OpDefLibrary
1211
{
@@ -39,7 +38,9 @@ public unsafe Operation _apply_op_helper(string op_type_name, string name = "",
3938
name = op_type_name;
4039
}
4140

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)
4344
{
4445
if (attr_def.Type != "type") continue;
4546
var key = attr_def.Name;
@@ -84,7 +85,7 @@ public unsafe Operation _apply_op_helper(string op_type_name, string name = "",
8485
}
8586

8687
var op = g.create_op(op_type_name, null, output_types.ToArray(),
87-
name: "Placeholder_1/",
88+
name: scope,
8889
input_types: new DataType[] { },
8990
attrs: attr_protos,
9091
op_def: op_def);

‎src/TensorFlowNET.Core/Operation.cs‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Text;
4-
using Tensorflow;
54
using TF_DataType = Tensorflow.DataType;
65

7-
namespace TensorFlowNET.Core
6+
namespace Tensorflow
87
{
98
public class Operation
109
{

‎src/TensorFlowNET.Core/Session.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Collections.Generic;
33
using System.Text;
44

5-
namespace TensorFlowNET.Core
5+
namespace Tensorflow
66
{
77
public class Session : BaseSession
88
{

‎src/TensorFlowNET.Core/Status.cs‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Text;
4-
using Tensorflow;
54

6-
namespace TensorFlowNET.Core
5+
namespace Tensorflow
76
{
87
public class Status
98
{

‎src/TensorFlowNET.Core/Tensor.cs‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Text;
4-
using Tensorflow;
54

6-
namespace TensorFlowNET.Core
5+
namespace Tensorflow
76
{
87
public class Tensor
98
{

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL