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

Function generate_vgf_tutorial

backends/arm/scripts/docgen/docgen.py:250–264  ·  view source on GitHub ↗

Generates the tutorial for the VGF minimal example.

()

Source from the content-addressed store, hash-verified

248
249
250def generate_vgf_tutorial():
251 """Generates the tutorial for the VGF minimal example."""
252 vgf_example = get_jupyter_code(
253 "./examples/arm/vgf_minimal_example.ipynb",
254 get_bash=False,
255 which_cells=[0, 2, 3],
256 )
257
258 doc = "tutorial-arm-vgf.md"
259 with open(f"backends/arm/scripts/docgen/{doc}.in", "r") as f:
260 content = f.read()
261 content = content.replace("$MINIMAL_EXAMPLE", vgf_example)
262
263 with open(f"docs/source/{doc}", "w") as f:
264 f.write(content)
265
266
267if __name__ == "__main__":

Callers

nothing calls this directly

Calls 2

get_jupyter_codeFunction · 0.85
writeMethod · 0.80

Tested by

no test coverage detected