tensorflow / tflite-micro
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 462 files with 65,971 lines of code.
    • 2 very long files (18,736 lines of code)
    • 12 long files (8,530 lines of code)
    • 46 medium size files (13,139 lines of codeclsfd_ftr_w_mp_ins)
    • 82 small files (11,596 lines of code)
    • 320 very small files (13,970 lines of code)
28% | 12% | 19% | 17% | 21%
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
h51% | 9% | 14% | 8% | 16%
cc6% | 19% | 28% | 24% | 20%
py0% | 0% | 17% | 42% | 39%
c0% | 0% | 18% | 21% | 59%
ld0% | 0% | 0% | 100% | 0%
inc0% | 0% | 0% | 22% | 77%
mako0% | 0% | 0% | 0% | 100%
lds0% | 0% | 0% | 0% | 100%
bzl0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
tensorflow/lite/schema99% | 0% | 0% | 0% | <1%
tensorflow/lite/core81% | 0% | 11% | 0% | 7%
tensorflow/lite/micro0% | 18% | 24% | 27% | 29%
tensorflow/lite/kernels0% | 21% | 34% | 21% | 23%
tensorflow/lite/c0% | 0% | 94% | 0% | 5%
tensorflow/lite/tools0% | 0% | 69% | 0% | 30%
tensorflow/lite/experimental0% | 0% | 0% | 16% | 83%
tensorflow0% | 0% | 0% | 0% | 100%
tensorflow/lite0% | 0% | 0% | 0% | 100%
ci0% | 0% | 0% | 0% | 100%
tensorflow/lite/python0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
schema_generated.h
in tensorflow/lite/schema
16980 1342
flatbuffer_conversions.cc
in tensorflow/lite/core/api
1756 99
types.h
in tensorflow/lite/micro/kernels/ceva
945 53
unidirectional_sequence_lstm.cc
in tensorflow/lite/micro/kernels/xtensa
909 8
common.h
in tensorflow/lite/kernels/internal
847 53
lstm_eval.cc
in tensorflow/lite/micro/kernels/xtensa
837 9
types.h
in tensorflow/lite/kernels/internal
762 43
micro_allocator.cc
in tensorflow/lite/micro
726 24
portable_tensor_utils.cc
in tensorflow/lite/kernels/internal/reference
704 34
detection_postprocess.cc
in tensorflow/lite/micro/kernels
605 19
comparisons.cc
in tensorflow/lite/micro/kernels
592 13
conv.cc
in tensorflow/lite/micro/kernels/arc_mli
575 10
depthwise_conv.cc
in tensorflow/lite/micro/kernels/arc_mli
527 8
ceva_tflm_lib.h
in tensorflow/lite/micro/kernels/ceva
501 -
micro_mutable_op_resolver.h
in tensorflow/lite/micro
484 94
kernel_util.cc
in tensorflow/lite/kernels
467 21
reduce.h
in tensorflow/lite/kernels/internal/reference
405 12
fully_connected.cc
in tensorflow/lite/micro/kernels/arc_mli
383 8
svdf_common.cc
in tensorflow/lite/micro/kernels
376 6
common.h
in tensorflow/lite/c
372 -
depthwise_conv.cc
in tensorflow/lite/micro/kernels/vexriscv
362 7
lstm_eval_hifi.cc
in tensorflow/lite/micro/kernels/xtensa
359 3
svdf.cc
in tensorflow/lite/micro/kernels/cmsis_nn
358 6
add.cc
in tensorflow/lite/micro/kernels/arc_mli
351 7
greedy_memory_planner.cc
in tensorflow/lite/micro/memory_planner
344 12
builtin_op_data.h
in tensorflow/lite/c
343 -
sub.h
in tensorflow/lite/kernels/internal/reference
343 17
pooling.cc
in tensorflow/lite/micro/kernels/arc_mli
340 12
transpose_conv.cc
in tensorflow/lite/micro/kernels/xtensa
309 5
scratch_buf_mgr.cc
in tensorflow/lite/micro/kernels/arc_mli
302 8
reduce.cc
in tensorflow/lite/micro/kernels
294 8
add.h
in tensorflow/lite/kernels/internal/reference
294 7
quantization_util.cc
in tensorflow/lite/kernels/internal
287 14
pooling.cc
in tensorflow/lite/micro/kernels/xtensa
271 8
conv_hifi.cc
in tensorflow/lite/micro/kernels/xtensa
269 3
pooling.h
in tensorflow/lite/kernels/internal/reference
269 5
transpose_conv.cc
in tensorflow/lite/micro/kernels
268 5
micro_interpreter.cc
in tensorflow/lite/micro
262 6
flatbuffer_conversions.h
in tensorflow/lite/core/api
255 1
if.cc
in tensorflow/lite/micro/kernels
245 11
depthwiseconv_uint8.h
in tensorflow/lite/kernels/internal/reference
245 8
comparisons.h
in tensorflow/lite/kernels/internal/reference
244 14
visualize.py
in tensorflow/lite/tools
243 15
conv.cc
in tensorflow/lite/micro/kernels/cmsis_nn
242 4
depthwise_conv.cc
in tensorflow/lite/micro/kernels/cmsis_nn
239 4
fully_connected.h
in tensorflow/lite/kernels/internal/reference
233 4
depthwise_conv.h
in tensorflow/lite/kernels/internal/reference/integer_ops
232 3
conv.h
in tensorflow/lite/kernels/internal/reference
230 3
pooling.h
in tensorflow/lite/kernels/internal/reference/integer_ops
230 4
micro_string.cc
in tensorflow/lite/micro
229 4
Files With Most Units (Top 20)
File# lines# units
schema_generated.h
in tensorflow/lite/schema
16980 1342
flatbuffer_conversions.cc
in tensorflow/lite/core/api
1756 99
micro_mutable_op_resolver.h
in tensorflow/lite/micro
484 94
types.h
in tensorflow/lite/micro/kernels/ceva
945 53
common.h
in tensorflow/lite/kernels/internal
847 53
types.h
in tensorflow/lite/kernels/internal
762 43
portable_tensor_utils.cc
in tensorflow/lite/kernels/internal/reference
704 34
micro_allocator.cc
in tensorflow/lite/micro
726 24
elementwise.cc
in tensorflow/lite/micro/kernels
168 22
kernel_util.cc
in tensorflow/lite/kernels
467 21
detection_postprocess.cc
in tensorflow/lite/micro/kernels
605 19
sub.h
in tensorflow/lite/kernels/internal/reference
343 17
visualize.py
in tensorflow/lite/tools
243 15
kernel_util.h
in tensorflow/lite/kernels
151 14
comparisons.h
in tensorflow/lite/kernels/internal/reference
244 14
quantization_util.cc
in tensorflow/lite/kernels/internal
287 14
comparisons.cc
in tensorflow/lite/micro/kernels
592 13
greedy_memory_planner.cc
in tensorflow/lite/micro/memory_planner
344 12
mli_tf_utils.h
in tensorflow/lite/micro/kernels/arc_mli
228 12
pooling.cc
in tensorflow/lite/micro/kernels/arc_mli
340 12
Files With Long Lines (Top 6)

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

File# lines# units# long lines
schema_generated.h
in tensorflow/lite/schema
16980 1342 990
third_party_downloads.inc
in tensorflow/lite/micro/tools/make
30 - 5
workspace.bzl
in tensorflow
54 - 2
ethos_u.inc
in tensorflow/lite/micro/tools/make/ext_libs
38 - 2
helper_functions.inc
in tensorflow/lite/micro/tools/make
51 - 1
arc_mli.inc
in tensorflow/lite/micro/tools/make/ext_libs
79 - 1