Skip to content

Commit 1f8ca99

Browse files
angelayifacebook-github-bot
authored andcommitted
Export to Executorch Tutorial (#474)
Summary: Pull Request resolved: #474 Reviewed By: svekars Differential Revision: D49511884
1 parent a89017d commit 1f8ca99

File tree

6 files changed

+676
-6
lines changed

6 files changed

+676
-6
lines changed

docs/source/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
sphinx_gallery_conf = {
7272
"examples_dirs": ["tutorials_source"],
7373
"gallery_dirs": ["tutorials"],
74-
"filename_pattern": "/tutorials/",
74+
"filename_pattern": "/tutorials_source/",
7575
"promote_jupyter_magic": True,
7676
"backreferences_dir": None,
7777
"first_notebook_cell": ("%matplotlib inline"),
@@ -90,6 +90,10 @@
9090
# This pattern also affects html_static_path and html_extra_path.
9191
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
9292

93+
# autosectionlabel throws warnings if section names are duplicated.
94+
# The following tells autosectionlabel to not throw a warning for
95+
# duplicated section names that are in different documents.
96+
autosectionlabel_prefix_document = True
9397

9498
# -- Options for HTML output -------------------------------------------------
9599

docs/source/executorch_stack.png

Loading

docs/source/export-overview.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/source/export-overview.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Exporting to Executorch
2+
=======================
3+
4+
A tutorial for exporting a PyTorch model to executorch `here <./tutorials/export-to-executorch-tutorial.html>`__
5+
6+
It will redirect in 3 seconds.
7+
8+
.. raw:: html
9+
10+
<meta http-equiv="Refresh" content="3; url='./tutorials/export-to-executorch-tutorial.html'" />

docs/source/index.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ Topics in this section will help you get started with ExecuTorch.
163163
:caption: Tutorials
164164
:hidden:
165165

166-
tutorials/template_tutorial
166+
tutorials/export-to-executorch-tutorial
167167

168168
Tutorials and Examples
169169
~~~~~~~~~~~~~~~~~~~~~~
@@ -180,5 +180,11 @@ ExecuTorch tutorials.
180180
:link: tutorials/template_tutorial.html
181181
:tags: Template
182182

183-
.. customcardend::
183+
.. customcarditem::
184+
:header: Exporting to Executorch Tutorial
185+
:card_description: A tutorial for exporting a model and lowering a it to be runnable on the Executorch runtime.
186+
:image: _static/img/generic-pytorch-logo.png
187+
:link: tutorials/export-to-executorch.html
188+
:tags: Export,Delegation,Quantization
184189

190+
.. customcardend::

0 commit comments

Comments
 (0)