(self, path)
| 120 | return {p: self.torch_buffers[p] for p in self.output_names} |
| 121 | |
| 122 | def save_model(self, path): |
| 123 | os.makedirs(os.path.dirname(path), exist_ok=True) |
| 124 | mgx.save(self.model, path, format="msgpack") |
| 125 | |
| 126 | def tensor_to_arg(self, tensor): |
| 127 | mgx_shape = mgx.shape(type=self.torch_to_mgx_dtype_dict[tensor.dtype], |
no test coverage detected