Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Atrribute Error while importing tez #21

Open
AnuraagBeniwal2610 opened this issue Mar 8, 2021 · 5 comments
Open

Atrribute Error while importing tez #21

AnuraagBeniwal2610 opened this issue Mar 8, 2021 · 5 comments

Comments

@AnuraagBeniwal2610
Copy link

when i try to import tez using - import tez. I am encountering this error
AttributeError: module 'torch.optim.lr_scheduler' has no attribute 'SAVE_STATE_WARNING'

@abhishekkrthakur
Copy link
Owner

which version of torch are you using?

@AnuraagBeniwal2610
Copy link
Author

i am using 1.8.0, which was automatically installed when i installed tez

@abhishekkrthakur
Copy link
Owner

yeah, i might need to fix that. 1.7.1 should work fine. if you could use it, it would be great.

for 1.8, ill make a new release soon.

@AnuraagBeniwal2610
Copy link
Author

Ok sure, thanks for such a fast reply. Loved your book btw as well as your videos.

@MrR0b0t-23
Copy link

I encountered this error
AttributeError: module 'torch.optim.lr_scheduler' has no attribute 'SAVE_STATE_WARNING'

To solve this error I simply removed "warnings.filterwarnings("ignore", message=torch.optim.lr_scheduler.SAVE_STATE_WARNING)" line from tez/tez/model/model.py

After changing this my program worked properly.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants