import tensorflow as tf
data1 = tf.constant(2.5)
data2 = tf.Variable(10, name='var')
print(data1)
print(data2)
#输出
Tensor("Const:0", shape=(), dtype=float32)
<tf.Variable 'var:0' shape=() dtype=int32_ref>
tensorflow学习
最新推荐文章于 2020-08-07 18:22:17 发布