# Study/[ # TroubleShooting ]

[Error/허언증] AttributeError: module 'tensorflow' has no attribute 'placeholder' (feat. jupyter Notebook)

이론과 실습 사이 2019. 12. 19. 22:19
반응형

 

 

--발생원인--

 

1. Tensorflow 버전이 2.0으로 업데이트 하면서 패키지 간 위치가 변화가 있었던것으로 추측

 

정확히 파악을 못 함

 

 

 

 

--에러 문구--

 

AttributeError: module 'tensorflow' has no attribute 'placeholder'

 

 

 

 

 

 

 

--해결--

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

 

 

 

 

 

 


 

 

반응형