Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

TypeError: __init__() got an unexpected keyword argument 'compresslevel' #18

Open
RoyIronGrey opened this issue Feb 21, 2022 · 0 comments

Comments

@RoyIronGrey
Copy link

When I execute torchlambda layer ./model.ptc --destination "model.zip"
I get the error below:

torchlambda:: Started packing Torchscript model to /home/ubuntu18/torchlambda/model.zip.
Traceback (most recent call last):
File "/home/ubuntu18/.local/bin/torchlambda", line 8, in
sys.exit(main())
File "/home/ubuntu18/.local/lib/python3.6/site-packages/torchlambda/main.py", line 21, in main
module.run(args)
File "/home/ubuntu18/.local/lib/python3.6/site-packages/torchlambda/subcommands/layer.py", line 18, in run
args.compression, args.compression_level
TypeError: init() got an unexpected keyword argument 'compresslevel'

This is my env:
Linux version 4.15.0-167-generic (buildd@lcy02-amd64-045) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #175-Ubuntu SMP Wed Jan 5 01:56:07 UTC 2022

Python 3.6.13 :: Anaconda, Inc.

torch: 1.7.0+cpu

torchvision: 0.8.1+cpu

Bisides, torch 1.4.0 and torchvision 0.5.0 give the same error.

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

No branches or pull requests

1 participant