sess.run(eval)
の代わりにsub.eval()
のようなものを使用する方が便利だと思われるので、いつもInteractiveSession()
を使用する方が便利でしょうか?常にInteractiveSession()
を使用する場合、トレードオフはありますか?代わりに、私はちょうどすぐsess = tf.InteractiveSession
を定義するためにきたTensorflow:Session()と比較してInteractiveSession()を使用するほうがずっと便利ですか?
with tf.InteractiveSession() as sess:
result = product.eval() #Where product is a simple matmul
print result
sess.close()
:
これまでのところ私が見る唯一の「欠点は、」私のようなものを使用することができないということです。