Skip to content

Commit 67b4ceb

Browse files
committed
Remove obselete usages of Numsharp.
1 parent 45b2b06 commit 67b4ceb

File tree

7 files changed

+9
-10
lines changed

7 files changed

+9
-10
lines changed

docs/components/Constant.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var c4 = tf.constant("Big Tree"); // string
2424

2525
Initialize a constant through ndarray:
2626

27-
TF.NET works very well with `NumSharp`'s `NDArray`. You can create a tensor from .NET primitive data type and NDArray as well. An `ndarray` is a (usually fixed-size) multidimensional container of items of the same type and size. The number of dimensions and items in an array is defined by its `shape`, which is a tuple of N non-negative integers that specify the sizes of each dimension.
27+
TF.NET used to work with `Numsharp`, which is a C# binding of `Numpy`. In the current version, however, TF.NET put the `NDArray` and many other numpy features inside the TF.NET, you can import `using Tensorflow.NumPy` to create an `NDArray`.
2828

2929
```csharp
3030
// dtype=int, shape=(2, 3)

docs/components/ConvolutionNeuralNetwork.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Get started with the implementation:
2020

2121
```csharp
2222
using System;
23-
using NumSharp;
23+
using Tensorflow.NumPy;
2424
using Tensorflow;
2525
using TensorFlowNET.Examples.Utility;
2626
using static Tensorflow.Python;

docs/components/NeuralNetwork.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Get started with the implementation step by step:
2020

2121
```csharp
2222
using System;
23-
using NumSharp;
23+
using Tensorflow.NumPy;
2424
using Tensorflow;
2525
using TensorFlowNET.Examples.Utility;
2626
using static Tensorflow.Python;

docs/components/tensor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Console.WriteLine($"t1: {t1}, t2: {t2}, t3: {t3}");
3232

3333
## Data Structure of Tensor
3434

35-
TF uses column major order. If we use NumSharp to generate a 2 x 3 matrix, if we access the data from 0 to 5 in order, we won't get a number of 1-6, but we get the order of 1, 4, 2, 5, 3, 6. a set of numbers.
35+
TF uses column major order. If we generate a 2 x 3 matrix (`NDArray`), if we access the data from 0 to 5 in order, we won't get a number of 1-6, but we get the order of 1, 4, 2, 5, 3, 6. a set of numbers.
3636

3737
```csharp
3838
// Generate a matrix:[[1, 2, 3], [4, 5, 6]]

docs/essentials/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Import TF.NET and Keras API in your project.
3232
using static Tensorflow.Binding;
3333
using static Tensorflow.KerasApi;
3434
using Tensorflow;
35-
using NumSharp;
35+
using Tensorflow.NumPy;
3636
```
3737

3838
Linear Regression in `Eager` mode:

docs/tutorials/ImageRecognition.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Image Recognition
22

3-
An example for using the [TensorFlow.NET](https://github.com/SciSharp/TensorFlow.NET) and [NumSharp](https://github.com/SciSharp/NumSharp) for image recognition, it will use a pre-trained inception model to predict a image which outputs the categories sorted by probability. The original paper is [here](https://arxiv.org/pdf/1512.00567.pdf). The Inception architecture of GoogLeNet was designed to perform well even under strict constraints on memory and computational budget. The computational cost of Inception is also much lower than other performing successors. This has made it feasible to utilize Inception networks in big-data scenarios, where huge amount of data needed to be processed at reasonable cost or scenarios where memory or computational capacity is inherently limited, for example in mobile vision settings.
3+
An example for using the [TensorFlow.NET](https://github.com/SciSharp/TensorFlow.NET) for image recognition, it will use a pre-trained inception model to predict a image which outputs the categories sorted by probability. The original paper is [here](https://arxiv.org/pdf/1512.00567.pdf). The Inception architecture of GoogLeNet was designed to perform well even under strict constraints on memory and computational budget. The computational cost of Inception is also much lower than other performing successors. This has made it feasible to utilize Inception networks in big-data scenarios, where huge amount of data needed to be processed at reasonable cost or scenarios where memory or computational capacity is inherently limited, for example in mobile vision settings.
44

55
The GoogLeNet architecture conforms to below design principles:
66

@@ -68,7 +68,7 @@ private NDArray ReadTensorFromImageFile(string file_name,
6868

6969
### 3. Load pre-trained model and predict
7070

71-
Load the pre-trained inception model which is saved as Google's protobuf file format. Construct a new graph then set input and output operations in a new session. After run the session, you will get a numpy-like ndarray which is provided by NumSharp. With NumSharp, you can easily perform various operations on multiple dimensional arrays in the .NET environment.
71+
Load the pre-trained inception model which is saved as Google's protobuf file format. Construct a new graph then set input and output operations in a new session. After run the session, you will get a numpy-like ndarray. Thus, you can easily perform various operations on multiple dimensional arrays in the .NET environment.
7272

7373
```csharp
7474
public void Run()

docs/zh-cn/essentials/introduction.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
using static Tensorflow.Binding;
3333
using static Tensorflow.KerasApi;
3434
using Tensorflow;
35-
using NumSharp;
35+
using Tensorflow.NumPy;
3636
```
3737

3838
线性回归(Linear Regression):
@@ -137,9 +137,8 @@ model.fit(x_train[new Slice(0, 1000)], y_train[new Slice(0, 1000)],
137137
#r "nuget: TensorFlow.Net"
138138
#r "nuget: TensorFlow.Keras"
139139
#r "nuget: SciSharp.TensorFlow.Redist"
140-
#r "nuget: NumSharp"
141140
142-
open NumSharp
141+
open Tensorflow.NumPy;
143142
open Tensorflow
144143
open type Tensorflow.Binding
145144
open type Tensorflow.KerasApi

0 commit comments

Comments
 (0)