-
카테고리
-
세부 분야
딥러닝 · 머신러닝
-
해결 여부
미해결
텐서플로우
20.08.11 16:33 작성 조회수 264
0
텐서플로우 설치후, 강의에서 보여준 코드를 입력했는데 다음과 같이 오류가 떠요 ㅠ
In :
import tensorflow as tf
hello = tf.constant("Hello, TensorFlow!")
sess = tf.Session()
print(sess.run(hello))
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-2-77bcd9f617b4> in <module> 1 import tensorflow as tf 2 hello = tf.constant("Hello, TensorFlow!") ----> 3 sess = tf.Session() 4 print(sess.run(hello)) AttributeError: module 'tensorflow' has no attribute 'Session'
어떻게 해야 할까요 ㅠ
답변을 작성해보세요.
답변 2