How Not To Program the TensorFlow Graph
Lots of methods in TensorFlow create ops in the computation graph, but do not execute them. You may want to execute multiple times, but that doesn't mean you should create lots of copies of the same ops. A new initializer op is created every time the argument to session.run() This creates multiple initializer ops in the graph. Having multiple copies isn't a big deal for small ops in an interactive session, and you might even want to do it in the case of the initializer if you've created more variables that need to be included in initialization.
Jun-19-2017, 00:15:28 GMT
- Technology: