File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -494,7 +494,7 @@ public void run(Op op) {
494494 /**
495495 * Execute the graph's initializers.
496496 *
497- * <p>This method is equivalent to {@code session.runner().addTarget( Ops.create(session.graph()) .init()).run( )}.
497+ * <p>This method is equivalent to {@code session.run( Ops.create(session.graph) .init())}.
498498 *
499499 */
500500 public void runInit (){
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ public static Init create(Scope scope) {
9999 public static void add (Scope scope , Op initializer ) {
100100 ExecutionEnvironment exEnv = scope .env ();
101101
102- if (exEnv .isGraph ()) {
102+ if (exEnv .isGraph ()) {
103103 ((Graph ) exEnv ).addInitializer (initializer );
104104 }
105105 }
You can’t perform that action at this time.
0 commit comments