Skip to content

Commit ef72244

Browse files
authored
Allow placeholders in Graph's init scope (#393)
Signed-off-by: Ryan Nett <[email protected]>
1 parent 62fa364 commit ef72244

File tree

1 file changed

+0
-4
lines changed
  • tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow

1 file changed

+0
-4
lines changed

tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/Graph.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -588,10 +588,6 @@ private boolean registerInitOpHelper(Operation op) {
588588
}
589589
GraphOperation graphOp = (GraphOperation) op;
590590

591-
if (op.type().equals(Placeholder.OP_NAME)) {
592-
throw new IllegalStateException("Can not make a placeholder " + op + " an init op.");
593-
}
594-
595591
for (GraphOperation controlInput : graphOp.controlInputs()) {
596592
registerInitOpHelper(controlInput);
597593
}

0 commit comments

Comments
 (0)