Generates the tutorial for the Ethos-U minimal example.
()
| 234 | |
| 235 | |
| 236 | def 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 | |
| 250 | def generate_vgf_tutorial(): |
nothing calls this directly
no test coverage detected