9
9
# the file name to explain why, like intro.html), or fix the tutorial and remove it from this list).
10
10
11
11
NOT_RUN = [
12
- "basics/intro" , # no code
13
- "translation_transformer" ,
14
- "profiler" ,
15
- "saving_loading_models" ,
16
- "introyt/captumyt" ,
17
- "introyt/trainingyt" ,
18
- "examples_nn/polynomial_module" ,
19
- "examples_nn/dynamic_net" ,
20
- "examples_nn/polynomial_optim" ,
21
- "former_torchies/autograd_tutorial_old" ,
22
- "former_torchies/tensor_tutorial_old" ,
23
- "examples_autograd/polynomial_autograd" ,
24
- "examples_autograd/polynomial_custom_function" ,
25
- "parametrizations" ,
26
- "mnist_train_nas" , # used by ax_multiobjective_nas_tutorial.py
27
- "fx_conv_bn_fuser" ,
28
- "super_resolution_with_onnxruntime" ,
29
- "ddp_pipeline" , # requires 4 gpus
30
- "fx_graph_mode_ptq_dynamic" ,
31
- "vmap_recipe" ,
32
- "torchscript_freezing" ,
33
- "nestedtensor" ,
34
- "recipes/saving_and_loading_models_for_inference" ,
35
- "recipes/saving_multiple_models_in_one_file" ,
36
- "recipes/loading_data_recipe" ,
37
- "recipes/tensorboard_with_pytorch" ,
38
- "recipes/what_is_state_dict" ,
39
- "recipes/profiler_recipe" ,
40
- "recipes/save_load_across_devices" ,
41
- "recipes/warmstarting_model_using_parameters_from_a_different_model" ,
42
- "recipes/dynamic_quantization" ,
43
- "recipes/saving_and_loading_a_general_checkpoint" ,
44
- "recipes/benchmark" ,
45
- "recipes/tuning_guide" ,
46
- "recipes/zeroing_out_gradients" ,
47
- "recipes/defining_a_neural_network" ,
48
- "recipes/timer_quick_start" ,
49
- "recipes/amp_recipe" ,
50
- "recipes/Captum_Recipe" ,
51
- "hyperparameter_tuning_tutorial" ,
52
- "flask_rest_api_tutorial" ,
53
- "text_to_speech_with_torchaudio" ,
12
+ "beginner_source/basics/intro" , # no code
13
+ "beginner_source/translation_transformer" ,
14
+ "beginner_source/profiler" ,
15
+ "beginner_source/saving_loading_models" ,
16
+ "beginner_source/introyt/captumyt" ,
17
+ "beginner_source/examples_nn/polynomial_module" ,
18
+ "beginner_source/examples_nn/dynamic_net" ,
19
+ "beginner_source/examples_nn/polynomial_optim" ,
20
+ "beginner_source/former_torchies/autograd_tutorial_old" ,
21
+ "beginner_source/former_torchies/tensor_tutorial_old" ,
22
+ "beginner_source/examples_autograd/polynomial_autograd" ,
23
+ "beginner_source/examples_autograd/polynomial_custom_function" ,
24
+ "intermediate_source/parametrizations" ,
25
+ "intermediate_source/mnist_train_nas" , # used by ax_multiobjective_nas_tutorial.py
26
+ "intermediate_source/fx_conv_bn_fuser" ,
27
+ "advanced_source/super_resolution_with_onnxruntime" ,
28
+ "advanced_source/ddp_pipeline" , # requires 4 gpus
29
+ "prototype_source/fx_graph_mode_ptq_dynamic" ,
30
+ "prototype_source/vmap_recipe" ,
31
+ "prototype_source/torchscript_freezing" ,
32
+ "prototype_source/nestedtensor" ,
33
+ "recipes_source/recipes/saving_and_loading_models_for_inference" ,
34
+ "recipes_source/recipes/saving_multiple_models_in_one_file" ,
35
+ "recipes_source/recipes/loading_data_recipe" ,
36
+ "recipes_source/recipes/tensorboard_with_pytorch" ,
37
+ "recipes_source/recipes/what_is_state_dict" ,
38
+ "recipes_source/recipes/profiler_recipe" ,
39
+ "recipes_source/recipes/save_load_across_devices" ,
40
+ "recipes_source/recipes/warmstarting_model_using_parameters_from_a_different_model" ,
41
+ "recipes_source/recipes/dynamic_quantization" ,
42
+ "recipes_source/recipes/saving_and_loading_a_general_checkpoint" ,
43
+ "recipes_source/recipes/benchmark" ,
44
+ "recipes_source/recipes/tuning_guide" ,
45
+ "recipes_source/recipes/zeroing_out_gradients" ,
46
+ "recipes_source/recipes/defining_a_neural_network" ,
47
+ "recipes_source/recipes/timer_quick_start" ,
48
+ "recipes_source/recipes/amp_recipe" ,
49
+ "recipes_source/recipes/Captum_Recipe" ,
50
+ "intermediate_source/flask_rest_api_tutorial" ,
51
+ "intermediate_source/text_to_speech_with_torchaudio" ,
52
+ "intermediate_source/tensorboard_profiler_tutorial" # reenable after 2.0 release.
54
53
]
55
54
56
-
57
55
def tutorial_source_dirs () -> List [Path ]:
58
56
return [
59
57
p .relative_to (REPO_ROOT ).with_name (p .stem [:- 7 ])
@@ -68,6 +66,7 @@ def main() -> None:
68
66
glob_path = f"{ tutorial_source_dir } /**/*.html"
69
67
html_file_paths += docs_dir .glob (glob_path )
70
68
69
+ should_not_run = [f'{ x .replace ("_source" , "" )} .html' for x in NOT_RUN ]
71
70
did_not_run = []
72
71
for html_file_path in html_file_paths :
73
72
with open (html_file_path , "r" , encoding = "utf-8" ) as html_file :
@@ -78,9 +77,7 @@ def main() -> None:
78
77
if (
79
78
"Total running time of the script: ( 0 minutes 0.000 seconds)"
80
79
in elem .text
81
- and not any (
82
- html_file_path .match (file ) for file in NOT_RUN
83
- )
80
+ and not any (html_file_path .match (file ) for file in should_not_run )
84
81
):
85
82
did_not_run .append (html_file_path .as_posix ())
86
83
0 commit comments