250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- SQL
- 코테 준비
- 직무면접
- 원서읽자
- 쉬운 알고리즘 문제
- dfs
- 코테 대비
- 삼성
- 알고리즘 문제
- 알고리즘
- readingbook
- 원서읽기
- 원서
- 코테
- nightroutine
- 완전탐색
- BFS
- sw expert academy
- D4
- PyQt
- 코딩테스트
- the midnight library
- englishbook
- STUDYENGLISH
- MySQL
- 프로그래머스
- 백준
- English
- sw expert
- swexpertacademy
Archives
- Today
- Total
시나브로
[ Tensorflow 오류 ] module 'tensorflow' has no attribute 'Session' 본문
728x90
import tensorflow as tf
hello=tf.constant("hello, tensorflow")
sess=tf.Session()
print(sess.run(hello))
텐서플로우 버전 2.0.0에서는 session을 정의하고 run해주는 과정을 생략한다.
버전을 확인하고 2.0.0이라면 아래와 같은 코드를 작성해주면 된다.
import tensorflow as tf
node1 =tf.constant(3.0, dtype=tf.float32)
tf.print(node1)
참고 사이트
https://kongnamool.tistory.com/20
728x90
Comments