| @@ -26,6 +26,13 @@ In comparison to other projects, like for instance TensorFlowSharp which only pr | |||||
| ### How to use | ### How to use | ||||
| | TensorFlow | tf 1.13 | tf 1.14 | tf 1.15 | tf 2.0 | | |||||
| | ----------- | ------- | ------- | ------- | ------ | | |||||
| | tf.net 0.12 | | x | | | | |||||
| | tf.net 0.11 | x | x | | | | |||||
| | tf.net 0.10 | x | x | | | | |||||
| | tf.net 0.9 | x | | | | | |||||
| Install TF.NET and TensorFlow binary through NuGet. | Install TF.NET and TensorFlow binary through NuGet. | ||||
| ```sh | ```sh | ||||
| ### install tensorflow C# binding | ### install tensorflow C# binding | ||||
| @@ -362,16 +362,11 @@ namespace Tensorflow | |||||
| grads[op.name] = op_grads; | grads[op.name] = op_grads; | ||||
| } | } | ||||
| var t_grads = op_grads[t.value_index]; | var t_grads = op_grads[t.value_index]; | ||||
| if (t_grads.Count == 0) | |||||
| t_grads.Add(grad); | |||||
| else | |||||
| if (t_grads.Count > 0 && | |||||
| control_flow_util.IsLoopSwitch(op)) | |||||
| op_grads[t.value_index][0] = grad; | op_grads[t.value_index][0] = grad; | ||||
| /*if (control_flow_util.IsLoopSwitch(op) && | |||||
| t_grads[0] == null) | |||||
| op_grads[t.value_index] = new List<Tensor> { grad }; | |||||
| else | else | ||||
| t_grads.Add(grad);*/ | |||||
| t_grads.Add(grad); | |||||
| } | } | ||||
| private static IEnumerable<Tensor> _NonEagerInputs(Operation op, Tensor[] xs) | private static IEnumerable<Tensor> _NonEagerInputs(Operation op, Tensor[] xs) | ||||
| @@ -21,7 +21,8 @@ https://tensorflownet.readthedocs.io</Description> | |||||
| <AssemblyVersion>0.12.0.0</AssemblyVersion> | <AssemblyVersion>0.12.0.0</AssemblyVersion> | ||||
| <PackageReleaseNotes>Changes since v0.11.0: | <PackageReleaseNotes>Changes since v0.11.0: | ||||
| 1: Add ICanBeFlattened for nest.flatten2. | 1: Add ICanBeFlattened for nest.flatten2. | ||||
| 2:</PackageReleaseNotes> | |||||
| 2: Complete the WhileContext. | |||||
| 3: Add tf.nn.rnn_cell.BasicRNNCell and tf.nn.dynamic_rnn.</PackageReleaseNotes> | |||||
| <LangVersion>7.3</LangVersion> | <LangVersion>7.3</LangVersion> | ||||
| <FileVersion>0.12.0.0</FileVersion> | <FileVersion>0.12.0.0</FileVersion> | ||||
| <PackageLicenseFile>LICENSE</PackageLicenseFile> | <PackageLicenseFile>LICENSE</PackageLicenseFile> | ||||