크크루쿠쿠

pytorch Dataset 에서 AttributeError: 본문

StackOverflow

pytorch Dataset 에서 AttributeError:

JH_KIM 2022. 1. 11. 18:06
/usr/local/lib/python3.7/dist-packages/torch/utils/data/dataset.py in __getattr__(self, attribute_name)
     81             return function
     82         else:
---> 83             raise AttributeError
     84 
     85     @classmethod

AttributeError:

이렇게 비어있을 경우 보통 선언하지 않은 self 변수를 사용했을 가능성이 높다.

Comments