欢迎光临散文网 会员登陆 & 注册

唐宇迪深度学习入门视频课程(下篇)

2023-03-04 17:34 作者:快乐的小马驹01  | 我要投稿
  • 安装成功后,每次使用 TensorFlow 的时候需要激活 conda 环境

  • conda 环境激活后,你可以测试是否成功,在终端进入 python,输入下面代码,没有提示错误,说明安装 TensorFlow 成功:

$ python ...>>> import tensorflow as tf>>> hello = tf.constant('Hello, TensorFlow!')>>> sess = tf.Session()>>> print(sess.run(hello)) Hello, TensorFlow!>>> a = tf.constant(10)>>> b = tf.constant(32)>>> print(sess.run(a + b))42>>>



唐宇迪深度学习入门视频课程(下篇)的评论 (共 条)

分享到微博请遵守国家法律