(self, *args)
| 3739 | return super().half(*args) |
| 3740 | |
| 3741 | def float(self, *args): |
| 3742 | # Checks if the model is quantized |
| 3743 | if getattr(self, "is_quantized", False): |
| 3744 | raise ValueError( |
| 3745 | "`.float()` is not supported for quantized model. Please use the model as it is, since the" |
| 3746 | " model has already been casted to the correct `dtype`." |
| 3747 | ) |
| 3748 | else: |
| 3749 | return super().float(*args) |
| 3750 | |
| 3751 | @classmethod |
| 3752 | def get_init_context( |
no outgoing calls