Skip to content

Commit 1e8ab47

Browse files
committed
2 parents 2ea8f2e + 5f217f1 commit 1e8ab47

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ In comparison to other projects, like for instance [TensorFlowSharp](https://www
2828

2929
| TensorFlow | tf native1.14 | tf native 1.15 | tf native 2.3 |
3030
| -------------------------- | ------------- | -------------- | ------------- |
31-
| tf.net 0.3x, tf.keras 0.2x | | | x |
31+
| tf.net 0.3x, tf.keras 0.2 | | | x |
3232
| tf.net 0.2x | | x | x |
33-
| tf.net 0.1x | x | x | |
34-
| tf.net 0.1x | x | | |
33+
| tf.net 0.15 | x | x | |
34+
| tf.net 0.14 | x | | |
3535

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

src/TensorFlowNET.Core/Tensors/Tensor.Assign.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ public ResourceVariable assign(Tensor tensor)
1818
return OriginalVar;
1919
}
2020
else
21-
throw new RuntimeError("Operation doesn't support.");
21+
{
22+
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.");
23+
}
2224
}
2325
}
2426
}

0 commit comments

Comments
 (0)