GeezerVison is showing github.com — v0.12 released · lqdev/TensorFlow.NET@3090e45
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: README.md +7Lines changed: 7 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -26,6 +26,13 @@ In comparison to other projects, like for instance TensorFlowSharp which only pr |
26 | 26 |
|
27 | 27 | ### How to use |
28 | 28 |
|
| 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 | + |
29 | 36 | Install TF.NET and TensorFlow binary through NuGet. |
30 | 37 | ```sh |
31 | 38 | ### install tensorflow C# binding |
|
Collapse file
Copy file name to clipboardExpand all lines: src/TensorFlowNET.Core/Gradients/gradients_util.cs +3-8Lines changed: 3 additions & 8 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -362,16 +362,11 @@ private static void _SetGrad(Dictionary<string, List<List<Tensor>>> grads, Tenso |
362 | 362 | grads[op.name] = op_grads; |
363 | 363 | } |
364 | 364 | 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)) |
368 | 367 | 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 }; |
373 | 368 | else |
374 | | - t_grads.Add(grad);*/ |
| 369 | + t_grads.Add(grad); |
375 | 370 | } |
376 | 371 |
|
377 | 372 | private static IEnumerable<Tensor> _NonEagerInputs(Operation op, Tensor[] xs) |
|
Collapse file
Copy file name to clipboardExpand all lines: src/TensorFlowNET.Core/TensorFlowNET.Core.csproj +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -21,7 +21,8 @@ https://tensorflownet.readthedocs.io</Description> |
21 | 21 | <AssemblyVersion>0.12.0.0</AssemblyVersion> |
22 | 22 | <PackageReleaseNotes>Changes since v0.11.0: |
23 | 23 | 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> |
25 | 26 | <LangVersion>7.3</LangVersion> |
26 | 27 | <FileVersion>0.12.0.0</FileVersion> |
27 | 28 | <PackageLicenseFile>LICENSE</PackageLicenseFile> |
|