2021-07-03
Tensorflow 新手上路"Hello World"
开始前,先查看自己的tensorflow有没有安装好,输出一下自己的版本号
import tensorflow as tf #导入tensorflow库
tf.__version__ #每个下划线是由两个短下滑组成的
接下来,以"Hello world"的输出来开始我们的学习
import tensorflow as tf
hello = tf.constant('hello,world')
sess = tf.Session()
print
原创
2021-07-03 22:19:53 ·
113 阅读 ·
2 评论