This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
scisharp
/
TensorFlow.NET
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
21
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
Better error message for Tensor.assign
tags/keras_v0.3.0
Banyc
Haiping
4 years ago
parent
08e174ef16
commit
5f217f1b18
1 changed files
with
3 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-1
src/TensorFlowNET.Core/Tensors/Tensor.Assign.cs
+ 3
- 1
src/TensorFlowNET.Core/Tensors/Tensor.Assign.cs
View File
@@ -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.");
}
}
}
}
Write
Preview
Loading…
Cancel
Save