File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/", line 1695, in __getattr__ raise AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'")

When i try to implement ML_decoder from GitHub - Alibaba-MIIL/ML_Decoder: Official PyTorch implementation of "ML-Decoder: Scalable and Versatile Classification Head" (2021) i have this error than seems to come from pytorch : File “/usr/local/lib/python3.10/dist-packages/torch/nn/modules/”, line 1695, in getattr
raise AttributeError(f"‘{type(self).name}’ object has no attribute ‘{name}’"). Whant can i do ?

Could you check which line of code triggers this AttributeError as it seems you are trying to access an attribute which is undefined.