Writes the serialized ExecuTorch binary to the file at `open_file`. Prefer to use this over `buffer`, as it writes to file without copying into a contiguous block of memory first, reducing the peak memory usage.
(self, open_file: io.BufferedIOBase)
| 2008 | return self._etrecord |
| 2009 | |
| 2010 | def write_to_file(self, open_file: io.BufferedIOBase) -> None: |
| 2011 | """ |
| 2012 | Writes the serialized ExecuTorch binary to the file at `open_file`. Prefer to use this over |
| 2013 | `buffer`, as it writes to file without copying into a contiguous block of memory first, |
| 2014 | reducing the peak memory usage. |
| 2015 | """ |
| 2016 | self._pte_data.write_to_file(open_file) |
| 2017 | |
| 2018 | def write_tensor_data_to_file(self, outdir) -> None: |
| 2019 | """ |