awslabs / deeplearning-benchmark
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 125 files with 11,928 lines of code.
    • 0 very long files (0 lines of code)
    • 2 long files (1,589 lines of code)
    • 8 medium size files (2,294 lines of codeclsfd_ftr_w_mp_ins)
    • 37 small files (5,120 lines of code)
    • 78 very small files (2,925 lines of code)
0% | 13% | 19% | 42% | 24%
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
py0% | 14% | 21% | 39% | 24%
scala0% | 0% | 0% | 70% | 29%
java0% | 0% | 0% | 81% | 18%
yaml0% | 0% | 0% | 100% | 0%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
tensorflow_benchmark0% | 47% | 26% | 12% | 13%
tensorflow0% | 0% | 33% | 42% | 23%
image_classification0% | 0% | 10% | 65% | 24%
djl0% | 0% | 100% | 0% | 0%
scala-mxnet0% | 0% | 0% | 79% | 20%
word_language_model0% | 0% | 0% | 70% | 29%
reporting0% | 0% | 0% | 60% | 39%
dawnbench0% | 0% | 0% | 99% | <1%
ssd0% | 0% | 0% | 100% | 0%
utils0% | 0% | 0% | 41% | 58%
end_to_end_model_benchmark0% | 0% | 0% | 35% | 64%
benchmark0% | 0% | 0% | 49% | 50%
ROOT0% | 0% | 0% | 0% | 100%
onnx_benchmark0% | 0% | 0% | 0% | 100%
dependency_update0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
benchmark_cnn.py
in tensorflow_benchmark/tf_cnn_benchmarks
946 24
variable_mgr.py
in tensorflow_benchmark/tf_cnn_benchmarks
643 88
preprocessing.py
in tensorflow_benchmark/tf_cnn_benchmarks
500 20
convnet_builder.py
in tensorflow_benchmark/tf_cnn_benchmarks
379 17
build_imagenet_data.py
in tensorflow/inception/inception/data
294 20
inception_model.py
in tensorflow/inception/inception/slim
246 2
fit.py
in image_classification/common
237 5
ops.py
in tensorflow/inception/inception/slim
223 10
trainCiFar10.py
in djl
209 6
resnet_model.py
in tensorflow/resnet
206 13
infer_imagenet_gpu.py
in image_classification
194 5
inception_distributed_train.py
in tensorflow/inception/inception
187 1
benchmarks.yaml
in reporting/config
186 -
alexnet.py
in tensorflow/alexnet
182 4
build_image_data.py
in tensorflow/inception/inception/data
180 13
resnet_model.py
in tensorflow_benchmark/tf_cnn_benchmarks/models
178 10
infer_imagenet.py
in image_classification
177 4
inception_train.py
in tensorflow/inception/inception
163 3
word_language_model.py
in word_language_model
159 5
word_language_model_train.py
in word_language_model
158 5
Utils.scala
in scala-mxnet/scala-bm/src/main/scala/mxnet
153 13
image_classification.py
in image_classification
151 2
resnet_main.py
in tensorflow/resnet
151 4
inception-v3.py
in image_classification/symbols
149 7
data.py
in image_classification/common
145 11
image_processing.py
in tensorflow/inception/inception
145 9
inception_model.py
in tensorflow_benchmark/tf_cnn_benchmarks/models
137 9
cifar10.py
in dawnbench
133 8
resnext.py
in image_classification/symbols
131 3
resnet.py
in image_classification/symbols
130 3
resnet-v1.py
in image_classification/symbols
128 3
ssd_inference.py
in ssd
125 8
process_bounding_boxes.py
in tensorflow/inception/inception/data
121 4
Lstm.scala
in scala-mxnet/scala-bm/src/main/scala/mxnet
120 3
inception-v4.py
in image_classification/symbols
117 8
inception-resnet-v2.py
in image_classification/symbols
116 6
ImageClassification.scala
in scala-mxnet/scala-bm/src/main/scala/mxnet
116 6
benchmarks.py
in reporting/utils
115 7
datasets.py
in tensorflow_benchmark/tf_cnn_benchmarks
115 21
metrics_manager.py
in utils
114 7
SSDObjectDetection.scala
in scala-mxnet/scala-bm/src/main/scala/mxnet
112 6
lstm_bucketing_infer.py
in word_language_model
111 3
EndToEndModelWoPreprocessing.java
in end_to_end_model_benchmark/java-bm/src/main/java/mxnet
106 4
SSDObjectDetection.java
in scala-mxnet/java-bm/src/main/java/mxnet
106 4
generate_runner.py
in benchmark/tensorflow
105 8
data.py
in image_classification
102 8
resnet_dist.py
in tensorflow/resnet
102 2
inception_eval.py
in tensorflow/inception/inception
98 2
report_generation.py
in reporting/utils
97 2
EndToEndModelWoPreprocessing.scala
in end_to_end_model_benchmark/scala-bm/src/main/scala/mxnet
96 4
Files With Most Units (Top 20)
File# lines# units
variable_mgr.py
in tensorflow_benchmark/tf_cnn_benchmarks
643 88
benchmark_cnn.py
in tensorflow_benchmark/tf_cnn_benchmarks
946 24
datasets.py
in tensorflow_benchmark/tf_cnn_benchmarks
115 21
preprocessing.py
in tensorflow_benchmark/tf_cnn_benchmarks
500 20
build_imagenet_data.py
in tensorflow/inception/inception/data
294 20
convnet_builder.py
in tensorflow_benchmark/tf_cnn_benchmarks
379 17
resnet_model.py
in tensorflow/resnet
206 13
build_image_data.py
in tensorflow/inception/inception/data
180 13
Utils.scala
in scala-mxnet/scala-bm/src/main/scala/mxnet
153 13
cnn_util.py
in tensorflow_benchmark/tf_cnn_benchmarks
75 12
data.py
in image_classification/common
145 11
resnet_model.py
in tensorflow_benchmark/tf_cnn_benchmarks/models
178 10
model.py
in tensorflow_benchmark/tf_cnn_benchmarks/models
35 10
ops.py
in tensorflow/inception/inception/slim
223 10
variables.py
in tensorflow/inception/inception/slim
84 10
cpu_gpu_profiler.py
in utils
95 9
inception_model.py
in tensorflow_benchmark/tf_cnn_benchmarks/models
137 9
image_processing.py
in tensorflow/inception/inception
145 9
generate_runner.py
in benchmark/tensorflow
105 8
data.py
in image_classification
102 8
Files With Long Lines (Top 20)

There are 27 files with lines longer than 120 characters. In total, there are 126 long lines.

File# lines# units# long lines
inception-v3.py
in image_classification/symbols
149 7 24
mobilenet.py
in image_classification/symbols
95 4 19
benchmarks.yaml
in reporting/config
186 - 17
resnext.py
in image_classification/symbols
131 3 10
inception-bn.py
in image_classification/symbols
78 6 9
data_manager.py
in utils
26 1 5
cifar10.py
in dawnbench
133 8 4
SSDObjectDetection.java
in scala-mxnet/java-bm/src/main/java/mxnet
106 4 4
SSDObjectDetection.scala
in scala-mxnet/scala-bm/src/main/scala/mxnet
112 6 4
resnet.py
in image_classification/symbols
130 3 3
resnet-v1.py
in image_classification/symbols
128 3 3
benchmark_runner.py
in root
53 1 2
generate_runner.py
in benchmark/tensorflow
105 8 2
lstm_bucketing_infer.py
in word_language_model
111 3 2
modelzoo.py
in image_classification/common
44 1 2
googlenet.py
in image_classification/symbols
38 3 2
vgg.py
in image_classification/symbols
38 3 2
ImageClassification.scala
in scala-mxnet/scala-bm/src/main/scala/mxnet
116 6 2
CharRnnExample.scala
in scala-mxnet/scala-bm/src/main/scala/mxnet
65 3 2
EndToEndModelWoPreprocessing.java
in end_to_end_model_benchmark/java-bm/src/main/java/mxnet
106 4 1