(self)
| 58 | torch.cuda.empty_cache() |
| 59 | |
| 60 | def export_iter(self): |
| 61 | ckpt = create_checkpoint( |
| 62 | self.model_path, |
| 63 | mappings=getattr(self.model, '_loader_mappings', [])) |
| 64 | try: |
| 65 | self.model.model(Prefix(ckpt)) |
| 66 | yield -1 |
| 67 | finally: |
| 68 | ckpt.close() |
| 69 | torch.cuda.empty_cache() |
nothing calls this directly
no test coverage detected