MCPcopy Create free account
hub / github.com/pytorch/executorch / generate_ethosu_tutorial

Function generate_ethosu_tutorial

backends/arm/scripts/docgen/docgen.py:236–247  ·  view source on GitHub ↗

Generates the tutorial for the Ethos-U minimal example.

()

Source from the content-addressed store, hash-verified

234
235
236def generate_ethosu_tutorial():
237 """Generates the tutorial for the Ethos-U minimal example."""
238 ethosu_example = get_jupyter_code(
239 "./examples/arm/ethos_u_minimal_example.ipynb", get_bash=False
240 )
241 doc = "tutorial-arm-ethos-u.md"
242 with open(f"backends/arm/scripts/docgen/{doc}.in", "r") as f:
243 content = f.read()
244 content = content.replace("$MINIMAL_EXAMPLE", ethosu_example)
245
246 with open(f"docs/source/{doc}", "w") as f:
247 f.write(content)
248
249
250def generate_vgf_tutorial():

Callers

nothing calls this directly

Calls 2

get_jupyter_codeFunction · 0.85
writeMethod · 0.80

Tested by

no test coverage detected