(self, *args, **kwargs)
| 98 | return out |
| 99 | |
| 100 | def to(self, *args, **kwargs): |
| 101 | # Intermediate tensors may need to be moved to different devices |
| 102 | if hasattr(self, 'input_q'): |
| 103 | self.input_q = self.input_q.to(*args, **kwargs) |
| 104 | if hasattr(self, 'scale'): |
| 105 | self.scale = self.scale.to(*args, **kwargs) |
| 106 | |
| 107 | def get_scales(self): |
| 108 | return fp_quant_module.get_scales(self.scale, self.num_groups) |
no outgoing calls