(self, *args)
| 15 | return self.model |
| 16 | |
| 17 | def __exit__(self, *args): |
| 18 | if not hasattr(self.model,"torchao_quantized"): |
| 19 | self.model.to("cpu") |
| 20 | if torch.cuda.is_available(): |
| 21 | torch.cuda.empty_cache() |
| 22 | torch.cuda.synchronize() |
| 23 | |
| 24 | |
| 25 | T = TypeVar('T') |
nothing calls this directly
no outgoing calls
no test coverage detected