You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/arm/vgf_minimal_example.ipynb
+28-10Lines changed: 28 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -23,13 +23,11 @@
23
23
"\n",
24
24
"Before you begin:\n",
25
25
"1. (In a clean virtual environment with a compatible Python version) Install executorch using `./install_executorch.sh`\n",
26
-
"2. Install MLSDK and Tosa using `examples/arm/setup.sh --disable-ethos-u-deps --enable-mlsdk-deps (For further guidance, refer to https://docs.pytorch.org/executorch/main/tutorial-arm.html)\n",
26
+
"2. Install MLSDK and Tosa using `examples/arm/setup.sh --disable-ethos-u-deps --enable-mlsdk-deps` (For further guidance, refer to https://docs.pytorch.org/executorch/main/tutorial-arm.html)\n",
27
27
"3. Export vulkan environment variables and add MLSDK components to PATH and LD_LIBRARY_PATH using `examples/arm/ethos-u-scratch/setup_path.sh`\n",
28
28
"\n",
29
29
"With all commands executed from the base `executorch` folder.\n",
30
30
"\n",
31
-
"\n",
32
-
"\n",
33
31
"*Some scripts in this notebook produce long output logs: Configuring the 'Customizing Notebook Layout' settings to enable 'Output:scrolling' and setting 'Output:Text Line Limit' makes this more manageable*"
34
32
]
35
33
},
@@ -165,6 +163,17 @@
165
163
"All of this happens behind the scenes in `to_edge_transform_and_lower`. Printing the graph module shows that what is left in the graph is two quantization nodes for `x` and `y` going into an `executorch_call_delegate` node, followed by a dequantization node."
166
164
]
167
165
},
166
+
{
167
+
"cell_type": "code",
168
+
"execution_count": null,
169
+
"metadata": {},
170
+
"outputs": [],
171
+
"source": [
172
+
"%%bash\n",
173
+
"# Ensure the vulkan environment variables and MLSDK components are available on $PATH\n",
174
+
"source ethos-u-scratch/setup_path.sh"
175
+
]
176
+
},
168
177
{
169
178
"cell_type": "code",
170
179
"execution_count": null,
@@ -220,10 +229,21 @@
220
229
"\n",
221
230
"\n",
222
231
"After the AOT compilation flow is done, we need to build the executor_runner target. For this example the generic version will be used.\n",
223
-
"To do this, please ensure the following commands are executed before moving onto the next step.\n",
232
+
"To do this, please ensure the following commands are executed before moving onto the next step."
233
+
]
234
+
},
235
+
{
236
+
"cell_type": "code",
237
+
"execution_count": null,
238
+
"metadata": {},
239
+
"outputs": [],
240
+
"source": [
241
+
"%%bash\n",
242
+
"# Ensure the vulkan environment variables and MLSDK components are available on $PATH\n",
243
+
"source ethos-u-scratch/setup_path.sh\n",
224
244
"\n",
225
-
"Clean and configure the CMake build system. Compiled programs will appear in the executorch/cmake-out directory we create here.\n",
226
-
"```\n",
245
+
"# Compiled programs will appear in the executorch/cmake-out directory we create here.\n",
246
+
"# Build example executor runner application to examples/arm/vgf_minimal_example\n",
0 commit comments