Skip to content

Commit b83b1bb

Browse files
committed
Remove doInit(), update javadocs
Signed-off-by: Ryan Nett <[email protected]>
1 parent 8dfc449 commit b83b1bb

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/Ops.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2755,7 +2755,7 @@ public Init init() {
27552755
*
27562756
* <p>Registered initializers are then grouped as a single unit of computation by adding
27572757
* and executing an {@link org.tensorflow.op.core.Init#create(Scope) init} operation from a graph
2758-
* session. No-ops if the session is eager.
2758+
* session. This is a no-op if executed in an eager session.
27592759
*
27602760
* @param scope
27612761
* @param initializer

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -293,16 +293,6 @@ public Runner addTarget(Op op) {
293293
return addTarget(op.op());
294294
}
295295

296-
/**
297-
* Make {@link #run} execute the graph's initializers.
298-
*
299-
* @return this session runner
300-
*/
301-
public Runner doInitialization(){
302-
graph.initializers().forEach(this::addTarget);
303-
return this;
304-
}
305-
306296
/**
307297
* Set options (typically for debugging) for this run.
308298
*

tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/op/core/Init.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public static Init create(Scope scope) {
8989
*
9090
* <p>Registered initializers are then grouped as a single unit of computation by adding
9191
* and executing an {@link org.tensorflow.op.core.Init#create(Scope) init} operation from a graph
92-
* session. No-ops if the session is eager.
92+
* session. This is a no-op if executed in an eager session.
9393
*
9494
* @param scope
9595
* @param initializer

0 commit comments

Comments
 (0)