LSQuantization icon indicating copy to clipboard operation
LSQuantization copied to clipboard

confused with an undefined function

Open zhexinli opened this issue 4 years ago • 2 comments

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. https://github.com/hustzxd/LSQuantization/blob/86cf51193ec197ec607d271acaa488fd9a8ff60e/_quan_base.py#L22

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.

zhexinli avatar Mar 17 '21 12:03 zhexinli

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

hustzxd avatar Mar 17 '21 13:03 hustzxd

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

zhexinli avatar Mar 17 '21 14:03 zhexinli