Hello tensorflow 2.0

mac2024-10-05  58

import tensorflow as tf

tf.compat.v1.disable_eager_execution()

hello = tf.constant(‘Hello, TensorFlow!’)

sess = tf.compat.v1.Session()

print(sess.run(hello))

最新回复(0)