AttributeError Traceback (most recent call last)

来源:2-4 测试案例helloWorld

慕用5536747

2018-06-28

AttributeError                            Traceback (most recent call last)
<ipython-input-3-973e4db27f3a> in <module>()
     1 import tensorflow as tf
     2 hello = tf.constant('hello tlf')
----> 3 sess = tf.session()
     4 print(sess.run(hello))

AttributeError: module 'tensorflow' has no attribute 'session'

怎么解决????

写回答

1回答

Jones

2018-06-30

对比下tf的版本和课程中是否一样吗?

0
0

OpenCV+TensorFlow 入门人工智能图像处理

近百个案例为你讲解人工智能计算机视觉技术

670 学习 · 174 问题

查看课程

相似问题