File tree Expand file tree Collapse file tree 4 files changed +19
-10
lines changed Expand file tree Collapse file tree 4 files changed +19
-10
lines changed Original file line number Diff line number Diff line change @@ -224,19 +224,22 @@ test_model_with_coreml() {
224224
225225 " ${PYTHON_EXECUTABLE} " -m examples.apple.coreml.scripts.export --model_name=" ${MODEL_NAME} " --compute_precision " ${DTYPE} "
226226 EXPORTED_MODEL=$( find " ." -type f -name " ${MODEL_NAME} *.pte" -print -quit)
227- # TODO:
227+
228228 if [ -n " $EXPORTED_MODEL " ]; then
229229 EXPORTED_MODEL_WITH_DTYPE=" ${EXPORTED_MODEL% .pte} _${DTYPE} .pte"
230230 mv " $EXPORTED_MODEL " " $EXPORTED_MODEL_WITH_DTYPE "
231231 EXPORTED_MODEL=" $EXPORTED_MODEL_WITH_DTYPE "
232- echo " Renamed file path : $EXPORTED_MODEL "
232+ echo " OK exported model : $EXPORTED_MODEL "
233233 else
234- echo " No .pte file found"
234+ echo " [error] failed to export model: no .pte file found"
235235 exit 1
236236 fi
237237
238238 # Run the model
239239 if [ " ${should_test} " = true ]; then
240+ echo " Installing requirements needed to build coreml_executor_runner..."
241+ backends/apple/coreml/scripts/install_requirements.sh
242+
240243 echo " Testing exported model with coreml_executor_runner..."
241244 local out_dir=$( mktemp -d)
242245 COREML_EXECUTOR_RUNNER_OUT_DIR=" ${out_dir} " examples/apple/coreml/scripts/build_executor_runner.sh
Original file line number Diff line number Diff line change 1515 model = Model .Mv3 ,
1616 backend = Backend .XnnpackQuantizationDelegation ,
1717 ),
18- # Enable this once CoreML is suppported out-of-the-box
19- # https://github.com/pytorch/executorch/issues/9019
20- # test_base.ModelTest(
21- # model=Model.Mv3,
22- # backend=Backend.CoreMlTest,
23- # )
18+ test_base .ModelTest (
19+ model = Model .Mv3 ,
20+ backend = Backend .CoreMlTest ,
21+ ),
2422 ]
2523 )
Original file line number Diff line number Diff line change 66 paths :
77 - .ci/**/*
88 - .github/workflows/build-wheels-linux.yml
9+ - examples/**/*
10+ - pyproject.toml
11+ - setup.py
912 push :
1013 branches :
1114 - nightly
Original file line number Diff line number Diff line change 66 paths :
77 - .ci/**/*
88 - .github/workflows/build-wheels-macos.yml
9+ - examples/**/*
10+ - pyproject.toml
11+ - setup.py
912 push :
1013 branches :
1114 - nightly
5760 pre-script : ${{ matrix.pre-script }}
5861 post-script : ${{ matrix.post-script }}
5962 package-name : ${{ matrix.package-name }}
60- runner-type : macos-m1-stable
63+ # Meta's macOS runners do not have Xcode, so use GitHub's runners.
64+ runner-type : macos-latest-xlarge
65+ setup-miniconda : true
6166 smoke-test-script : ${{ matrix.smoke-test-script }}
6267 trigger-event : ${{ github.event_name }}
You can’t perform that action at this time.
0 commit comments