tensorflow / tpu
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 606 files with 77,090 lines of code.
    • 5 very long files (14,179 lines of code)
    • 12 long files (7,706 lines of code)
    • 83 medium size files (24,839 lines of codeclsfd_ftr_w_mp_ins)
    • 128 small files (18,631 lines of code)
    • 378 very small files (11,735 lines of code)
18% | 9% | 32% | 24% | 15%
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
c70% | 9% | 9% | 6% | 3%
pb100% | 0% | 0% | 0% | 0%
py0% | 10% | 42% | 32% | 13%
h0% | 29% | 15% | 8% | 46%
go0% | 0% | 53% | 16% | 30%
yaml0% | 0% | 0% | 18% | 81%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
tools/driver59% | 12% | 10% | 7% | 9%
models/experimental25% | 15% | 17% | 28% | 13%
models/official0% | 8% | 43% | 30% | 16%
tools/ctpu0% | 0% | 53% | 16% | 30%
tools/datasets0% | 0% | 68% | 19% | 12%
models/hyperparameters0% | 0% | 62% | 0% | 37%
tools/data_converter0% | 0% | 24% | 69% | 5%
tools/diagnostics0% | 0% | 0% | 100% | 0%
models/common0% | 0% | 0% | 0% | 100%
tools/dataset_profiler0% | 0% | 0% | 0% | 100%
tools/kubernetes0% | 0% | 0% | 0% | 100%
models0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
tpuv4_bar2_ranges.c
in tools/driver/drivers/char/tpu_common/tpuv4
4817 1
tpuv4lite_bar2_ranges.c
in tools/driver/drivers/char/tpu_common/tpuv4lite
3348 1
pb
api_descriptor.pb
in models/experimental/inference
2944 -
gasket_core.c
in tools/driver/drivers/gasket
1670 46
gasket_page_table.c
in tools/driver/drivers/gasket
1400 50
tpuv4common_userspace_lst_port_indirect_accessor.h
in tools/driver/drivers/char/tpu_common/tpuv4common
834 34
tpuv2_core.c
in tools/driver/drivers/char/tpu_common
815 15
heads.py
in models/official/detection/modeling/architecture
708 24
gasket_interrupt.c
in tools/driver/drivers/gasket
707 25
main.py
in models/official/efficientnet
608 5
resnet_main.py
in models/official/resnet
604 8
mnasnet_main.py
in models/official/mnasnet
594 6
inception_v3.py
in models/experimental/inception
587 11
retinanet_main.py
in models/official/retinanet
586 2
inception_v4.py
in models/experimental/inception
581 11
inception_v2.py
in models/experimental/inception
545 11
resnet_model.py
in models/official/resnet
537 15
network_utils.py
in models/official/amoeba_net
494 25
mask_rcnn_model.py
in models/official/mask_rcnn
487 7
inception_v2_tpu_model.py
in models/experimental/inception
485 4
efficientnet_model.py
in models/official/efficientnet
469 15
box_list_ops.py
in models/official/detection/utils/object_detection
452 31
retinanet_architecture.py
in models/official/retinanet
435 17
up.go
in tools/ctpu/commands
428 14
visualization_utils.py
in models/official/detection/utils/object_detection
428 18
visualization_utils.py
in models/official/mask_rcnn/object_detection
416 18
spatial_transform_ops.py
in models/official/detection/ops
411 11
utils.py
in models/official/efficientnet
405 25
autoaugment_utils.py
in models/official/detection/utils
405 5
spinenet.py
in models/official/detection/modeling/architecture
404 11
nn_ops.py
in models/official/detection/modeling/architecture
389 18
accel.c
in tools/driver/drivers/accel
383 27
mobilenet.py
in models/official/mobilenet
373 7
amoeba_net_model.py
in models/official/amoeba_net
372 20
ncf_main.py
in models/experimental/ncf
362 6
amoeba_net.py
in models/official/amoeba_net
359 9
retinanet_model.py
in models/official/retinanet
347 13
spinenet_mbconv.py
in models/official/detection/modeling/architecture
345 11
autoaugment.py
in models/official/efficientnet
344 34
tpu_common.c
in tools/driver/drivers/char/tpu_common
339 12
maskrcnn_parser_with_copy_paste.py
in models/official/detection/dataloader
337 9
dataloader.py
in models/official/retinanet
311 21
gasket_sysfs.c
in tools/driver/drivers/gasket
310 8
model_builder.py
in models/official/amoeba_net
308 10
gasket_ioctl.c
in tools/driver/drivers/gasket
307 12
inception_v4_model.py
in models/experimental/inception
307 8
tpu.go
in tools/ctpu/ctrl
304 20
resnet.py
in models/official/mask_rcnn
304 8
auth.go
in tools/ctpu/commands
302 24
distributed_executer.py
in models/official/mask_rcnn
302 17
Files With Most Units (Top 20)
File# lines# units
gasket_page_table.c
in tools/driver/drivers/gasket
1400 50
gasket_core.c
in tools/driver/drivers/gasket
1670 46
tpuv4common_userspace_lst_port_indirect_accessor.h
in tools/driver/drivers/char/tpu_common/tpuv4common
834 34
autoaugment.py
in models/official/efficientnet
344 34
box_list_ops.py
in models/official/detection/utils/object_detection
452 31
accel.c
in tools/driver/drivers/accel
383 27
gasket_interrupt.c
in tools/driver/drivers/gasket
707 25
utils.py
in models/official/efficientnet
405 25
network_utils.py
in models/official/amoeba_net
494 25
auth.go
in tools/ctpu/commands
302 24
heads.py
in models/official/detection/modeling/architecture
708 24
losses.py
in models/official/detection/modeling
267 23
dataloader.py
in models/official/retinanet
311 21
tpu.go
in tools/ctpu/ctrl
304 20
amoeba_net_model.py
in models/official/amoeba_net
372 20
base_model.py
in models/official/detection/modeling
250 19
nn_ops.py
in models/official/detection/modeling/architecture
389 18
visualization_utils.py
in models/official/detection/utils/object_detection
428 18
visualization_utils.py
in models/official/mask_rcnn/object_detection
416 18
imagenet_to_gcs.py
in tools/datasets
240 17
Files With Long Lines (Top 17)

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

File# lines# units# long lines
up.go
in tools/ctpu/commands
428 14 19
pb
api_descriptor.pb
in models/experimental/inference
2944 - 11
auth.go
in tools/ctpu/commands
302 24 9
tpu.go
in tools/ctpu/ctrl
304 20 6
gce.go
in tools/ctpu/ctrl
246 14 4
resourcemgmt.go
in tools/ctpu/ctrl
108 9 4
restart.go
in tools/ctpu/commands
95 6 4
gcloud_cli.go
in tools/ctpu/ctrl
59 5 3
common.go
in tools/ctpu/commands
250 13 3
config.go
in tools/ctpu/config
111 6 3
gasket_page_table.c
in tools/driver/drivers/gasket
1400 50 2
status.go
in tools/ctpu/commands
218 15 2
config_cmd.go
in tools/ctpu/commands
65 10 2
quota.go
in tools/ctpu/commands
38 6 2
mask_rcnn_k8s.yaml
in models/official/mask_rcnn
37 - 2
tpu_locations.go
in tools/ctpu/commands
59 7 1
config_gcloud.go
in tools/ctpu/config
87 4 1