tf.InteractiveSession () and tf.Session () difference

tf.InteractiveSession (): It enables you to run time diagram, insert some calculation map, which is calculated by FIG certain operations (Operations) configuration. This is very convenient for people who work in an interactive environment for, such as the use IPython .
tf.Session (): Construction required before starting the entire computing FIG session, and then start the calculation of FIG.

What that means is that we use tf.InteractiveSession () to build the session, we can build a first session and then define the operation (operation), if we use tf.Session () to build a conversation we need to define all of the building before the session operation (operation) and then building session.

Guess you like

Origin www.cnblogs.com/shuaishuaidefeizhu/p/11257801.html