From 35c20fe57d798d131d4b9dfa2464579451db5d87 Mon Sep 17 00:00:00 2001 From: "Shi-Yao, ZHOU" Date: Sun, 25 Oct 2026 17:22:09 +0800 Subject: [PATCH] Fix export script path in backends-mediatek.md The script uses paths relative to examples/mediatek (e.g. model_export_scripts/...), so running it from the repo root fails with ``` Export model: mobilenetv3 python3: can't open file '/media/user/disk2/mateo/zza/executorch/model_export_scripts/mobilenet_v3.py': [Errno 2] No such file or directory ``` This PR updates the instructions to cd into examples/mediatek first. --- docs/source/backends-mediatek.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/backends-mediatek.md b/docs/source/backends-mediatek.md index cbd697440c4..d3c8124b50a 100644 --- a/docs/source/backends-mediatek.md +++ b/docs/source/backends-mediatek.md @@ -33,8 +33,8 @@ The MediaTek backend enables acceleration of PyTorch models on edge devices with To export and lower a model for the MediaTek backend, use the provided shell script: ```bash -cd executorch -./examples/mediatek/shell_scripts/export_oss.sh mobilenetv3 +cd executorch/examples/mediatek/ +./shell_scripts/export_oss.sh mobilenetv3 ``` The exported `.pte` file is saved in a directory named after the model.