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

The code example raises error #5

Open
detectRecog opened this issue Dec 18, 2021 · 3 comments
Open

The code example raises error #5

detectRecog opened this issue Dec 18, 2021 · 3 comments

Comments

@detectRecog
Copy link

Hello, great work! However, I came across the error 'NameError: name 'LSQObserver' is not defined' when I try this code. Could you please correct it?
I can not find any LSQObserver defined in this repo.

@DeadAt0m
Copy link
Owner

Hello, thank you for pointing this. The code example was outdated.
I updated it according to current repo state (please do "pull" also)

@detectRecog
Copy link
Author

@DeadAt0m Thank you very much. I successfully run the demo with init_mode = 'observer'. However, when I switch to init_mode = 'learnable'. A error raises. Do you successfully run with 'learnable' init_mode? I want to find out whether it is my environment problem or not.

torchlsq/quantized/modules/observers.py", line 176, in init
assert inspect.isclass(observer), 'awaited Observer class not instance or function wrapper'

@DeadAt0m
Copy link
Owner

Oh I am sorry, I have slightly changed the code, for this example, to allow pass the None to observer argument.
Just do pull

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

2 participants