neo-ai / tvm
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 1,952 files with 282,202 lines of code.
    • 25 very long files (38,078 lines of code)
    • 70 long files (47,718 lines of code)
    • 309 medium size files (95,006 lines of codeclsfd_ftr_w_mp_ins)
    • 380 small files (53,688 lines of code)
    • 1,168 very small files (47,712 lines of code)
13% | 16% | 33% | 19% | 16%
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
py15% | 14% | 30% | 20% | 18%
cc14% | 23% | 37% | 17% | 7%
h8% | 13% | 29% | 17% | 29%
c32% | 0% | 36% | 12% | 18%
ts50% | 0% | 39% | 0% | 10%
rs0% | 6% | 40% | 29% | 24%
go0% | 0% | 55% | 9% | 35%
java0% | 0% | 26% | 34% | 39%
mm0% | 0% | 40% | 48% | 11%
cu0% | 0% | 100% | 0% | 0%
pxi0% | 0% | 48% | 40% | 11%
cmake0% | 0% | 8% | 25% | 65%
toml0% | 0% | 0% | 23% | 76%
yaml0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
m0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
pyx0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
python16% | 15% | 32% | 17% | 17%
src12% | 22% | 37% | 16% | 11%
include15% | 13% | 27% | 16% | 26%
nnvm16% | 7% | 49% | 11% | 15%
web40% | 0% | 31% | 13% | 15%
vta18% | 14% | 14% | 37% | 13%
rust0% | 6% | 42% | 25% | 25%
apps0% | 0% | 27% | 41% | 31%
golang0% | 0% | 48% | 8% | 43%
jvm0% | 0% | 24% | 39% | 36%
tutorials0% | 0% | 10% | 47% | 42%
cmake0% | 0% | 9% | 26% | 64%
ROOT0% | 0% | 0% | 67% | 32%
conda0% | 0% | 0% | 0% | 100%
neo-tools0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
transform.cc
in src/relay/op/tensor
3279 138
tflite.py
in python/tvm/relay/frontend
2630 141
onnx.py
in python/tvm/relay/frontend
2540 150
pytorch.py
in python/tvm/relay/frontend
2539 190
mxnet.py
in python/tvm/relay/frontend
2322 119
tensorflow_ops.py
in python/tvm/relay/frontend
2247 117
transform_step.cc
in src/auto_scheduler
1587 70
parser.cc
in src/parser
1371 70
transform.h
in include/tvm/topi
1297 38
feature.cc
in src/auto_scheduler
1267 38
compute_dag.cc
in src/auto_scheduler
1245 44
nn.h
in include/tvm/relay/attrs
1239 -
rewrite_simplify.cc
in src/arith
1205 30
prelude.py
in python/tvm/relay
1199 61
hexagon_device_sim.cc
in src/runtime/hexagon/sim
1173 92
packed_func.h
in include/tvm/runtime
1162 97
graph_executor.c
in src/runtime/crt/graph_executor
1133 22
generic.py
in python/tvm/relay/op/strategy
1124 108
tensorflow.py
in nnvm/python/nnvm/frontend
1118 64
runtime.ts
in web/src
1091 18
tensorrt_ops.cc
in src/runtime/contrib/tensorrt
1089 31
nn.cc
in src/relay/op/nn
1084 44
pooling.cc
in src/relay/op/nn
1060 27
runtime.cc
in vta/runtime
1054 86
keras.py
in python/tvm/relay/frontend
1023 35
iter_affine_map.cc
in src/arith
974 54
convolution.h
in src/relay/op/nn
974 14
tvmscript_printer.cc
in src/printer
961 64
cuda.py
in python/tvm/relay/op/strategy
957 45
sketch_policy_rules.cc
in src/auto_scheduler/search_policy
911 22
partial_eval.cc
in src/relay/transforms
906 84
ad_simplify.cc
in src/te/autodiff
903 87
compiler.cc
in src/relay/backend/vm
887 38
rpc_endpoint.cc
in src/runtime/rpc
885 71
transform.py
in vta/python/vta
861 11
_transform.py
in python/tvm/relay/op
848 63
canonical_simplify.cc
in src/arith
834 48
expr.cc
in src/tir/ir
820 5
dataflow_matcher.cc
in src/relay/ir
812 46
schedule_dataflow_rewrite.cc
in src/te/schedule
803 21
nn.py
in python/tvm/relay/op/nn
800 74
map.h
in include/tvm/runtime/container
798 86
storage_rewrite.cc
in src/tir/transforms
772 43
tensorrt.py
in python/tvm/relay/op/contrib
764 46
schedule_lang.cc
in src/te/schedule
760 24
op.cc
in src/tir/op
752 62
int_set.cc
in src/arith
731 83
compile_engine.cc
in src/relay/backend
719 31
graph_executor_codegen.cc
in src/relay/backend
717 46
nms.py
in python/tvm/topi/cuda
713 24
Files With Most Units (Top 20)
File# lines# units
pytorch.py
in python/tvm/relay/frontend
2539 190
onnx.py
in python/tvm/relay/frontend
2540 150
tflite.py
in python/tvm/relay/frontend
2630 141
transform.cc
in src/relay/op/tensor
3279 138
mxnet.py
in python/tvm/relay/frontend
2322 119
tensorflow_ops.py
in python/tvm/relay/frontend
2247 117
generic.py
in python/tvm/relay/op/strategy
1124 108
packed_func.h
in include/tvm/runtime
1162 97
expr.py
in python/tvm/tir
361 94
hexagon_device_sim.cc
in src/runtime/hexagon/sim
1173 92
ad_simplify.cc
in src/te/autodiff
903 87
runtime.cc
in vta/runtime
1054 86
map.h
in include/tvm/runtime/container
798 86
partial_eval.cc
in src/relay/transforms
906 84
int_set.cc
in src/arith
731 83
nn.py
in python/tvm/relay/op/nn
800 74
relay_text_printer.cc
in src/printer
699 72
rpc_endpoint.cc
in src/runtime/rpc
885 71
transform_step.cc
in src/auto_scheduler
1587 70
parser.cc
in src/parser
1371 70
Files With Long Lines (Top 11)

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

File# lines# units# long lines
correlation.cc
in src/relay/op/nn
88 2 7
Camera2BasicFragment.java
in apps/android_camera/app/src/main/java/org/apache/tvm/android/androidcamerademo
457 14 5
cmake
TF_TVMDSOOP.cmake
in cmake/modules/contrib
46 - 2
cmake
StandaloneCrt.cmake
in cmake/modules
157 - 2
gen_requirements.py
in python
379 11 2
cmake
Utils.cmake
in cmake/utils
81 - 1
cmake
FindVulkan.cmake
in cmake/utils
69 - 1
unary.cc
in src/relay/op/tensor
378 7 1
bring_your_own_datatypes.py
in tutorials/dev
184 3 1
module.rs
in rust/tvm/src/ir
317 12 1
array.rs
in rust/tvm-rt/src
150 11 1