Skip to content

Commit 71c21c8

Browse files
authored
Add torch.export nightly tutorial (pytorch#2603)
* add torch.export nightly tutorial * add sample outputs to nightly tutorial; add script the tutorial was based on (not run) * fix validate_tutorials_built.py * fix export nightly tutorial rst * tell sphinx-gallery to ignore _torch_export_nightly_tutorial.py * update torch.export nightly tutorial with decomp section and other small fixes * add credit :)
1 parent 3e9e8f6 commit 71c21c8

5 files changed

+1483
-2
lines changed

.jenkins/validate_tutorials_built.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@
2222
"beginner_source/former_torchies/tensor_tutorial_old",
2323
"beginner_source/examples_autograd/polynomial_autograd",
2424
"beginner_source/examples_autograd/polynomial_custom_function",
25-
"beginner_source/t5_tutorial", # re-enable after this is fixed: https://github.com/pytorch/text/issues/1756
25+
"beginner_source/t5_tutorial", # re-enable after this is fixed: https://github.com/pytorch/text/issues/1756
2626
"intermediate_source/parametrizations",
2727
"intermediate_source/mnist_train_nas", # used by ax_multiobjective_nas_tutorial.py
2828
"intermediate_source/fx_conv_bn_fuser",
29+
"intermediate_source/_torch_export_nightly_tutorial", # does not work on release
2930
"advanced_source/super_resolution_with_onnxruntime",
3031
"advanced_source/ddp_pipeline", # requires 4 gpus
3132
"prototype_source/fx_graph_mode_ptq_dynamic",

conf.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ def reset_seeds(gallery_conf, fname):
106106
'first_notebook_cell': ("# For tips on running notebooks in Google Colab, see\n"
107107
"# https://pytorch.org/tutorials/beginner/colab\n"
108108
"%matplotlib inline"),
109-
'reset_modules': (reset_seeds)
109+
'reset_modules': (reset_seeds),
110+
'ignore_pattern': r'_torch_export_nightly_tutorial.py'
110111
}
111112

112113
if os.getenv('GALLERY_PATTERN'):

0 commit comments

Comments
 (0)