目录
可在百度AI studio的终端(相当于cmd)中安装TensorFlow
但是在项目中的NoteBook中,无法使用TensorFlow
经网上查阅资料后,得知可在AI studio的终端中使用TensorFlow
综上,百度AI Studio确可提供运算服务,且相当于免费。但若要在其上使用TensorFlow,则需费些功夫,更具体的使用效果有待进一步实验验证
可在百度AI studio的终端(相当于cmd)中安装TensorFlow:
过程如下图所示:
但是在项目中的NoteBook中,无法使用TensorFlow。
如下图所示:
首先,NoteBook示例:
新建cell,输入以下代码:
import tensorflow as tf
import os
os.environ["TF_CPP_MIN_LOG_LEVEL"]='3'
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))
运行后,报错: