tez icon indicating copy to clipboard operation
tez copied to clipboard

Atrribute Error while importing tez

Open AnuraagBeniwal2610 opened this issue 4 years ago • 5 comments

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'

AnuraagBeniwal2610 avatar Mar 08 '21 15:03 AnuraagBeniwal2610

which version of torch are you using?

abhishekkrthakur avatar Mar 08 '21 16:03 abhishekkrthakur

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

AnuraagBeniwal2610 avatar Mar 08 '21 16:03 AnuraagBeniwal2610

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.

abhishekkrthakur avatar Mar 08 '21 16:03 abhishekkrthakur

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

AnuraagBeniwal2610 avatar Mar 08 '21 17:03 AnuraagBeniwal2610

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.

MrR0b0t-23 avatar Apr 02 '21 16:04 MrR0b0t-23