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>
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学习
本文链接:https://www.haomeiwen.com/subject/tjnfcctx.html
网友评论