Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62fa364 commit ef72244Copy full SHA for ef72244
tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/Graph.java
@@ -588,10 +588,6 @@ private boolean registerInitOpHelper(Operation op) {
588
}
589
GraphOperation graphOp = (GraphOperation) op;
590
591
- if (op.type().equals(Placeholder.OP_NAME)) {
592
- throw new IllegalStateException("Can not make a placeholder " + op + " an init op.");
593
- }
594
-
595
for (GraphOperation controlInput : graphOp.controlInputs()) {
596
registerInitOpHelper(controlInput);
597
0 commit comments