tf.InteractiveSession.__init__()

tf.InteractiveSession.__init__(target='', graph=None, config=None)

Creates a new interactive TensorFlow session.

If no graph argument is specified when constructing the session, the default graph will be launched in the session. If you are using more than one graph (created with tf.Graph() in the same process, you will have to use different sessions for each graph, but each graph can be used in multiple sessions. In this case, it is often clearer to pass the graph to be launched explicitly to the session constructor.

Args:
  • target: (Optional.) The execution engine to connect to. Defaults to using an in-process engine.
  • graph: (Optional.) The Graph to be launched (described above).
  • config: (Optional) ConfigProto proto used to configure the session.
doc_TensorFlow
2016-10-14 13:08:13
Comments
Leave a Comment

Please login to continue.