tensorflow / custom-op
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 36 units with 341 lines of code in units (6.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (33 lines of code)
    • 2 simple units (64 lines of code)
    • 33 very simple units (244 lines of code)
0% | 0% | 9% | 18% | 71%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
py0% | 0% | 11% | 21% | 67%
cc0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
gpu0% | 0% | 11% | 22% | 66%
tensorflow_time_two/cc0% | 0% | 0% | 0% | 100%
tensorflow_zero_out/cc0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def find_cuda_config()
in gpu/find_cuda_config.py
33 13 0
def _find_cuda_config()
in gpu/find_cuda_config.py
49 7 2
def _get_ld_config_paths()
in gpu/find_cuda_config.py
15 6 0
def _get_default_cuda_paths()
in gpu/find_cuda_config.py
14 4 1
def _find_versioned_file()
in gpu/find_cuda_config.py
10 4 5
def _find_cublas_config()
in gpu/find_cuda_config.py
23 4 3
def _find_tensorrt_config()
in gpu/find_cuda_config.py
25 4 2
void Compute()
in tensorflow_zero_out/cc/kernels/zero_out_kernels.cc
13 3 1
def _at_least_version()
in gpu/find_cuda_config.py
4 3 2
def _get_header_version()
in gpu/find_cuda_config.py
6 3 2
def _cartesian_product()
in gpu/find_cuda_config.py
2 3 2
def _not_found_error()
in gpu/find_cuda_config.py
6 3 3
def _find_file()
in gpu/find_cuda_config.py
5 3 3
def _find_library()
in gpu/find_cuda_config.py
10 3 3
def _get_legacy_path()
in gpu/find_cuda_config.py
6 3 2
def main()
in gpu/find_cuda_config.py
7 3 0
void operator()
in tensorflow_time_two/cc/kernels/time_two_kernels.cc
5 2 0
__global__ void TimeTwoCudaKernel()
in tensorflow_time_two/cc/kernels/time_two_kernels.cu.cc
6 2 3
def _matches_version()
in gpu/find_cuda_config.py
6 2 2
def _find_cudnn_config()
in gpu/find_cuda_config.py
16 2 2