aws / aws-neuron-tensorflow
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 99 files with 14,186 lines of code.
    • 1 very long files (1,676 lines of code)
    • 6 long files (3,980 lines of code)
    • 11 medium size files (3,629 lines of codeclsfd_ftr_w_mp_ins)
    • 15 small files (2,147 lines of code)
    • 66 very small files (2,754 lines of code)
11% | 28% | 25% | 15% | 19%
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
cc20% | 24% | 25% | 16% | 12%
py0% | 47% | 28% | 10% | 13%
h0% | 0% | 19% | 20% | 59%
proto0% | 0% | 0% | 0% | 100%
bzl0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
grappler60% | 0% | 25% | 0% | 14%
grappler/convert0% | 90% | 0% | 0% | 9%
python0% | 37% | 38% | 9% | 14%
python/hlo0% | 85% | 0% | 14% | 0%
runtime0% | 24% | 36% | 20% | 19%
runtime/direct0% | 0% | 35% | 34% | 29%
runtime/kernels0% | 0% | 0% | 75% | 24%
tf2hlo0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
python/tf2xla0% | 0% | 0% | 0% | 100%
runtime/ops0% | 0% | 0% | 0% | 100%
api0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
auto_mixed_precision.cc
in grappler
1676 76
optimize.py
in python/hlo
835 48
model.cc
in runtime
734 14
graph_util.py
in python
689 22
convert_graph.cc
in grappler/convert
689 17
segment.cc
in grappler/convert
532 17
graph_def_util.py
in python
501 20
engine.cc
in runtime
430 19
runtime_grpc.cc
in runtime
425 22
adaptor.cc
in runtime/direct
398 19
fuse.py
in python
383 16
auto_mixed_precision_lists.h
in grappler
374 9
shape_inference.cc
in grappler
332 5
_trace.py
in python
318 19
saved_model.py
in python
287 12
shared_memory.cc
in runtime
249 10
neuron_cc_hlo.py
in python
222 10
host_memory.cc
in runtime/direct
211 8
function.cc
in runtime/direct
182 6
maxpooling_op.cc
in runtime/kernels
179 4
avgpooling_op.cc
in runtime/kernels
171 4
predictor.py
in python
169 15
placer.cc
in runtime/direct
162 2
pooling_utils.h
in runtime/kernels
156 5
device.cc
in runtime
147 12
dynamic_batch.cc
in runtime/direct
144 6
instruction.py
in python/hlo
144 42
tensor_util.cc
in runtime
133 6
model_config.h
in runtime
122 10
performance.py
in python
119 12
runtime_grpc.h
in runtime
111 4
executable_info.cc
in runtime/direct
106 2
profiler.cc
in runtime
102 5
engine.h
in runtime
95 4
setup.py
in root
90 8
fuse_supported_operators.cc
in grappler
89 4
mark_ops_in_fixed_shape_context.cc
in grappler
87 5
executable.cc
in runtime/direct
85 6
utils.py
in python
84 6
macros.h
in runtime
81 -
init.cc
in runtime
80 3
neuron_cc.py
in python
79 4
custom_op.cc
in tf2hlo
70 3
env.cc
in runtime
69 4
proto
tf2xla.proto
in python/tf2xla
68 -
neuron_op.cc
in runtime/ops
67 1
saved_model_util.py
in python
66 3
meta_graph_util.py
in python
65 2
convert_graph.h
in grappler/convert
63 -
host_memory.h
in runtime/direct
62 3
Files With Most Units (Top 20)
File# lines# units
auto_mixed_precision.cc
in grappler
1676 76
optimize.py
in python/hlo
835 48
instruction.py
in python/hlo
144 42
runtime_grpc.cc
in runtime
425 22
graph_util.py
in python
689 22
graph_def_util.py
in python
501 20
adaptor.cc
in runtime/direct
398 19
engine.cc
in runtime
430 19
_trace.py
in python
318 19
segment.cc
in grappler/convert
532 17
convert_graph.cc
in grappler/convert
689 17
fuse.py
in python
383 16
predictor.py
in python
169 15
model.cc
in runtime
734 14
device.cc
in runtime
147 12
saved_model.py
in python
287 12
performance.py
in python
119 12
model_config.h
in runtime
122 10
shared_memory.cc
in runtime
249 10
neuron_cc_hlo.py
in python
222 10
Files With Long Lines (Top 5)

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

File# lines# units# long lines
predictor.py
in python
169 15 1
saved_model_v2.py
in python
34 1 1
graph_util.py
in python
689 22 1
graph_def_util.py
in python
501 20 1
neuron_cc_hlo.py
in python
222 10 1