4
4
5
5
from bs4 import BeautifulSoup
6
6
7
+ # files that are ok to have 0 min 0 sec time, probably because they don't have any python code
8
+ OK_TO_NOT_RUN = [
9
+ "beginner/basics/intro.html" ,
10
+ ]
11
+
7
12
KNOWN_BAD = [
8
13
"beginner/translation_transformer.html" ,
9
14
"beginner/torchtext_translation.html" ,
10
15
"beginner/profiler.html" ,
11
16
"beginner/saving_loading_models.html" ,
12
- "beginner/basics/intro.html" ,
13
17
"beginner/introyt/captumyt.html" ,
14
18
"beginner/introyt/trainingyt.html" ,
15
19
"beginner/examples_nn/polynomial_module.html" ,
61
65
"recipes/recipes/defining_a_neural_network.html" ,
62
66
"recipes/recipes/timer_quick_start.html" ,
63
67
"recipes/recipes/amp_recipe.html" ,
68
+ "recipes/recipes/Captum_Recipe.html" ,
64
69
]
65
70
66
71
@@ -83,7 +88,7 @@ def main():
83
88
if (
84
89
"Total running time of the script: ( 0 minutes 0.000 seconds)"
85
90
in elem .text
86
- and not any (html_file_path .endswith (file ) for file in KNOWN_BAD )
91
+ and not any (html_file_path .endswith (file ) for file in KNOWN_BAD + OK_TO_NOT_RUN )
87
92
):
88
93
did_not_run .append (html_file_path )
89
94
0 commit comments