disable_eager_execution

Toma·2022년 2월 8일

import tensorflow as tf
print(tf.version)

print(tf.executing_eagerly()) #True

tf.compat.v1.disable_eager_execution()

print(tf.executing_eagerly()) #False

hello= tf.constant("helllo world")

sess = tf.compat.v1.Session()

print(sess.run(hello))

텐서2에서 즉시실행모드 코드

profile
Don't forget the grace

0개의 댓글