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 8aeeddf commit ff96645Copy full SHA for ff96645
tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/Session.java
@@ -490,6 +490,19 @@ public void run(Op op) {
490
runner().addTarget(op.op()).run();
491
}
492
493
+
494
+ /**
495
+ * Execute the graph's initializers.
496
+ *
497
+ * <p>This method is equivalent to {@code session.runner().addTarget(Ops.create(session.graph()).init()).run()}.
498
499
+ */
500
+ public void runInit(){
501
+ Runner runner = runner();
502
+ graph.initializers().forEach(runner::addTarget);
503
+ runner.run();
504
+ }
505
506
/**
507
* Saves the actual state of the variables of this session's graph.
508
*
0 commit comments