Closed rikvdkleij closed 6 years ago
Other question: When do I have to call evaluate
? Is that only to for example to print the current value of Output
or variabele?
Yet another question, but important question. How do I write only the graph to disk like in Python in this way?
tf.train.write_graph(sess.graph, 'model', 'model.pbtxt')
I only see a way to write graph as part of event file, in this way:
tf.summary.FileWriter(Paths.get("model"), session.graph)
Solved it by:
val graphDef = session.graph.toProto
new PrintWriter("model.pbtxt") { write(graphDef.toString); close }
Do not see other solution.
How do I run the initializer of a variable (just like in Python API)? After assigning a tensor to a variable, do I have to evaluate the result (just like in Python API)? Is
sufficient? In Python API:
Okay, found already the answer for this question. It is: