標籤:

tf.reset_default_graph

import tensorflow as tfnhelp(tf.reset_default_graph)nn"""nHelp on function reset_default_graph in module tensorflow.python.framework.ops:nnreset_default_graph()n 1. Clears the default graph stackn 2. resets the global default graph.nn NOTE:n 1. The default graph is a property of the current thread.nn 2. This function applies only to the current thread.nn 3. 放在 tf.Session() 前面n 3.1 Calling this function while a `tf.Session` or `tf.InteractiveSession` is active will result in undefined behavior.n 3.2 Using any previously created `tf.Operation` or `tf.Tensor` objects after calling this function will result in undefined behavior.nn Raises:n AssertionError: If this function is called within a nested graph.n"""n

推薦閱讀:

一文打盡:線性回歸和邏輯斯蒂線性回歸
如何評價Sony新出的深度學習庫NNabla?

TAG:TensorFlow |