상세 컨텐츠

본문 제목

Module 'tensorflow' has no attribute 'Session

tensorflow

by Riella 2020. 8. 26. 08:41

본문

728x90

I was afraid of the installation was broken, but it was due to the TF version.

So, getting TF 1.x like behavior in TF 2.0

import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()

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

'tensorflow' 카테고리의 다른 글

Rank and Shape  (0) 2020.08.26

관련글 더보기

댓글 영역