打了这句之后
sees = tf.Session()
出现了这些问题
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'tensorflow' has no attribute 'Session'
查了很多东西之后发现是tensorflow版本1和2之间的语法区别,看了这篇文章之后,完美解决,成功运行出b'hello,tensorflow'
打了这句之后
sees = tf.Session()
出现了这些问题
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'tensorflow' has no attribute 'Session'
查了很多东西之后发现是tensorflow版本1和2之间的语法区别,看了这篇文章之后,完美解决,成功运行出b'hello,tensorflow'