golbin / TensorFlow-Tutorials

텐서플로우를 기초부터 응용까지 단계별로 연습할 수 있는 소스 코드를 제공합니다
2.13k stars 1k forks source link

새 버전의 TF와 호환이 안 됩니다... #57

Open NangmanGureum opened 4 years ago

NangmanGureum commented 4 years ago

텐서플로우를 새로 깔고 실행해봤는데 어째선지 안되더라고요

https://stackoverflow.com/questions/55142951/tensorflow-2-0-attributeerror-module-tensorflow-has-no-attribute-session

그나마 이걸 통해서 어느정도 해결 방법은 알긴 했는데...

혹시 TF 2.0에 대한 대책이 있으신가요?

neighborpil commented 4 years ago

tensorflow import할 때에 버전지정하면 됩니다

import tensorflow.compat.v1 as tf