Clear training state.
(self)
| 140 | exporter.export(file_path=file_path, graph=self.graph) |
| 141 | |
| 142 | def clear(self): |
| 143 | """Clear training state.""" |
| 144 | for tensor in self._training_graph.parameters(): |
| 145 | tensor.requires_grad = False |
| 146 | tensor._grad = None |
no test coverage detected