第二篇日志,同样用于测试。

import tensorflow as tf
import numpy as np

a = np.array([1, 2])
b = tf.convert_to_tensor(a)

with tf.Session as sess:
    print(sess.run(b))

手敲累死???

相关文章: