Skip to content

Commit 998fc08

Browse files
cymbalrushfacebook-github-bot
authored andcommitted
Skip model load when lowering (#4103)
Summary: Model load is not required, loading incurs a performance hit. Pull Request resolved: #4103 Reviewed By: kirklandsign Differential Revision: D59286563 Pulled By: cccclai fbshipit-source-id: 08e73afc217f8e80a1d9c5adaa562667c17b2b92
1 parent e00de25 commit 998fc08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backends/apple/coreml/compiler/coreml_preprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def preprocess(
386386
source="pytorch",
387387
convert_to="mlprogram",
388388
pass_pipeline=ct.PassPipeline.DEFAULT,
389-
skip_model_load=False,
389+
skip_model_load=True,
390390
compute_precision=model_compute_precision,
391391
minimum_deployment_target=minimum_deployment_target,
392392
compute_units=compute_units,

0 commit comments

Comments
 (0)