Skip to content

Commit 3090e45

Browse files
committed
v0.12 released
1 parent ad250d0 commit 3090e45

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ In comparison to other projects, like for instance TensorFlowSharp which only pr
2626

2727
### How to use
2828

29+
| TensorFlow | tf 1.13 | tf 1.14 | tf 1.15 | tf 2.0 |
30+
| ----------- | ------- | ------- | ------- | ------ |
31+
| tf.net 0.12 | | x | | |
32+
| tf.net 0.11 | x | x | | |
33+
| tf.net 0.10 | x | x | | |
34+
| tf.net 0.9 | x | | | |
35+
2936
Install TF.NET and TensorFlow binary through NuGet.
3037
```sh
3138
### install tensorflow C# binding

src/TensorFlowNET.Core/Gradients/gradients_util.cs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -362,16 +362,11 @@ private static void _SetGrad(Dictionary<string, List<List<Tensor>>> grads, Tenso
362362
grads[op.name] = op_grads;
363363
}
364364
var t_grads = op_grads[t.value_index];
365-
if (t_grads.Count == 0)
366-
t_grads.Add(grad);
367-
else
365+
if (t_grads.Count > 0 &&
366+
control_flow_util.IsLoopSwitch(op))
368367
op_grads[t.value_index][0] = grad;
369-
370-
/*if (control_flow_util.IsLoopSwitch(op) &&
371-
t_grads[0] == null)
372-
op_grads[t.value_index] = new List<Tensor> { grad };
373368
else
374-
t_grads.Add(grad);*/
369+
t_grads.Add(grad);
375370
}
376371

377372
private static IEnumerable<Tensor> _NonEagerInputs(Operation op, Tensor[] xs)

src/TensorFlowNET.Core/TensorFlowNET.Core.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ https://tensorflownet.readthedocs.io</Description>
2121
<AssemblyVersion>0.12.0.0</AssemblyVersion>
2222
<PackageReleaseNotes>Changes since v0.11.0:
2323
1: Add ICanBeFlattened for nest.flatten2.
24-
2:</PackageReleaseNotes>
24+
2: Complete the WhileContext.
25+
3: Add tf.nn.rnn_cell.BasicRNNCell and tf.nn.dynamic_rnn.</PackageReleaseNotes>
2526
<LangVersion>7.3</LangVersion>
2627
<FileVersion>0.12.0.0</FileVersion>
2728
<PackageLicenseFile>LICENSE</PackageLicenseFile>

0 commit comments

Comments
 (0)