rlcode / reinforcement-learning-kr

[파이썬과 케라스로 배우는 강화학습] 예제
MIT License
371 stars 228 forks source link

module 'tensorflow' has no attribute 'get_default_graph' 발생 #29

Open ldkl123 opened 5 years ago

ldkl123 commented 5 years ago

7-reinforce에서 reinforce_agent.py를 실행하면 module 'tensorflow' has no attribute 'get_default_graph' 에러가 발생합니다. 특이 사항은 Tensorflow 2.0.0-aplha0'로 업그레이드 했습니다. 에러가 왜 나는지 답변 부탁드립니다.

dnddnjs commented 5 years ago

에러를 알려주셔서 감사해요. 이 코드를 작성했던 게 1년이 더 넘었으니 버전 문제일 것 같아요. Tensorflow 2.0에 맞게 코드를 수정해야할 것 같아요

ldkl123 commented 5 years ago

네 피드백 수용 감사합니다.