(q_bits=None)
| 40 | |
| 41 | @staticmethod |
| 42 | def get_quant_range(q_bits=None): |
| 43 | if q_bits == 8: |
| 44 | return 480 |
| 45 | elif q_bits == 6: |
| 46 | return 28. |
| 47 | elif q_bits == 12: |
| 48 | return 510. |
| 49 | else: |
| 50 | assert (0), \ |
| 51 | "Please specify the right quantization range for the selected precision!" |
no outgoing calls