공부
[Python] Tensorflow v1 (env v2)
승가비
2021. 8. 13. 05:16
728x90
import tensorflow._api.v2.compat.v1 as tf
tf.disable_v2_behavior()
Tensorflow 2.0 - AttributeError: module 'tensorflow' has no attribute 'Session'
When I am executing the command sess = tf.Session() in Tensorflow 2.0 environment, I am getting an error message as below: Traceback (most recent call last): File "", line 1,...
stackoverflow.com
https://github.com/tensorflow/docs/pull/1925/files
fix: https://github.com/tensorflow/tensorflow/issues/38800#issuecomment-660535430 by seunggabi · Pull Request #1925 · tensorfl
tensorflow/docs-l10n#542 ModuleNotFoundError : from tensorflow.compat.v1 import * tensorflow/tensorflow#38800 (comment)
github.com
728x90