开发者社区> 问答> 正文

运行你的Tensorflow程序print sess.run(hello)这行报?400报错

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

展开
收起
爱吃鱼的程序员 2020-06-07 22:31:21 697 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    你得把错误贴出来啊,按道理应该没装成功,语法上没错误呀

    2020-06-07 22:31:33
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
使用TensorFlow搭建智能开发系统自动生成App UI 立即下载
从零到一:IOS平台TensorFlow入门及应用详解 立即下载
从零到一:IOS平台TensorFlow入门及应用详解(附源 立即下载