(self)
| 10 | self.original_dtype = model.dtype |
| 11 | |
| 12 | def __enter__(self): |
| 13 | if not hasattr(self.model,"torchao_quantized"): |
| 14 | self.model.to(self.original_device, dtype=self.original_dtype) |
| 15 | return self.model |
| 16 | |
| 17 | def __exit__(self, *args): |
| 18 | if not hasattr(self.model,"torchao_quantized"): |
nothing calls this directly
no outgoing calls
no test coverage detected