(q_bits=None)
| 79 | |
| 80 | @staticmethod |
| 81 | def get_quant_range(q_bits=None): |
| 82 | if q_bits == 8: |
| 83 | return 480 |
| 84 | elif q_bits == 6: |
| 85 | return 28. |
| 86 | elif q_bits == 12: |
| 87 | return 510. |
| 88 | else: |
| 89 | assert (0), \ |
| 90 | "Please specify the right quantization range for the selected precision!" |
no outgoing calls