Writes the serialized ExecuTorch data files to the directory at `outdir`.
(self, outdir)
| 700 | self._get_pte_data().write_to_file(open_file) |
| 701 | |
| 702 | def write_tensor_data_to_file(self, outdir) -> None: |
| 703 | """ |
| 704 | Writes the serialized ExecuTorch data files to the directory at `outdir`. |
| 705 | """ |
| 706 | assert self._tensor_data is not None |
| 707 | # pyre-ignore[16]: `Optional` has no attribute `items`. |
| 708 | for filename, cord in self._tensor_data.items(): |
| 709 | with open(os.path.join(outdir, f"{filename}.ptd"), "wb") as f: |
| 710 | logging.info(f"Writing data file to {filename}.ptd") |
| 711 | cord.write_to_file(f) |
| 712 | |
| 713 | |
| 714 | def _get_aten_to_edge_passes(config: EdgeCompileConfig): |