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) {
494
494
/**
495
495
* Execute the graph's initializers.
496
496
*
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())}.
498
498
*
499
499
*/
500
500
public void runInit (){
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ public static Init create(Scope scope) {
99
99
public static void add (Scope scope , Op initializer ) {
100
100
ExecutionEnvironment exEnv = scope .env ();
101
101
102
- if (exEnv .isGraph ()) {
102
+ if (exEnv .isGraph ()) {
103
103
((Graph ) exEnv ).addInitializer (initializer );
104
104
}
105
105
}
You can’t perform that action at this time.
0 commit comments