We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent deb78ad commit 8e6c8ffCopy full SHA for 8e6c8ff
examples/apple/coreml/scripts/export.py
@@ -222,14 +222,15 @@ def main():
222
compile_specs = generate_compile_specs_from_args(args)
223
pte_base_name = get_pte_base_name(args)
224
if args.use_partitioner:
225
- model.eval()
+ model = model.eval()
226
assert not args.generate_etrecord, "ETRecord is not supported with partitioner"
227
ep = torch.export.export(
228
model,
229
args=example_args,
230
kwargs=example_kwargs,
231
dynamic_shapes=dynamic_shapes,
232
)
233
+ print(ep)
234
delegated_program = exir.to_edge_transform_and_lower(
235
ep,
236
partitioner=[CoreMLPartitioner(compile_specs=compile_specs)],
0 commit comments