@songying
2018-07-29T07:13:45.000000Z
字数 649
阅读 1520
TensorFlow
https://www.tensorflow.org/api_docs/python/tf/InteractiveSession
这是一个类。 Class InteractiveSession
A TensorFlow Session for use in interactive contexts, such as a shell.
与Session的唯一不同之处在于InteractiveSession()加载自身作为默认构建的session。方法tf.Tensor.eval与tf.Operation.run将使用该session来操作。 这对于 在shell和ipython notebooks中是极为方便的。
这也意味着,在InteractiveSession()中,不需要使用其余session就能够产生结果。
__init__创建一个交互式的TensorFlow Session。
__init__(target='',graph=None,config=None)
