Skip to content

Commit 3231500

Browse files
committed
linspace and meshgrid.
1 parent f3eb31f commit 3231500

133 files changed

Lines changed: 472 additions & 216 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/TensorFlowNET.Console/MemoryBasicTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Tensorflow.Numpy;
1+
using Tensorflow.NumPy;
22
using System;
33
using Tensorflow.Keras.ArgsDefinition;
44
using Tensorflow.Keras.Engine.DataAdapters;

src/TensorFlowNET.Console/MemoryFuncGraphTest.cs

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

src/TensorFlowNET.Console/MemoryKerasTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Tensorflow.Numpy;
1+
using Tensorflow.NumPy;
22
using System;
33
using static Tensorflow.Binding;
44
using static Tensorflow.KerasApi;

src/TensorFlowNET.Console/MemoryMonitor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Diagnostics;
33
using System.Threading;
44
using System.Threading.Tasks;
5-
using Tensorflow.Numpy;
5+
using Tensorflow.NumPy;
66
using static Tensorflow.Binding;
77
using static Tensorflow.KerasApi;
88

src/TensorFlowNET.Core/APIs/tf.array.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ You may obtain a copy of the License at
1414
limitations under the License.
1515
******************************************************************************/
1616

17-
using Tensorflow.Numpy;
17+
using Tensorflow.NumPy;
1818
using System.Collections.Generic;
1919
using System.Diagnostics;
2020
using System.Linq;
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*****************************************************************************
2+
Copyright 2021 Haiping Chen. All Rights Reserved.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
******************************************************************************/
16+
17+
using Tensorflow.NumPy;
18+
19+
namespace Tensorflow
20+
{
21+
public partial class tensorflow
22+
{
23+
/// <summary>
24+
/// NumPy API on TensorFlow
25+
/// https://www.tensorflow.org/api_docs/python/tf/experimental/numpy
26+
/// </summary>
27+
public NumPyImpl numpy => new NumPyImpl();
28+
}
29+
}

src/TensorFlowNET.Core/Binding.Util.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ You may obtain a copy of the License at
1414
limitations under the License.
1515
******************************************************************************/
1616

17-
using Tensorflow.Numpy;
17+
using Tensorflow.NumPy;
1818
using System;
1919
using System.Collections;
2020
using System.Collections.Generic;
@@ -174,6 +174,9 @@ public static int len(object a)
174174
throw new NotImplementedException("len() not implemented for type: " + a.GetType());
175175
}
176176

177+
public static int min(int a, int b)
178+
=> Math.Min(a, b);
179+
177180
public static float min(float a, float b)
178181
=> Math.Min(a, b);
179182

src/TensorFlowNET.Core/Data/DataSetBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Tensorflow.Numpy;
1+
using Tensorflow.NumPy;
22

33
namespace Tensorflow
44
{

src/TensorFlowNET.Core/Data/DatasetManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Tensorflow.Numpy;
1+
using Tensorflow.NumPy;
22
using System.Collections.Generic;
33
using Tensorflow.Data;
44

src/TensorFlowNET.Core/Data/Datasets.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Tensorflow.Numpy;
1+
using Tensorflow.NumPy;
22

33
namespace Tensorflow
44
{

0 commit comments

Comments
 (0)