|
5 | 5 |
|
6 | 6 | REPO_ROOT = Path(__file__).parent.parent
|
7 | 7 |
|
8 |
| -# files that are ok to have 0 min 0 sec time, probably because they don't have any python code |
9 |
| -OK_TO_NOT_RUN = [ |
10 |
| - "beginner/basics/intro.html", # no code |
11 |
| -] |
| 8 | +# For every tutorial on this list, we should determine if it is ok to not run the tutorial (add a comment after |
| 9 | +# the file name to explain why, like intro.html), or fix the tutorial and remove it from this list). |
12 | 10 |
|
13 |
| -# when the tutorial is fixed, remove it from this list |
14 |
| -KNOWN_BAD = [ |
15 |
| - "beginner/translation_transformer.html", |
16 |
| - "beginner/profiler.html", |
17 |
| - "beginner/saving_loading_models.html", |
18 |
| - "beginner/introyt/captumyt.html", |
19 |
| - "beginner/introyt/trainingyt.html", |
20 |
| - "beginner/examples_nn/polynomial_module.html", |
21 |
| - "beginner/examples_nn/dynamic_net.html", |
22 |
| - "beginner/examples_nn/polynomial_optim.html", |
23 |
| - "beginner/examples_nn/polynomial_nn.html", |
24 |
| - "beginner/examples_tensor/polynomial_numpy.html", |
25 |
| - "beginner/examples_tensor/polynomial_tensor.html", |
26 |
| - "beginner/former_torchies/autograd_tutorial_old.html", |
27 |
| - "beginner/former_torchies/tensor_tutorial_old.html", |
28 |
| - "beginner/examples_autograd/polynomial_autograd.html", |
29 |
| - "beginner/examples_autograd/polynomial_custom_function.html", |
30 |
| - "intermediate/forward_ad_usage.html", |
31 |
| - "intermediate/parametrizations.html", |
32 |
| - "intermediate/reinforcement_q_learning.html", |
33 |
| - "intermediate/text_to_speech_with_torchaudio.html", |
34 |
| - "intermediate/mnist_train_nas.html", |
35 |
| - "intermediate/fx_conv_bn_fuser.html", |
36 |
| - "advanced/super_resolution_with_onnxruntime.html", |
37 |
| - "advanced/ddp_pipeline.html", |
38 |
| - "prototype/fx_graph_mode_ptq_dynamic.html", |
39 |
| - "prototype/vmap_recipe.html", |
40 |
| - "prototype/torchscript_freezing.html", |
41 |
| - "prototype/nestedtensor.html", |
42 |
| - "recipes/recipes/saving_and_loading_models_for_inference.html", |
43 |
| - "recipes/recipes/saving_multiple_models_in_one_file.html", |
44 |
| - "recipes/recipes/loading_data_recipe.html", |
45 |
| - "recipes/recipes/tensorboard_with_pytorch.html", |
46 |
| - "recipes/recipes/what_is_state_dict.html", |
47 |
| - "recipes/recipes/profiler_recipe.html", |
48 |
| - "recipes/recipes/save_load_across_devices.html", |
49 |
| - "recipes/recipes/warmstarting_model_using_parameters_from_a_different_model.html", |
50 |
| - "recipes/recipes/dynamic_quantization.html", |
51 |
| - "recipes/recipes/saving_and_loading_a_general_checkpoint.html", |
52 |
| - "recipes/recipes/benchmark.html", |
53 |
| - "recipes/recipes/tuning_guide.html", |
54 |
| - "recipes/recipes/zeroing_out_gradients.html", |
55 |
| - "recipes/recipes/defining_a_neural_network.html", |
56 |
| - "recipes/recipes/timer_quick_start.html", |
57 |
| - "recipes/recipes/amp_recipe.html", |
58 |
| - "recipes/recipes/Captum_Recipe.html", |
| 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 | + "forward_ad_usage", |
| 26 | + "parametrizations", |
| 27 | + "reinforcement_q_learning", |
| 28 | + "text_to_speech_with_torchaudio", |
| 29 | + "mnist_train_nas", # used by ax_multiobjective_nas_tutorial.py |
| 30 | + "fx_conv_bn_fuser", |
| 31 | + "super_resolution_with_onnxruntime", |
| 32 | + "ddp_pipeline", # requires 4 gpus |
| 33 | + "fx_graph_mode_ptq_dynamic", |
| 34 | + "vmap_recipe", |
| 35 | + "torchscript_freezing", |
| 36 | + "nestedtensor", |
| 37 | + "recipes/saving_and_loading_models_for_inference", |
| 38 | + "recipes/saving_multiple_models_in_one_file", |
| 39 | + "recipes/loading_data_recipe", |
| 40 | + "recipes/tensorboard_with_pytorch", |
| 41 | + "recipes/what_is_state_dict", |
| 42 | + "recipes/profiler_recipe", |
| 43 | + "recipes/save_load_across_devices", |
| 44 | + "recipes/warmstarting_model_using_parameters_from_a_different_model", |
| 45 | + "recipes/dynamic_quantization", |
| 46 | + "recipes/saving_and_loading_a_general_checkpoint", |
| 47 | + "recipes/benchmark", |
| 48 | + "recipes/tuning_guide", |
| 49 | + "recipes/zeroing_out_gradients", |
| 50 | + "recipes/defining_a_neural_network", |
| 51 | + "recipes/timer_quick_start", |
| 52 | + "recipes/amp_recipe", |
| 53 | + "recipes/Captum_Recipe", |
| 54 | + "hyperparameter_tuning_tutorial", |
| 55 | + "flask_rest_api_tutorial", |
59 | 56 | ]
|
60 | 57 |
|
61 | 58 |
|
@@ -84,7 +81,7 @@ def main() -> None:
|
84 | 81 | "Total running time of the script: ( 0 minutes 0.000 seconds)"
|
85 | 82 | in elem.text
|
86 | 83 | and not any(
|
87 |
| - html_file_path.match(file) for file in KNOWN_BAD + OK_TO_NOT_RUN |
| 84 | + html_file_path.match(file) for file in NOT_RUN |
88 | 85 | )
|
89 | 86 | ):
|
90 | 87 | did_not_run.append(html_file_path.as_posix())
|
|
0 commit comments