MCPcopy Create free account
hub / github.com/pytorch/executorch / write_to

Method write_to

exir/_serialize/_flatbuffer.py:145–151  ·  view source on GitHub ↗

Writes the files to the specified directory. File names are based on the original resource names.

(self, out_dir: str)

Source from the content-addressed store, hash-verified

143 return self._files[name]
144
145 def write_to(self, out_dir: str) -> None:
146 """Writes the files to the specified directory. File names are based on
147 the original resource names.
148 """
149 for name, data in self._files.items():
150 with open(os.path.join(out_dir, name), "wb") as fp:
151 fp.write(data)
152
153
154@dataclass

Callers 3

_prepare_schemaFunction · 0.80
test_load_and_writeMethod · 0.80

Calls 2

itemsMethod · 0.80
writeMethod · 0.80

Tested by 2

test_load_and_writeMethod · 0.64