Skip to content

Commit f7412a1

Browse files
committed
Release TF.NET v0.31.0, TF.Keras v0.2.0
1 parent 4575530 commit f7412a1

File tree

3 files changed

+20
-22
lines changed

3 files changed

+20
-22
lines changed

README.md

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,17 @@ In comparison to other projects, like for instance [TensorFlowSharp](https://www
2626

2727
### How to use
2828

29-
| TensorFlow | tf native1.14 | tf native 1.15 | tf native 2.3 |
30-
| ------------------------- | ------------- | -------------- | ------------- |
31-
| tf.net 0.30, tf.keras 0.1 | | | x |
32-
| tf.net 0.20 | | x | x |
33-
| tf.net 0.15 | x | x | |
34-
| tf.net 0.14 | x | | |
35-
36-
Read the docs & book [The Definitive Guide to Tensorflow.NET](https://tensorflownet.readthedocs.io/en/latest/FrontCover.html).
37-
38-
There are many examples reside at [TensorFlow.NET Examples](https://github.com/SciSharp/TensorFlow.NET-Examples).
29+
| TensorFlow | tf native1.14 | tf native 1.15 | tf native 2.3 |
30+
| -------------------------- | ------------- | -------------- | ------------- |
31+
| tf.net 0.3x, tf.keras 0.2x | | | x |
32+
| tf.net 0.2x | | x | x |
33+
| tf.net 0.1x | x | x | |
34+
| tf.net 0.1x | x | | |
3935

4036
Troubleshooting of running example or installation, please refer [here](tensorflowlib/README.md).
4137

38+
There are many examples reside at [TensorFlow.NET Examples](https://github.com/SciSharp/TensorFlow.NET-Examples) written in C# and F#.
39+
4240
#### C# Example
4341

4442
Install TF.NET and TensorFlow binary through NuGet.
@@ -67,18 +65,16 @@ Linear Regression in `Eager` mode:
6765

6866
```c#
6967
// Parameters
70-
int training_steps = 1000;
71-
float learning_rate = 0.01f;
72-
int display_step = 100;
68+
var training_steps = 1000;
69+
var learning_rate = 0.01f;
70+
var display_step = 100;
7371

7472
// Sample data
75-
NDArray train_X, train_Y;
76-
int n_samples;
77-
train_X = np.array(3.3f, 4.4f, 5.5f, 6.71f, 6.93f, 4.168f, 9.779f, 6.182f, 7.59f, 2.167f,
73+
var train_X = np.array(3.3f, 4.4f, 5.5f, 6.71f, 6.93f, 4.168f, 9.779f, 6.182f, 7.59f, 2.167f,
7874
7.042f, 10.791f, 5.313f, 7.997f, 5.654f, 9.27f, 3.1f);
79-
train_Y = np.array(1.7f, 2.76f, 2.09f, 3.19f, 1.694f, 1.573f, 3.366f, 2.596f, 2.53f, 1.221f,
75+
var train_Y = np.array(1.7f, 2.76f, 2.09f, 3.19f, 1.694f, 1.573f, 3.366f, 2.596f, 2.53f, 1.221f,
8076
2.827f, 3.465f, 1.65f, 2.904f, 2.42f, 2.94f, 1.3f);
81-
n_samples = train_X.shape[0];
77+
var n_samples = train_X.shape[0];
8278

8379
// We can set a fixed init value in order to demo
8480
var W = tf.Variable(-0.06f, name: "weight");
@@ -218,6 +214,7 @@ for step = 1 to (training_steps + 1) do
218214
printfn $"step: {step}, loss: {loss.numpy()}, W: {W.numpy()}, b: {b.numpy()}"
219215
```
220216

217+
Read the docs & book [The Definitive Guide to Tensorflow.NET](https://tensorflownet.readthedocs.io/en/latest/FrontCover.html) if you want to know more about TensorFlow for .NET under the hood.
221218

222219
### Contribute:
223220

@@ -249,9 +246,7 @@ git pull upstream master
249246

250247
### Contact
251248

252-
Feel free to star or raise issue on [Github](https://github.com/SciSharp/TensorFlow.NET).
253-
254-
Follow us on [Medium](https://medium.com/scisharp).
249+
Follow us on [Twitter](https://twitter.com/ScisharpStack), [Facebook](https://www.facebook.com/scisharp.stack.9), [Medium](https://medium.com/scisharp), [LinkedIn](https://www.linkedin.com/company/scisharp-stack/).
255250

256251
Join our chat on [Gitter](https://gitter.im/sci-sharp/community).
257252

src/TensorFlowNET.Keras/Open.snk

596 Bytes
Binary file not shown.

src/TensorFlowNET.Keras/Tensorflow.Keras.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
<PackageReleaseNotes>Keras for .NET is a C# version of Keras ported from the python version.
1818

1919
* Support CIFAR-10 dataset in keras.datasets.
20-
* Support Conv2D functional API.</PackageReleaseNotes>
20+
* Support Conv2D functional API.
21+
* Support BatchNormalization layer.</PackageReleaseNotes>
2122
<Description>Keras for .NET
2223

2324
Keras is an API designed for human beings, not machines. Keras follows best practices for reducing cognitive load: it offers consistent &amp; simple APIs, it minimizes the number of user actions required for common use cases, and it provides clear &amp; actionable error messages.</Description>
@@ -26,6 +27,8 @@ Keras is an API designed for human beings, not machines. Keras follows best prac
2627
<PackageTags>tensorflow, keras, deep learning, machine learning</PackageTags>
2728
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
2829
<RepositoryType>Git</RepositoryType>
30+
<SignAssembly>true</SignAssembly>
31+
<AssemblyOriginatorKeyFile>Open.snk</AssemblyOriginatorKeyFile>
2932
</PropertyGroup>
3033

3134
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

0 commit comments

Comments
 (0)