기계학습

[Pytorch]“AttributeError: LSTM object has no attribute flat_weights_names”

Demis Tae Kyu Eom 2020. 3. 31. 17:56

모델 학습하고 API를 만들면서 모델 불러오는 과정 중에 에러가 나와서 해결 방법 정리...

“AttributeError: LSTM object has no attribute flat_weights_names”

 

 

사실 창피하게도 torch 설치 버전이 안맞아서 그런거 였음... 학습은 1.1.0에서 하고 API세팅하면서 torch 버전을 1.3으로 설치했더니 버전이 안맞아서 생긴 문제였다...