pytorch / tutorials
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 133 files with 15,432 lines of code.
    • 0 very long files (0 lines of code)
    • 3 long files (1,962 lines of code)
    • 18 medium size files (4,785 lines of codeclsfd_ftr_w_mp_ins)
    • 35 small files (5,048 lines of code)
    • 77 very small files (3,637 lines of code)
0% | 12% | 31% | 32% | 23%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
js0% | 89% | 9% | 0% | <1%
py0% | 0% | 34% | 39% | 26%
css0% | 0% | 60% | 20% | 19%
cpp0% | 0% | 0% | 52% | 47%
html0% | 0% | 0% | 0% | 100%
h0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
_static0% | 65% | 23% | 5% | 5%
beginner_source0% | 0% | 54% | 38% | 7%
intermediate_source0% | 0% | 38% | 48% | 13%
recipes_source/recipes0% | 0% | 26% | 0% | 73%
beginner_source/introyt0% | 0% | 23% | 67% | 8%
advanced_source0% | 0% | 31% | 46% | 21%
ROOT0% | 0% | 68% | 0% | 31%
prototype_source0% | 0% | 0% | 76% | 23%
advanced_source/transformer__timeseries_cpp_tutorial0% | 0% | 0% | 70% | 29%
beginner_source/nlp0% | 0% | 0% | 32% | 67%
advanced_source/rpc_ddp_tutorial0% | 0% | 0% | 100% | 0%
beginner_source/blitz0% | 0% | 0% | 38% | 61%
beginner_source/basics0% | 0% | 0% | 24% | 75%
beginner_source/former_torchies0% | 0% | 0% | 0% | 100%
beginner_source/examples_nn0% | 0% | 0% | 0% | 100%
advanced_source/torch_script_custom_classes0% | 0% | 0% | 0% | 100%
_static/css0% | 0% | 0% | 0% | 100%
_templates0% | 0% | 0% | 0% | 100%
advanced_source/dispatcher0% | 0% | 0% | 0% | 100%
beginner_source/examples_autograd0% | 0% | 0% | 0% | 100%
beginner_source/examples_tensor0% | 0% | 0% | 0% | 100%
beginner_source/hybrid_frontend0% | 0% | 0% | 0% | 100%
advanced_source/torch_script_custom_ops0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
underscore-1.3.1.js
in _static
708 104
websupport.js
in _static
675 58
searchtools.js
in _static
579 20
basic.css
in _static
494 -
chatbot_tutorial.py
in beginner_source
479 37
mario_rl_tutorial.py
in intermediate_source
326 33
seq2seq_translation_tutorial.py
in intermediate_source
300 30
nn_tutorial.py
in beginner_source
270 24
audio_feature_extractions_tutorial.py
in beginner_source
260 10
audio_resampling_tutorial.py
in beginner_source
243 8
benchmark.py
in recipes_source/recipes
242 3
speech_command_classification_with_torchaudio_tutorial.py
in intermediate_source
235 14
tensors_deeper_tutorial.py
in beginner_source/introyt
226 -
deploy_seq2seq_hybrid_frontend_tutorial.py
in beginner_source
225 20
custom_function_conv_bn_tutorial.py
in intermediate_source
222 16
translation_transformer.py
in beginner_source
218 18
forced_alignment_with_torchaudio_tutorial.py
in intermediate_source
217 10
doctools.js
in _static
211 21
audio_data_augmentation_tutorial.py
in beginner_source
208 10
ddp_pipeline.py
in advanced_source
207 9
custom_directives.py
in root
202 5
audio_io_tutorial.py
in beginner_source
190 8
pipeline_tutorial.py
in intermediate_source
189 14
transformer_timeseries.cpp
in advanced_source/transformer__timeseries_cpp_tutorial
180 10
dcgan_faces_tutorial.py
in beginner_source
180 5
reinforcement_q_learning.py
in intermediate_source
179 11
introyt1_tutorial.py
in beginner_source/introyt
175 7
named_tensor_tutorial.py
in intermediate_source
169 9
gallery.css
in _static
167 -
numeric_suite_tutorial.py
in prototype_source
167 9
hyperparameter_tuning_tutorial.py
in beginner_source
166 6
char_rnn_classification_tutorial.py
in intermediate_source
164 16
autograd_saved_tensors_hooks_tutorial.py
in intermediate_source
159 25
neural_style_tutorial.py
in advanced_source
157 12
transformer_tutorial.py
in beginner_source
155 11
data_loading_tutorial.py
in beginner_source
155 10
parametrizations.py
in intermediate_source
153 17
dynamic_quantization_tutorial.py
in advanced_source
149 15
char_rnn_generation_tutorial.py
in intermediate_source
148 16
fx_graph_mode_ptq_dynamic.py
in prototype_source
146 15
text_sentiment_ngrams_tutorial.py
in beginner_source
141 8
transfer_learning_tutorial.py
in beginner_source
138 3
advanced_tutorial.py
in beginner_source/nlp
138 11
model_parallel_tutorial.py
in intermediate_source
137 8
autogradyt_tutorial.py
in beginner_source/introyt
135 6
pruning_tutorial.py
in intermediate_source
128 4
spatial_transformer_tutorial.py
in intermediate_source
123 7
captumyt.py
in beginner_source/introyt
122 2
tensorboardyt_tutorial.py
in beginner_source/introyt
111 4
main.py
in advanced_source/rpc_ddp_tutorial
107 4
Files With Most Units (Top 20)
File# lines# units
underscore-1.3.1.js
in _static
708 104
websupport.js
in _static
675 58
chatbot_tutorial.py
in beginner_source
479 37
mario_rl_tutorial.py
in intermediate_source
326 33
seq2seq_translation_tutorial.py
in intermediate_source
300 30
autograd_saved_tensors_hooks_tutorial.py
in intermediate_source
159 25
nn_tutorial.py
in beginner_source
270 24
doctools.js
in _static
211 21
searchtools.js
in _static
579 20
deploy_seq2seq_hybrid_frontend_tutorial.py
in beginner_source
225 20
translation_transformer.py
in beginner_source
218 18
parametrizations.py
in intermediate_source
153 17
char_rnn_generation_tutorial.py
in intermediate_source
148 16
char_rnn_classification_tutorial.py
in intermediate_source
164 16
custom_function_conv_bn_tutorial.py
in intermediate_source
222 16
Intro_to_TorchScript_tutorial.py
in beginner_source
104 16
dynamic_quantization_tutorial.py
in advanced_source
149 15
fx_graph_mode_ptq_dynamic.py
in prototype_source
146 15
pipeline_tutorial.py
in intermediate_source
189 14
speech_command_classification_with_torchaudio_tutorial.py
in intermediate_source
235 14
Files With Long Lines (Top 20)

There are 24 files with lines longer than 120 characters. In total, there are 42 long lines.

File# lines# units# long lines
searchtools.js
in _static
579 20 5
layout.html
in _templates
86 - 4
chatbot_tutorial.py
in beginner_source
479 37 4
audio_data_augmentation_tutorial.py
in beginner_source
208 10 3
benchmark.py
in recipes_source/recipes
242 3 2
class.cpp
in advanced_source/torch_script_custom_classes/custom_class_project
55 4 2
speech_command_classification_with_torchaudio_tutorial.py
in intermediate_source
235 14 2
numeric_suite_tutorial.py
in prototype_source
167 9 2
translation_transformer.py
in beginner_source
218 18 2
vt_tutorial.py
in beginner_source
71 - 2
dynamic_quantization.py
in recipes_source/recipes
48 3 1
numpy_extensions_tutorial.py
in advanced_source
62 7 1
transformer_timeseries.cpp
in advanced_source/transformer__timeseries_cpp_tutorial
180 10 1
speech_recognition_pipeline_tutorial.py
in intermediate_source
64 2 1
char_rnn_classification_tutorial.py
in intermediate_source
164 16 1
seq2seq_translation_tutorial.py
in intermediate_source
300 30 1
conf.py
in root
92 1 1
underscore-1.3.1.js
in _static
708 104 1
polynomial_nn.py
in beginner_source/examples_nn
24 - 1
dynamic_net.py
in beginner_source/examples_nn
32 3 1