From 08e174ef163607a866fb754ae1c5e0e272fd6d59 Mon Sep 17 00:00:00 2001 From: Haiping Date: Sat, 12 Dec 2020 09:51:51 -0600 Subject: [PATCH 1/2] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7f27b42c..1e53d2ab 100644 --- a/README.md +++ b/README.md @@ -28,10 +28,10 @@ In comparison to other projects, like for instance [TensorFlowSharp](https://www | TensorFlow | tf native1.14 | tf native 1.15 | tf native 2.3 | | -------------------------- | ------------- | -------------- | ------------- | -| tf.net 0.3x, tf.keras 0.2x | | | x | +| tf.net 0.3x, tf.keras 0.2 | | | x | | tf.net 0.2x | | x | x | -| tf.net 0.1x | x | x | | -| tf.net 0.1x | x | | | +| tf.net 0.15 | x | x | | +| tf.net 0.14 | x | | | Troubleshooting of running example or installation, please refer [here](tensorflowlib/README.md). From 5f217f1b18cc7aaf599470481ef4590cb583d9af Mon Sep 17 00:00:00 2001 From: Banyc <36535895+Banyc@users.noreply.github.com> Date: Sun, 13 Dec 2020 00:28:31 +0800 Subject: [PATCH 2/2] Better error message for Tensor.assign --- src/TensorFlowNET.Core/Tensors/Tensor.Assign.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/TensorFlowNET.Core/Tensors/Tensor.Assign.cs b/src/TensorFlowNET.Core/Tensors/Tensor.Assign.cs index eaaae613..4312a291 100644 --- a/src/TensorFlowNET.Core/Tensors/Tensor.Assign.cs +++ b/src/TensorFlowNET.Core/Tensors/Tensor.Assign.cs @@ -18,7 +18,9 @@ namespace Tensorflow return OriginalVar; } else - throw new RuntimeError("Operation doesn't support."); + { + throw new RuntimeError($"Operation doesn't support. {this.name} is a constant tensor. Make sure to initiate {this.name} from tf.Variable() and declare {this.name} as ResourceVariable or var."); + } } } }