(key: str)
| 21 | |
| 22 | def _get_quantable_module_names(): |
| 23 | def is_quantable(key: str): |
| 24 | value = getattr(Quantized, key) |
| 25 | return ( |
| 26 | isinstance(value, type) |
| 27 | and issubclass(value, QuantizedModule) |
| 28 | and value != QuantizedModule |
| 29 | ) |
| 30 | |
| 31 | # source should have all quantable modules' names |
| 32 | quantable_module_names = [key for key in dir(Quantized) if is_quantable(key)] |
no outgoing calls
no test coverage detected