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

confused with an undefined function #4

Open
zhexinli opened this issue Mar 17, 2021 · 2 comments
Open

confused with an undefined function #4

zhexinli opened this issue Mar 17, 2021 · 2 comments

Comments

@zhexinli
Copy link

zhexinli commented Mar 17, 2021

hello hustzxd! Your repo is very helpful for my current work. But it confuses me that in the class _Conv2dQ there is an undefined function get_default_kwargs_q(). I can't find it anywhere in your code.

self.kwargs_q = get_default_kwargs_q(kwargs_q, layer_type=self)

Could you show me the definition of this function? Or is it a built-in function of python or other lib? I'm not very professional at coding and it really confuses me. Thanks a lot.

@hustzxd
Copy link
Owner

hustzxd commented Mar 17, 2021

Sorry about that. This is only part of the code, and the others are here: https://github.com/hustzxd/EfficientPyTorch/blob/efficient_pytorch/models/_modules/_quan_base.py#L155

@zhexinli
Copy link
Author

Got it! Thanks for your trouble. It helped a lot.

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