Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .ci/scripts/test_model.sh
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ test_model_with_coreml() {

"${PYTHON_EXECUTABLE}" -m examples.apple.coreml.scripts.export --model_name="${MODEL_NAME}" --compute_precision "${DTYPE}"
EXPORTED_MODEL=$(find "." -type f -name "${MODEL_NAME}*.pte" -print -quit)
# TODO:

if [ -n "$EXPORTED_MODEL" ]; then
EXPORTED_MODEL_WITH_DTYPE="${EXPORTED_MODEL%.pte}_${DTYPE}.pte"
mv "$EXPORTED_MODEL" "$EXPORTED_MODEL_WITH_DTYPE"
Expand All @@ -200,6 +200,11 @@ test_model_with_coreml() {
test_model_with_mps() {
"${PYTHON_EXECUTABLE}" -m examples.apple.mps.scripts.mps_example --model_name="${MODEL_NAME}" --use_fp16
EXPORTED_MODEL=$(find "." -type f -name "${MODEL_NAME}*.pte" -print -quit)

if [ -n "$EXPORTED_MODEL" ]; then
bash ./examples/apple/mps/scripts/build_mps_executor_runner.sh
./${CMAKE_OUTPUT_DIR}/examples/apple/mps/mps_executor_runner --model_path "${EXPORTED_MODEL}" --bundled_program
fi
}

if [[ "${BACKEND}" == "portable" ]]; then
Expand Down
Loading