LiteRT, successor to TensorFlow Lite. is Google's On-device framework for high-performance ML & GenAI deployment on edge platforms, via efficient conversion, runtime, and optimization
This report presents the forensic synthetic code analysis of google-ai-edge/LiteRT, a C++ project with 3,028 GitHub stars. SynthScan v2.0 examined 674,566 lines of code across 4011 source files, recording 4670 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 9.2 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 4670 distinct pattern matches across 20 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | configure.py | 1 | # Copyright 2024 The AI Edge LiteRT Authors. | COMMENT |
| LOW | Package.swift | 1 | // swift-tools-version: 5.9 | COMMENT |
| LOW | tflite/generate-pc.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tflite/version.h | 21 | // semantic versioning https://semver.org/ | COMMENT |
| LOW | tflite/version.h | 41 | TF_PATCH_VERSION) TF_VERSION_SUFFIX) | COMMENT |
| LOW | tflite/portable_type_to_tflitetype.h | 21 | COMMENT | |
| LOW | tflite/CMakeLists.txt | 1 | # | COMMENT |
| LOW | tflite/minimal_logging.h | 81 | #define TFLITE_LOG TFLITE_LOG_PROD | COMMENT |
| LOW | tflite/string_util.h | 21 | // [(N+1)*4, (N+1)*4+3] 4 bytes: length of the whole char buffer. | COMMENT |
| LOW | tflite/arena_planner.h | 21 | #include <unordered_map> | COMMENT |
| LOW | tflite/arena_planner.h | 41 | // share some of the buffer if a tensor B is to be allocated after another | COMMENT |
| LOW | tflite/arena_planner.h | 81 | int output_id, bool tensor_changed); | COMMENT |
| LOW | tflite/memory_planner.h | 41 | // ExecuteAllocations() is called. | COMMENT |
| LOW | tflite/namespace.h | 21 | // To avoid potential violation of the C++ "one definition rule" (ODR) for | COMMENT |
| LOW | tflite/interpreter_options.h | 41 | /// inference speed. | COMMENT |
| LOW | tflite/interpreter_options.h | 121 | // Controls to update Tensor names with Signature input & output names. | COMMENT |
| LOW | tflite/simple_memory_arena.h | 121 | COMMENT | |
| LOW | tflite/simple_memory_arena.h | 161 | TfLiteStatus ReleaseBuffer(); | COMMENT |
| LOW | tflite/external_cpu_backend_context.h | 41 | }; | COMMENT |
| LOW | tflite/external_cpu_backend_context.h | 61 | // | COMMENT |
| LOW | tflite/mutable_op_resolver.h | 81 | /// Registers the specified `version` of the specified builtin operator `op`. | COMMENT |
| LOW | tflite/mutable_op_resolver.h | 121 | COMMENT | |
| LOW | tflite/util.h | 21 | #ifndef TENSORFLOW_LITE_UTIL_H_ | COMMENT |
| LOW | tflite/util.h | 41 | COMMENT | |
| LOW | tflite/util.h | 101 | // Multiply two sizes and return true if overflow occurred; | COMMENT |
| LOW | tflite/simple_planner.h | 21 | #include <cstdlib> | COMMENT |
| LOW | tflite/graph_info.h | 101 | // Partitions a list of node indices `nodes_to_partition` into node subsets. | COMMENT |
| LOW | tflite/graph_info.h | 121 | // dependencies) can be imposed on the ultimate execution order of the graph | COMMENT |
| LOW | tflite/graph_info.h | 141 | // 0 --> 1 --> 2* --> 3* ==> 4 --> 5 | COMMENT |
| LOW | tflite/test_util.h | 121 | COMMENT | |
| LOW | tflite/testdata/src/intermediate_tensor_output.py | 1 | # Copyright 2023 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | tflite/acceleration/configuration/gpu_plugin.h | 21 | #if defined(__ANDROID__) || defined(CL_DELEGATE_NO_GL) | COMMENT |
| LOW | …n/configuration/prev_is_different_than_current_test.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tflite/acceleration/configuration/c/nnapi_plugin.h | 21 | /// For documentation, see | COMMENT |
| LOW | tflite/kernels/dequantize.h | 21 | COMMENT | |
| LOW | tflite/kernels/cpu_backend_context.h | 101 | // stores both a gemmlowp context and a ruy context. | COMMENT |
| LOW | tflite/kernels/cpu_backend_gemm.h | 21 | #include "ruy/profiler/instrumentation.h" // from @ruy | COMMENT |
| LOW | tflite/kernels/cpu_backend_gemm.h | 41 | // | COMMENT |
| LOW | tflite/kernels/CMakeLists.txt | 1 | # | COMMENT |
| LOW | tflite/kernels/kernel_util.h | 21 | #include <initializer_list> | COMMENT |
| LOW | tflite/kernels/kernel_util.h | 41 | // Note: You must check if result is not null: | COMMENT |
| LOW | tflite/kernels/kernel_util.h | 61 | COMMENT | |
| LOW | tflite/kernels/kernel_util.h | 81 | COMMENT | |
| LOW | tflite/kernels/kernel_util.h | 101 | // Deprecated. GetInput has the same functionality. | COMMENT |
| LOW | tflite/kernels/kernel_util.h | 121 | // GetTemporarySafe(context, node, kMyTensorIdx, | COMMENT |
| LOW | tflite/kernels/subgraph_test_util.h | 21 | #define TENSORFLOW_LITE_KERNELS_SUBGRAPH_TEST_UTIL_H_ | COMMENT |
| LOW | tflite/kernels/subgraph_test_util.h | 161 | // Build a subgraph with a single If op. | COMMENT |
| LOW | tflite/kernels/subgraph_test_util.h | 181 | // 2 inputs: | COMMENT |
| LOW | tflite/kernels/subgraph_test_util.h | 261 | COMMENT | |
| LOW | tflite/kernels/control_flow_common.h | 21 | #include "tflite/core/subgraph.h" | COMMENT |
| LOW | tflite/kernels/transpose_test_utils.h | 21 | #include "absl/algorithm/container.h" | COMMENT |
| LOW | tflite/kernels/cpu_backend_gemm_params.h | 41 | } | COMMENT |
| LOW | tflite/kernels/cpu_backend_gemm_params.h | 61 | // When the data pointed to by this matrix is constant data, so that it is | COMMENT |
| LOW | tflite/kernels/cpu_backend_gemm_params.h | 81 | // | COMMENT |
| LOW | tflite/kernels/cpu_backend_gemm_params.h | 101 | // the MatrixParams that it takes. Compare to ruy::Spec. | COMMENT |
| LOW | tflite/kernels/cpu_backend_gemm_params.h | 121 | // to the destination type. | COMMENT |
| LOW | tflite/kernels/cpu_backend_gemm_custom_gemv.h | 21 | // (row-vector) * (matrix). So that is what we focus on optimizing here. | COMMENT |
| LOW | tflite/kernels/cpu_backend_gemm_custom_gemv.h | 41 | #include "ruy/profiler/instrumentation.h" // from @ruy | COMMENT |
| LOW | tflite/kernels/cpu_backend_gemm_custom_gemv.h | 61 | // destination column-vector) that the kernel processes at a time. | COMMENT |
| LOW | tflite/kernels/cpu_backend_gemm_custom_gemv.h | 341 | k += kCacheLineSize / sizeof(RhsScalar)) { | COMMENT |
| 2969 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | configure.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/generate-pc.sh | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/testdata/src/intermediate_tensor_output.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/kernels/variants/py/end_to_end_test.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …eleration/compatibility/convert_binary_to_cc_source.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …l/acceleration/mini_benchmark/copy_associated_files.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …celeration/mini_benchmark/metrics/blazeface_metrics.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …ental/acceleration/mini_benchmark/metrics/mobilenet.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …l/acceleration/mini_benchmark/metrics/kl_divergence.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …end/python/kernel_tests/audio_microfrontend_op_test.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …tal/microfrontend/python/ops/audio_microfrontend_op.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/g3doc/_book.yaml | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/g3doc/tools/build_java_api_docs.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/g3doc/tools/build_py_api_docs.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/g3doc/models/_index.yaml | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …e/g3doc/api_docs/python/tflite_support/_redirects.yaml | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/g3doc/api_docs/python/tflite_support/_toc.yaml | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …ite/g3doc/api_docs/python/tflite_model_maker/_toc.yaml | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/g3doc/api_docs/python/tf/lite/_toc.yaml | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/g3doc/api_docs/java/_toc.yaml | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/g3doc/api_docs/swift/_toc.yaml | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/g3doc/api_docs/cc/_doxygen.yaml | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/g3doc/api_docs/c/_doxygen.yaml | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/tools/convert_image_to_csv.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/tools/build_aar.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/tools/test_utils.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/tools/convert_image_to_csv_test.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/tools/flatbuffer_utils.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/tools/randomize_weights.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/tools/zip_files.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/tools/strip_strings.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/tools/visualize.py | 15 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/tools/build_aar_with_docker.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/tools/flatbuffer_utils_test.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/tools/reverse_xxd_dump_from_cc.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/tools/visualize_test.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/tools/benchmark/ios/build_benchmark_framework.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | …ize/sparsity/format_converter_wrapper_pybind11_test.py | 14 | # ============================================================================= | COMMENT |
| MEDIUM | …ols/optimize/python/modify_model_interface_lib_test.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …te/tools/optimize/python/modify_model_interface_lib.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …ls/optimize/python/modify_model_interface_constants.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/tools/optimize/python/modify_model_interface.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/tools/optimize/debugging/python/debugger_test.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/tools/optimize/debugging/python/debugger.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/tools/cmake/download_toolchains.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/tools/signature/signature_def_utils_test.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/tools/signature/signature_def_utils.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/tools/pip_package/setup_with_binary.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/tools/pip_package/update_sources.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | …lite/tools/pip_package/build_pip_package_with_cmake.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | …lite/tools/pip_package/build_pip_package_with_bazel.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | …net_image_classification/generate_validation_labels.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …ols/evaluation/tasks/ios/build_evaluation_framework.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | …tasks/coco_object_detection/preprocess_coco_minival.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/converter/experimental/tac/tac.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/converter/python/wrap_converter.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/converter/tests/debuginfo/saved_model_error.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …e/converter/tests/debuginfo/concrete_function_error.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/python/convert_saved_model.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tflite/python/convert_file_to_c_source_test.sh | 15 | # ============================================================================== | COMMENT |
| 303 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | configure.py | 122 | def write_action_env_to_bazelrc(var_name, var): | CODE |
| LOW | configure.py | 126 | def write_repo_env_to_bazelrc(config_name, var_name, var): | CODE |
| LOW | configure.py | 263 | def reset_tf_configure_bazelrc(): | CODE |
| LOW | configure.py | 543 | def get_from_env_or_user_or_default( | CODE |
| LOW | configure.py | 569 | def prompt_loop_or_load_from_env( | CODE |
| LOW | configure.py | 639 | def set_clang_cuda_compiler_path(environ_cp): | CODE |
| LOW | configure.py | 830 | def set_gcc_host_compiler_path(environ_cp): | CODE |
| LOW | configure.py | 916 | def set_clang_compiler_path_win(environ_cp): | CODE |
| LOW | configure.py | 992 | def disable_clang_offsetof_extension(clang_version): | CODE |
| LOW | configure.py | 997 | def set_hermetic_cuda_version(environ_cp): | CODE |
| LOW | configure.py | 1013 | def set_hermetic_cudnn_version(environ_cp): | CODE |
| LOW | configure.py | 1029 | def set_hermetic_cuda_compute_capabilities(environ_cp): | CODE |
| LOW | configure.py | 1136 | def system_specific_test_config(environ_cp): | CODE |
| LOW | tflite/kernels/variants/py/end_to_end_test.py | 36 | def _get_interpreter_from_c_func(self, func): | CODE |
| LOW | tflite/kernels/variants/py/end_to_end_test.py | 193 | def test_from_pop_back_unrolled( | CODE |
| LOW | tflite/kernels/variants/py/end_to_end_test.py | 248 | def test_empty_tensorlist_set_stack(self): | CODE |
| LOW | tflite/kernels/variants/py/end_to_end_test.py | 274 | def test_reserve_element_shape(self, element_shape): | CODE |
| LOW | tflite/kernels/variants/py/end_to_end_test.py | 398 | def test_reserve_set_single_item_addn( | CODE |
| LOW | tflite/kernels/variants/py/end_to_end_test.py | 435 | def test_reserve_set_both_item_addn( | CODE |
| LOW | …eleration/compatibility/convert_binary_to_cc_source.py | 30 | def _convert_bytes_to_cc_source(data, | CODE |
| LOW | tflite/tools/test_utils.py | 26 | def build_mock_flatbuffer_model(): | CODE |
| LOW | tflite/tools/test_utils.py | 273 | def build_operator_with_options() -> schema_fb.Operator: | CODE |
| LOW | tflite/tools/test_utils.py | 289 | def load_model_from_flatbuffer(flatbuffer_model): | CODE |
| LOW | tflite/tools/flatbuffer_utils.py | 39 | def convert_bytearray_to_object(model_bytearray): | CODE |
| LOW | tflite/tools/flatbuffer_utils.py | 65 | def read_model_from_bytearray(model_bytearray): | CODE |
| LOW | tflite/tools/flatbuffer_utils.py | 97 | def read_model_with_mutable_tensors(input_tflite_file): | CODE |
| LOW | tflite/tools/flatbuffer_utils.py | 119 | def convert_object_to_bytearray(model_object, extra_buffer=b''): | CODE |
| LOW | tflite/tools/flatbuffer_utils.py | 352 | def byte_swap_tflite_model_obj(model, from_endiness, to_endiness): | CODE |
| LOW⚡ | tflite/tools/flatbuffer_utils_test.py | 278 | def test_get_options_not_schema_type_raises(self): | CODE |
| LOW⚡ | tflite/tools/flatbuffer_utils_test.py | 282 | def test_get_options_not_object_type_raises(self): | CODE |
| LOW⚡ | tflite/tools/flatbuffer_utils_test.py | 286 | def test_get_options_op_type_does_not_match(self): | CODE |
| LOW | …ols/optimize/python/modify_model_interface_lib_test.py | 27 | def build_tflite_model_with_full_integer_quantization( | CODE |
| LOW | …ols/optimize/python/modify_model_interface_lib_test.py | 41 | def representative_dataset_gen(): | CODE |
| LOW | tflite/tools/optimize/debugging/python/debugger_test.py | 258 | def test_layer_direct_compare_metrics(self, quantized_io): | CODE |
| LOW | tflite/tools/optimize/debugging/python/debugger_test.py | 348 | def test_denylisted_ops_from_option_setter(self, quantized_io): | CODE |
| LOW | tflite/tools/optimize/debugging/python/debugger_test.py | 373 | def test_denylisted_ops_from_option_constructor(self, quantized_io): | CODE |
| LOW | tflite/tools/optimize/debugging/python/debugger_test.py | 392 | def test_denylisted_nodes_from_option_setter(self, quantized_io): | CODE |
| LOW | tflite/tools/optimize/debugging/python/debugger_test.py | 413 | def test_denylisted_nodes_from_option_constructor(self, quantized_io): | CODE |
| LOW | tflite/tools/optimize/debugging/python/debugger.py | 247 | def get_nondebug_quantized_model(self) -> bytes: | CODE |
| LOW | tflite/tools/optimize/debugging/python/debugger.py | 261 | def get_debug_quantized_model(self) -> bytes: | CODE |
| LOW | tflite/tools/optimize/debugging/python/debugger.py | 306 | def _set_converter_options_for_float( | CODE |
| LOW | tflite/tools/optimize/debugging/python/debugger.py | 313 | def _set_converter_options_for_calibration( | CODE |
| LOW | tflite/tools/optimize/debugging/python/debugger.py | 332 | def _collect_layer_statistics(self) -> Dict[str, Dict[str, float]]: | CODE |
| LOW | tflite/tools/optimize/debugging/python/debugger.py | 386 | def _collect_model_statistics(self) -> Dict[str, float]: | CODE |
| LOW | tflite/tools/optimize/debugging/python/debugger.py | 490 | def _get_numeric_verify_tensor_details(self) -> List[str]: | CODE |
| LOW | tflite/tools/optimize/debugging/python/debugger.py | 506 | def _get_operand_name_and_index(self, | CODE |
| LOW | …net_image_classification/generate_validation_labels.py | 54 | def _generate_validation_labels(ilsvrc_dir, output_file): | CODE |
| LOW | …tasks/coco_object_detection/preprocess_coco_minival.py | 40 | def _get_ground_truth_detections(instances_file, | CODE |
| LOW | tflite/converter/python/wrap_converter.py | 40 | def wrapped_experimental_mlir_quantize( | CODE |
| LOW⚡ | tflite/converter/python/wrap_converter.py | 73 | def wrapped_experimental_mlir_sparsify(input_data_str): | CODE |
| LOW⚡ | tflite/converter/python/wrap_converter.py | 78 | def wrapped_register_custom_opdefs(custom_opdefs_list): | CODE |
| LOW⚡ | tflite/converter/python/wrap_converter.py | 83 | def wrapped_retrieve_collected_errors(): | CODE |
| LOW⚡ | tflite/converter/python/wrap_converter.py | 88 | def wrapped_flat_buffer_file_to_mlir(model, input_is_filepath): | CODE |
| LOW | tflite/python/schema_util.py | 20 | def get_builtin_code_from_operator_code(opcode): | CODE |
| LOW⚡ | tflite/python/util.py | 568 | def get_dequantize_opcode_idx(model): | CODE |
| LOW⚡ | tflite/python/util.py | 578 | def _update_signature_def_tensors(tensor_maps, map_old_to_new_tensors): | CODE |
| LOW⚡ | tflite/python/util.py | 586 | def _remove_tensors_from_model(model, remove_tensors_idxs): | CODE |
| LOW | tflite/python/util.py | 84 | def _convert_tflite_enum_type_to_tf_type(tflite_enum_type): | CODE |
| LOW | tflite/python/util.py | 130 | def get_tensors_from_tensor_names(graph, tensor_names): | CODE |
| LOW | tflite/python/util.py | 262 | def _convert_op_hints_if_present(sess, graph_def, output_tensors, | CODE |
| 335 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL⚡ | tflite/g3doc/r1/convert/python_api.md | 9 | * `tf.compat.v1.lite.TFLiteConverter.from_saved_model()`: Converts a | COMMENT |
| CRITICAL⚡ | tflite/g3doc/r1/convert/python_api.md | 11 | * `tf.compat.v1.lite.TFLiteConverter.from_keras_model_file()`: Converts a | COMMENT |
| CRITICAL⚡ | tflite/g3doc/r1/convert/python_api.md | 13 | * `tf.compat.v1.lite.TFLiteConverter.from_session()`: Converts a GraphDef from | COMMENT |
| CRITICAL⚡ | tflite/g3doc/r1/convert/python_api.md | 15 | * `tf.compat.v1.lite.TFLiteConverter.from_frozen_graph()`: Converts a Frozen | COMMENT |
| CRITICAL | tflite/g3doc/r1/convert/python_api.md | 37 | converter = tf.compat.v1.lite.TFLiteConverter.from_saved_model(saved_model_dir) | CODE |
| CRITICAL | tflite/g3doc/r1/convert/python_api.md | 55 | converter = tf.compat.v1.lite.TFLiteConverter.from_keras_model_file('keras_model.h5') | CODE |
| CRITICAL | tflite/g3doc/r1/convert/python_api.md | 90 | converter = tf.compat.v1.lite.TFLiteConverter.from_keras_model_file(keras_file) | CODE |
| CRITICAL | tflite/g3doc/r1/convert/python_api.md | 115 | converter = tf.compat.v1.lite.TFLiteConverter.from_session(sess, [img], [out]) | CODE |
| CRITICAL | tflite/g3doc/r1/convert/python_api.md | 137 | converter = tf.compat.v1.lite.TFLiteConverter.from_frozen_graph( | CODE |
| CRITICAL | tflite/g3doc/r1/convert/python_api.md | 200 | converter = tf.compat.v1.lite.TFLiteConverter.from_frozen_graph( | CODE |
| CRITICAL | tflite/g3doc/api_docs/c/group/tflite.html | 14 | <li>the <code>com.google.android.gms.tflite.java.TfLiteNative.initialize(Context context)</code> or <code>com.goog | CODE |
| CRITICAL⚡ | tflite/python/lite.py | 3097 | session. converter = tf.compat.v1.lite.TFLiteConverter.from_session( sess, | STRING |
| CRITICAL⚡ | tflite/python/lite.py | 3101 | tf.compat.v1.lite.TFLiteConverter.from_frozen_graph( graph_def_file, | STRING |
| CRITICAL⚡ | tflite/python/lite.py | 3105 | tf.compat.v1.lite.TFLiteConverter.from_saved_model( saved_model_dir) | STRING |
| CRITICAL⚡ | tflite/python/lite.py | 3108 | tf.compat.v1.lite.TFLiteConverter.from_keras_model_file( keras_model) | STRING |
| CRITICAL⚡ | tflite/python/lite_v2_test.py | 1882 | tensor_info_x = tf.compat.v1.saved_model.utils.build_tensor_info(x) | CODE |
| CRITICAL⚡ | tflite/python/lite_v2_test.py | 1883 | tensor_info_y = tf.compat.v1.saved_model.utils.build_tensor_info(y) | CODE |
| CRITICAL⚡ | tflite/python/lite_v2_test.py | 1887 | 'serving_default': tf.compat.v1.saved_model.signature_def_utils.build_signature_def( | CODE |
| CRITICAL⚡ | tflite/python/lite_v2_test.py | 1973 | tensor_info_x = tf.compat.v1.saved_model.utils.build_tensor_info(x) | CODE |
| CRITICAL⚡ | tflite/python/lite_v2_test.py | 1974 | tensor_info_y = tf.compat.v1.saved_model.utils.build_tensor_info(y) | CODE |
| CRITICAL⚡ | tflite/python/lite_v2_test.py | 1978 | 'serving_default': tf.compat.v1.saved_model.signature_def_utils.build_signature_def( | CODE |
| CRITICAL | tflite/python/lite_v2_test.py | 1900 | builder = tf.compat.v1.saved_model.builder.SavedModelBuilder( | CODE |
| CRITICAL | tflite/python/lite_v2_test.py | 1990 | builder = tf.compat.v1.saved_model.builder.SavedModelBuilder( | CODE |
| CRITICAL | tflite/testing/zip_test_utils.py | 356 | tensor_info = tf.compat.v1.saved_model.utils.build_tensor_info(tensor) | CODE |
| CRITICAL | tflite/testing/zip_test_utils.py | 598 | tf.compat.v1.saved_model.signature_def_utils.build_signature_def( | CODE |
| CRITICAL | tflite/testing/zip_test_utils.py | 605 | builder = tf.compat.v1.saved_model.builder.SavedModelBuilder( | CODE |
| CRITICAL | tflite/testing/op_tests/dynamic_rnn.py | 49 | lstm_cell = tf.compat.v1.nn.rnn_cell.BasicLSTMCell( | CODE |
| CRITICAL | tflite/testing/op_tests/unfused_gru.py | 39 | cell_fw = tf.compat.v1.nn.rnn_cell.GRUCell(parameters["units"]) | CODE |
| CRITICAL | tflite/testing/op_tests/unfused_gru.py | 40 | cell_bw = tf.compat.v1.nn.rnn_cell.GRUCell(parameters["units"]) | CODE |
| CRITICAL | tflite/testing/op_tests/lstm.py | 57 | lstm_cell = tf.compat.v1.nn.rnn_cell.BasicLSTMCell( | CODE |
| CRITICAL | …te/testing/op_tests/static_rnn_with_control_flow_v2.py | 54 | lstm_cell = tf.compat.v1.nn.rnn_cell.BasicLSTMCell( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | configure.py | 292 | Get boolean input from user. If var_name is not set in env, ask user to enable query_item or not. If the response i | STRING |
| HIGH | configure.py | 580 | Loop over user prompts for an ENV param until receiving a valid response. For the env param var_name, read from the e | STRING |
| HIGH | …tal/microfrontend/python/ops/audio_microfrontend_op.py | 51 | Audio Microfrontend Op. This Op converts a sequence of audio data into one or more feature vectors containing filte | STRING |
| HIGH | tflite/tools/flatbuffer_utils.py | 46 | Reads a tflite model as a python object. Args: input_tflite_file: Full path name to the input tflite file Rais | STRING |
| HIGH | tflite/tools/flatbuffer_utils.py | 98 | Reads a tflite model as a python object with mutable tensors. Similar to read_model() with the addition that the retu | STRING |
| HIGH | tflite/tools/flatbuffer_utils.py | 266 | Converts xxd output C++ source file to bytes (immutable). Args: input_cc_file: Full path name to th C++ source fi | STRING |
| HIGH | tflite/tools/flatbuffer_utils.py | 305 | Converts xxd output C++ source file to object. Args: input_cc_file: Full path name to th C++ source file dumped b | STRING |
| HIGH | tflite/tools/flatbuffer_utils.py | 465 | Get the options of an operator as the specified type. Requested type must be an object-api type (ends in 'T'). Arg | STRING |
| HIGH | tflite/tools/visualize.py | 461 | Returns html description with the given tflite model. Args: tflite_input: TFLite flatbuffer model path or model o | STRING |
| HIGH | …te/tools/optimize/python/modify_model_interface_lib.py | 23 | Converts a tflite type to it's integer representation. Args: dtype: tf.DType representing the inference type. | STRING |
| HIGH | tflite/tools/optimize/debugging/python/debugger.py | 138 | Runs the TFLite debugging model with given debug options. Args: quant_debug_model_path: Path to the quantized | STRING |
| HIGH | tflite/tools/signature/signature_def_utils.py | 25 | Sets SignatureDefs to the Metadata of a TfLite flatbuffer buffer. Args: tflite_model: Binary TFLite model (bytes | STRING |
| HIGH | tflite/tools/signature/signature_def_utils.py | 51 | Get SignatureDef dict from the Metadata of a TfLite flatbuffer buffer. Args: tflite_model: TFLite model buffer to | STRING |
| HIGH | tflite/tools/signature/signature_def_utils.py | 78 | Clears SignatureDefs from the Metadata of a TfLite flatbuffer buffer. Args: tflite_model: TFLite model buffer to | STRING |
| HIGH | tflite/converter/experimental/tac/tac.py | 21 | Run target aware conversion for the given tflite model file. Args: model_path: Path to the tflite model file. | STRING |
| HIGH | tflite/python/convert_saved_model.py | 29 | Validate saved_model and extract MetaGraphDef. Args: saved_model_dir: saved_model path to convert. tag_set: S | STRING |
| HIGH | tflite/python/convert_saved_model.py | 46 | Get the signature def from meta_graph with given signature_key. Args: meta_graph: meta_graph_def. signature_k | STRING |
| HIGH | tflite/python/convert_saved_model.py | 92 | Gets the tensors associated with the tensor names. Either signature_def_tensor_names or user_tensor_names should be p | STRING |
| HIGH | tflite/python/convert_saved_model.py | 136 | Converts a SavedModel to a frozen graph. Args: saved_model_dir: SavedModel directory to convert. input_arrays | STRING |
| HIGH | tflite/python/util.py | 85 | Converts tflite enum type (eg: 0) to tf type (eg: tf.float32). Args: tflite_enum_type: tflite enum type (eg: 0, t | STRING |
| HIGH | tflite/python/util.py | 131 | Gets the Tensors associated with the `tensor_names` in the provided graph. Args: graph: TensorFlow Graph. ten | STRING |
| HIGH | tflite/python/util.py | 944 | Modify the input/output type of a tflite model. Args: model: A tflite model. inference_input_type: tf.DType r | STRING |
| HIGH | tflite/python/op_hint.py | 200 | Return the next unused argument index in order or use an override. Args: index_override: An index to use | STRING |
| HIGH | tflite/python/op_hint.py | 226 | Return a wrapped tensor of an input tensor as an argument. Args: arg: A TensorFlow tensor that should be | STRING |
| HIGH | tflite/python/op_hint.py | 480 | This adds the node(s) to out_graphdef and returns the input node name. Args: out_graphdef: A graphdef that is | STRING |
| HIGH | tflite/python/op_hint.py | 496 | Add node(s) to graph representing output operands and returns type. Args: fused_op_name: name of the fused op | STRING |
| HIGH | tflite/python/op_hint.py | 1246 | Find all Ophints output nodes in the graph. This is used to get all the output nodes those are ophinted, it is import | STRING |
| HIGH | tflite/python/op_hint.py | 1302 | Converts a graphdef with LiteOp hints into stub operations. This is used to prepare for toco conversion of complex in | STRING |
| HIGH | tflite/python/convert.py | 67 | Convert tensor type from tf type to tflite type. Args: tf_type: TensorFlow type. usage: Text describing the r | STRING |
| HIGH | tflite/python/convert.py | 111 | Convert inference type from tf type to tflite type. Args: tf_type: TensorFlow type. usage: Text describing th | STRING |
| HIGH | tflite/python/convert.py | 300 | Converts `input_data_str` to a TFLite model. Args: model_flags: Proto describing model properties, see `model_fla | STRING |
| HIGH | tflite/python/convert.py | 454 | Builds protocol buffer describing a conversion of a model. Typically this is to convert from TensorFlow GraphDef to T | STRING |
| HIGH | tflite/python/convert.py | 742 | Convert a frozen GraphDef that can't be loaded in TF. Conversion can be customized by providing arguments that are fo | STRING |
| HIGH | tflite/python/convert.py | 808 | Convert a frozen GraphDef model using the TF Lite converter. Conversion can be customized by providing arguments that | STRING |
| HIGH | tflite/python/convert.py | 938 | Convert a TensorFlow GraphDef to TFLite. This function is deprecated. Please use `tf.lite.TFLiteConverter` API instea | STRING |
| HIGH | tflite/python/convert_phase.py | 166 | The decorator to identify converter component and subcomponent. Args: component: Converter component name. su | STRING |
| HIGH | tflite/python/interpreter.py | 139 | Returns loaded Delegate object. Example usage: ``` import tensorflow as tf try: delegate = tf.lite.experi | STRING |
| HIGH | tflite/python/interpreter.py | 637 | Gets tensor details. Args: tensor_index: Tensor index of tensor to query. subgraph_index: Index of the | STRING |
| HIGH | tflite/python/interpreter.py | 881 | Gets callable for inference of specific SignatureDef. Example usage, ``` interpreter = tf.lite.Interpreter( | STRING |
| HIGH | tflite/python/tflite_convert.py | 52 | Converts the inference type to the value of the constant. Args: value: str representing the inference type. f | STRING |
| HIGH | tflite/python/tflite_convert.py | 107 | Makes a TFLiteConverter object based on the flags provided. Args: flags: argparse.Namespace object containing TFL | STRING |
| HIGH | tflite/python/lite.py | 1460 | Converts a TensorFlow GraphDef based on instance variables. Args: graph_def: Frozen TensorFlow GraphDef. | STRING |
| HIGH | tflite/python/lite.py | 2183 | Creates a TFLiteConverter object from ConcreteFunctions. Args: funcs: List of TensorFlow ConcreteFunctions. T | STRING |
| HIGH | tflite/python/lite.py | 2225 | Creates a TFLiteConverter object from a SavedModel directory. Args: saved_model_dir: SavedModel directory to | STRING |
| HIGH | tflite/python/lite.py | 3182 | Creates a TFLiteConverter class from a file containing a frozen GraphDef. Args: graph_def_file: Full filepath | STRING |
| HIGH | tflite/python/tflite_keras_util.py | 193 | Trace the model call to create a tf.function for exporting a Keras model. Args: model: A Keras model. input_s | STRING |
| HIGH | tflite/python/kernel_tests/signal/test_util.py | 42 | Evaluates the provided tf.lite model with the given input ndarrays. Args: tflite_model: bytes. The serialized tf. | STRING |
| HIGH | tflite/ios/extract_object_files.py | 130 | Extracts the next available file from the archive. Reads the next available file header section and yields its filena | STRING |
| HIGH | tflite/testing/zip_test_utils.py | 260 | Given a dictionary of `examples`, write a text format representation. The file format is protocol-buffer-like, even t | STRING |
| HIGH | tflite/testing/zip_test_utils.py | 375 | Helper to make a zip file of a bunch of TensorFlow models. This does a cartesian product of the dictionary of test_pa | STRING |
| HIGH | tflite/schema/upgrade_schema.py | 103 | Read a tflite model assuming the given flatbuffer schema. If `input_file` is in bin, then we must use flatc to conv | STRING |
| HIGH | tflite/schema/upgrade_schema.py | 229 | Remap operator structs from old names to new names. Args: operator_type: String representing the builtin | STRING |
| HIGH | …r_sdk/mediatek/ai_edge_litert_sdk_mediatek/__init__.py | 30 | Returns the path to the MediaTek SDK libraries for a given version. Args: version: The SDK version to use (e.g., | STRING |
| HIGH | …ert/vendors/qualcomm/debugger/optrace_profiling/run.py | 77 | Get the context binary information. Args: ctx_bin_path (str): Path to the context binary. qairt_sdk (str) | STRING |
| HIGH | …ert/vendors/qualcomm/debugger/optrace_profiling/run.py | 415 | Generate the ctx.bin file from a given model. Args: model_path (Path): The path to the model. soc_model ( | STRING |
| HIGH | litert/python/tools/flatbuffer_utils.py | 177 | Reads a tflite model as a python object. Args: input_tflite_file: Full path name to the input tflite file. Rai | STRING |
| HIGH | litert/python/tools/flatbuffer_utils.py | 314 | Reads a tflite model as a python object with mutable tensors. Similar to read_model() with the addition that the retu | STRING |
| HIGH | litert/python/tools/flatbuffer_utils.py | 486 | Converts xxd output C++ source file to bytes (immutable). Args: input_cc_file: Full path name to th C++ source fi | STRING |
| HIGH | litert/python/tools/flatbuffer_utils.py | 525 | Converts xxd output C++ source file to object. Args: input_cc_file: Full path name to th C++ source file dumped b | STRING |
| HIGH | litert/python/tools/flatbuffer_utils.py | 698 | Get the options of an operator as the specified type. Requested type must be an object-api type (ends in 'T'). Arg | STRING |
| 10 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tflite/converter/python/wrap_converter.py | 18 | CODE | |
| LOW | tflite/python/wrap_toco.py | 18 | CODE | |
| LOW | tflite/python/lite.py | 33 | CODE | |
| LOW | tflite/python/lite.py | 36 | CODE | |
| LOW | tflite/python/lite.py | 37 | CODE | |
| LOW | tflite/python/lite.py | 45 | CODE | |
| LOW | tflite/python/lite.py | 50 | CODE | |
| LOW | tflite/python/lite.py | 55 | CODE | |
| LOW | tflite/python/lite.py | 56 | CODE | |
| LOW | tflite/python/lite.py | 57 | CODE | |
| LOW | tflite/python/lite.py | 59 | CODE | |
| LOW | tflite/python/lite.py | 61 | CODE | |
| LOW | tflite/python/lite.py | 83 | CODE | |
| LOW | tflite/python/lite.py | 84 | CODE | |
| LOW | tflite/python/metrics/wrapper/metrics_wrapper.py | 19 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 41 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 42 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 43 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 44 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 45 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 46 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 47 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 47 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 47 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 47 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 47 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 47 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 47 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 47 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 48 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 49 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 50 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 51 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 52 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 53 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 54 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 55 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 56 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 57 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 58 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 59 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 60 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 61 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 62 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 63 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 64 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 64 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 64 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 65 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 66 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 67 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 68 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 69 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 71 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 72 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 73 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 74 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 75 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 76 | CODE | |
| LOW | tflite/testing/generate_examples_lib.py | 76 | CODE | |
| 331 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tflite/tools/visualize.py | 32 | # This file is part of tensorflow package. | COMMENT |
| MEDIUM | tflite/tools/visualize.py | 35 | # This file is part of tflite_runtime package. | COMMENT |
| MEDIUM | tflite/tools/flatbuffer_utils_test.py | 34 | # Define the initial model | COMMENT |
| MEDIUM | tflite/tools/flatbuffer_utils_test.py | 79 | # Define the initial model | COMMENT |
| MEDIUM | tflite/tools/flatbuffer_utils_test.py | 127 | # Define the initial model | COMMENT |
| MEDIUM | tflite/tools/flatbuffer_utils_test.py | 167 | # Define the initial model | COMMENT |
| MEDIUM | tflite/tools/flatbuffer_utils_test.py | 211 | # Define the initial model | COMMENT |
| MEDIUM | tflite/tools/flatbuffer_utils_test.py | 243 | # Define the initial model | COMMENT |
| MEDIUM | …ols/optimize/python/modify_model_interface_lib_test.py | 56 | # Define the temporary directory and files | COMMENT |
| MEDIUM | …ols/optimize/python/modify_model_interface_lib_test.py | 91 | # Define the temporary directory and files | COMMENT |
| MEDIUM | …ols/optimize/python/modify_model_interface_lib_test.py | 128 | # Define the temporary directory and files | COMMENT |
| MEDIUM | tflite/tools/optimize/debugging/python/debugger_test.py | 75 | # Create a TFLite model with new quantizer and numeric verify ops. | COMMENT |
| MEDIUM | …tasks/coco_object_detection/preprocess_coco_minival.py | 165 | # Create an ObjectsSet proto for this file's ground truth. | COMMENT |
| MEDIUM | tflite/python/util.py | 828 | # Create a quantize operator, if none exist | COMMENT |
| MEDIUM | tflite/python/op_hint.py | 1022 | # Create the function | COMMENT |
| MEDIUM | tflite/python/convert.py | 1064 | # Create a map of duplicate buffers (same size and same type). | COMMENT |
| MEDIUM⚡ | tflite/python/analyzer.py | 22 | # This file is part of tensorflow package. | COMMENT |
| MEDIUM⚡ | tflite/python/analyzer.py | 27 | # This file is part of tflite_runtime package. | COMMENT |
| MEDIUM | tflite/python/util_test.py | 229 | # Define a pseudo MNIST dataset (as downloading the dataset on-the-fly causes | COMMENT |
| MEDIUM | tflite/python/interpreter.py | 28 | # This file is part of tensorflow package. | COMMENT |
| MEDIUM | tflite/python/interpreter.py | 33 | # This file is part of tflite_runtime package. | COMMENT |
| MEDIUM | tflite/python/interpreter.py | 44 | # This file is part of the ai_edge_litert package. | COMMENT |
| MEDIUM | tflite/python/lite_flex_test.py | 78 | # Create a graph that has one L2Loss op. | COMMENT |
| MEDIUM | tflite/python/lite_flex_test.py | 212 | # Create a graph that has one add op. | COMMENT |
| MEDIUM | tflite/python/lite_flex_test.py | 254 | # Create a graph that has one double op. | COMMENT |
| MEDIUM⚡ | tflite/python/lite_v2_test.py | 1269 | # Create a TFLite model with new quantizer. | COMMENT |
| MEDIUM⚡ | tflite/python/lite_v2_test.py | 1273 | # Create a TFLite model with new quantizer and numeric verify ops. | COMMENT |
| MEDIUM | tflite/python/lite_v2_test.py | 1863 | # Create a v1 saved model with hash table initializers. | COMMENT |
| MEDIUM | tflite/python/lite_v2_test.py | 1952 | # Create a v1 saved model with mutable hash table. | COMMENT |
| MEDIUM | tflite/python/lite_v2_test.py | 3219 | # Create a simple Keras model. | COMMENT |
| MEDIUM | tflite/python/lite_v2_test.py | 3251 | # Create a simple Keras model. | COMMENT |
| MEDIUM | tflite/python/lite_v2_test.py | 3292 | # Create a simple Keras model. | COMMENT |
| MEDIUM | tflite/python/lite_v2_test.py | 5050 | # Create a graph that has one double op. | COMMENT |
| MEDIUM | tflite/python/tflite_convert_test.py | 246 | # Create a graph that has one add op. | COMMENT |
| MEDIUM | tflite/python/metrics/metrics_nonportable_test.py | 436 | # Create a graph that has one add op. | COMMENT |
| MEDIUM⚡ | tflite/python/metrics/metrics_portable.py | 22 | # This file is part of tensorflow package. | COMMENT |
| MEDIUM⚡ | tflite/python/metrics/metrics_portable.py | 25 | # This file is part of tflite_runtime package. | COMMENT |
| MEDIUM⚡ | tflite/python/optimize/calibrator_test.py | 248 | # Define a simple model to run calibration with. | COMMENT |
| MEDIUM | tflite/testing/op_tests/fully_connected_4bit_hybrid.py | 52 | # Create a float filter with no quantization loss. | COMMENT |
| MEDIUM | litert/python/tools/flatbuffer_utils_test.py | 370 | # Define the initial model | COMMENT |
| MEDIUM | litert/python/tools/flatbuffer_utils_test.py | 416 | # Define the initial model | COMMENT |
| MEDIUM | litert/python/tools/flatbuffer_utils_test.py | 466 | # Define the initial model | COMMENT |
| MEDIUM | litert/python/tools/flatbuffer_utils_test.py | 508 | # Define the initial model | COMMENT |
| MEDIUM | litert/python/tools/flatbuffer_utils_test.py | 555 | # Define the initial model | COMMENT |
| MEDIUM | litert/python/tools/flatbuffer_utils_test.py | 587 | # Define the initial model | COMMENT |
| MEDIUM⚡ | litert/python/tools/mmap_utils_test.py | 65 | # Create a regular binary file containing the test data. | COMMENT |
| MEDIUM⚡ | litert/python/tools/mmap_utils_test.py | 274 | # Create a slice | COMMENT |
| MEDIUM | …/litert_wrapper/tensor_buffer_wrapper/tensor_buffer.py | 25 | # This file is part of litert package. | COMMENT |
| MEDIUM | …/litert_wrapper/tensor_buffer_wrapper/tensor_buffer.py | 30 | # This file is part of ai_edge_litert package. | COMMENT |
| MEDIUM | …itert_wrapper/compiled_model_wrapper/compiled_model.py | 24 | # This file is part of litert package. | COMMENT |
| MEDIUM | …itert_wrapper/compiled_model_wrapper/compiled_model.py | 50 | # This file is part of ai_edge_litert package. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tflite/CMakeLists.txt | 19 | # WARNING: This is an experimental that is subject to change. | COMMENT |
| LOW | tflite/kernels/internal/runtime_shape.h | 204 | // NOTE: This function does not handle potential integer overflow. Use | COMMENT |
| LOW | tflite/g3doc/inference_with_metadata/codegen.md | 164 | #### Step 1: Import the generated code | COMMENT |
| LOW | tflite/g3doc/inference_with_metadata/codegen.md | 176 | #### Step 2: Update the app's `build.gradle` file | COMMENT |
| LOW | tflite/g3doc/inference_with_metadata/codegen.md | 198 | #### Step 3: Using the model | COMMENT |
| LOW | …/inference_with_metadata/task_library/text_embedder.md | 62 | ### Step 1: Install TensorFlow Lite Support Pypi package. | COMMENT |
| LOW | …/inference_with_metadata/task_library/text_embedder.md | 71 | ### Step 2: Using the model | COMMENT |
| LOW | …ference_with_metadata/task_library/audio_classifier.md | 46 | ### Step 1: Import Gradle dependency and other settings | COMMENT |
| LOW | …ference_with_metadata/task_library/audio_classifier.md | 76 | ### Step 2: Using the model | COMMENT |
| LOW | …ference_with_metadata/task_library/audio_classifier.md | 106 | ### Step 1: Install the dependencies | COMMENT |
| LOW | …ference_with_metadata/task_library/audio_classifier.md | 129 | ### Step 2: Using the model | COMMENT |
| LOW | …ference_with_metadata/task_library/audio_classifier.md | 234 | ### Step 1: Install the pip package | COMMENT |
| LOW | …ference_with_metadata/task_library/audio_classifier.md | 250 | ### Step 2: Using the model | COMMENT |
| LOW | …inference_with_metadata/task_library/image_embedder.md | 69 | ### Step 1: Install TensorFlow Lite Support Pypi package. | COMMENT |
| LOW | …inference_with_metadata/task_library/image_embedder.md | 78 | ### Step 2: Using the model | COMMENT |
| LOW | …e_with_metadata/task_library/bert_question_answerer.md | 31 | ### Step 1: Import Gradle dependency and other settings | COMMENT |
| LOW | …e_with_metadata/task_library/bert_question_answerer.md | 60 | ### Step 2: Run inference using the API | COMMENT |
| LOW | …e_with_metadata/task_library/bert_question_answerer.md | 82 | ### Step 1: Import CocoaPods | COMMENT |
| LOW | …e_with_metadata/task_library/bert_question_answerer.md | 93 | ### Step 2: Run inference using the API | COMMENT |
| LOW | …e_with_metadata/task_library/bert_question_answerer.md | 127 | ### Step 1: Install the pip package | COMMENT |
| LOW | …e_with_metadata/task_library/bert_question_answerer.md | 133 | ### Step 2: Using the model | COMMENT |
| LOW | …nference_with_metadata/task_library/image_segmenter.md | 43 | ### Step 1: Import Gradle dependency and other settings | COMMENT |
| LOW | …nference_with_metadata/task_library/image_segmenter.md | 73 | ### Step 2: Using the model | COMMENT |
| LOW | …nference_with_metadata/task_library/image_segmenter.md | 95 | ### Step 1: Install the dependencies | COMMENT |
| LOW | …nference_with_metadata/task_library/image_segmenter.md | 118 | ### Step 2: Using the model | COMMENT |
| LOW | …nference_with_metadata/task_library/image_segmenter.md | 182 | ### Step 1: Install the pip package | COMMENT |
| LOW | …nference_with_metadata/task_library/image_segmenter.md | 188 | ### Step 2: Using the model | COMMENT |
| LOW | …nference_with_metadata/task_library/object_detector.md | 52 | ### Step 1: Import Gradle dependency and other settings | COMMENT |
| LOW | …nference_with_metadata/task_library/object_detector.md | 82 | ### Step 2: Using the model | COMMENT |
| LOW | …nference_with_metadata/task_library/object_detector.md | 105 | ### Step 1: Install the dependencies | COMMENT |
| LOW | …nference_with_metadata/task_library/object_detector.md | 128 | ### Step 2: Using the model | COMMENT |
| LOW | …nference_with_metadata/task_library/object_detector.md | 190 | ### Step 1: Install the pip package | COMMENT |
| LOW | …nference_with_metadata/task_library/object_detector.md | 196 | ### Step 2: Using the model | COMMENT |
| LOW | …rence_with_metadata/task_library/bert_nl_classifier.md | 31 | ### Step 1: Import Gradle dependency and other settings | COMMENT |
| LOW | …rence_with_metadata/task_library/bert_nl_classifier.md | 60 | ### Step 2: Run inference using the API | COMMENT |
| LOW | …rence_with_metadata/task_library/bert_nl_classifier.md | 81 | ### Step 1: Import CocoaPods | COMMENT |
| LOW | …rence_with_metadata/task_library/bert_nl_classifier.md | 92 | ### Step 2: Run inference using the API | COMMENT |
| LOW | …rence_with_metadata/task_library/bert_nl_classifier.md | 125 | ### Step 1: Install the pip package | COMMENT |
| LOW | …rence_with_metadata/task_library/bert_nl_classifier.md | 131 | ### Step 2: Using the model | COMMENT |
| LOW | …ference_with_metadata/task_library/image_classifier.md | 54 | ### Step 1: Import Gradle dependency and other settings | COMMENT |
| LOW | …ference_with_metadata/task_library/image_classifier.md | 80 | ### Step 2: Using the model | COMMENT |
| LOW | …ference_with_metadata/task_library/image_classifier.md | 103 | ### Step 1: Install the dependencies | COMMENT |
| LOW | …ference_with_metadata/task_library/image_classifier.md | 126 | ### Step 2: Using the model | COMMENT |
| LOW | …ference_with_metadata/task_library/image_classifier.md | 190 | ### Step 1: Install the pip package | COMMENT |
| LOW | …ference_with_metadata/task_library/image_classifier.md | 196 | ### Step 2: Using the model | COMMENT |
| LOW | …inference_with_metadata/task_library/image_searcher.md | 52 | ### Step 1: Import Gradle dependency and other settings | COMMENT |
| LOW | …inference_with_metadata/task_library/image_searcher.md | 80 | ### Step 2: Using the model | COMMENT |
| LOW | …inference_with_metadata/task_library/image_searcher.md | 125 | ### Step 1: Install TensorFlow Lite Support Pypi package. | COMMENT |
| LOW | …inference_with_metadata/task_library/image_searcher.md | 134 | ### Step 2: Using the model | COMMENT |
| LOW | …/inference_with_metadata/task_library/nl_classifier.md | 36 | ### Step 1: Import Gradle dependency and other settings | COMMENT |
| LOW | …/inference_with_metadata/task_library/nl_classifier.md | 67 | ### Step 2: Run inference using the API | COMMENT |
| LOW | …/inference_with_metadata/task_library/nl_classifier.md | 90 | ### Step 1: Import CocoaPods | COMMENT |
| LOW | …/inference_with_metadata/task_library/nl_classifier.md | 101 | ### Step 2: Run inference using the API | COMMENT |
| LOW | …/inference_with_metadata/task_library/nl_classifier.md | 138 | ### Step 1: Install the pip package | COMMENT |
| LOW | …/inference_with_metadata/task_library/nl_classifier.md | 144 | ### Step 2: Using the model | COMMENT |
| LOW | …/inference_with_metadata/task_library/text_searcher.md | 60 | ### Step 1: Import Gradle dependency and other settings | COMMENT |
| LOW | …/inference_with_metadata/task_library/text_searcher.md | 88 | ### Step 2: Using the model | COMMENT |
| LOW | …/inference_with_metadata/task_library/text_searcher.md | 128 | ### Step 1: Install TensorFlow Lite Support Pypi package. | COMMENT |
| LOW | …/inference_with_metadata/task_library/text_searcher.md | 137 | ### Step 2: Using the model | COMMENT |
| LOW | tflite/core/subgraph.h | 556 | // NOTE: This function is expected to be paired with ReleaseSubgraphContext() | COMMENT |
| 37 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tflite/tools/flatbuffer_utils.py | 0 | converts a numerical enum value to a readable tensor type. | STRING |
| HIGH | tflite/tools/visualize.py | 0 | converts a numerical enum value to a readable tensor type. | STRING |
| HIGH | litert/python/tools/flatbuffer_utils.py | 0 | converts a numerical enum value to a readable tensor type. | STRING |
| HIGH | tflite/tools/pip_package/setup_with_binary.py | 0 | litert is for mobile and embedded devices. litert is the official solution for running machine learning models on mobile | STRING |
| HIGH | ci/setup_with_binary.py | 0 | litert is for mobile and embedded devices. litert is the official solution for running machine learning models on mobile | STRING |
| HIGH | ci/tools/python/vendor_sdk/qualcomm/setup.py | 0 | litert is for mobile and embedded devices. litert is the official solution for running machine learning models on mobile | STRING |
| HIGH | ci/tools/python/vendor_sdk/samsung/setup.py | 0 | litert is for mobile and embedded devices. litert is the official solution for running machine learning models on mobile | STRING |
| HIGH | ci/tools/python/vendor_sdk/mediatek/setup.py | 0 | litert is for mobile and embedded devices. litert is the official solution for running machine learning models on mobile | STRING |
| HIGH | ci/tools/python/vendor_sdk/google_tensor/setup.py | 0 | litert is for mobile and embedded devices. litert is the official solution for running machine learning models on mobile | STRING |
| HIGH | ci/tools/python/wheel/setup_with_binary.py | 0 | litert is for mobile and embedded devices. litert is the official solution for running machine learning models on mobile | STRING |
| HIGH | ci/tools/python/wheel/converter_setup_with_binary.py | 0 | litert is for mobile and embedded devices. litert is the official solution for running machine learning models on mobile | STRING |
| HIGH | …r_sdk/qualcomm/ai_edge_litert_sdk_qualcomm/__init__.py | 0 | returns the absolute path to the root of the downloaded sdk files. | STRING |
| HIGH | …dor_sdk/samsung/ai_edge_litert_sdk_samsung/__init__.py | 0 | returns the absolute path to the root of the downloaded sdk files. | STRING |
| HIGH | …r_sdk/mediatek/ai_edge_litert_sdk_mediatek/__init__.py | 0 | returns the absolute path to the root of the downloaded sdk files. | STRING |
| HIGH | …le_tensor/ai_edge_litert_sdk_google_tensor/__init__.py | 0 | returns the absolute path to the root of the downloaded sdk files. | STRING |
| HIGH | litert/python/tools/model_utils/dialect/tfl/_arg_min.py | 0 | returns the axis value if 'dim' is constant, otherwise the ssavalue. | STRING |
| HIGH | …t/python/tools/model_utils/dialect/tfl/_expand_dims.py | 0 | returns the axis value if 'dim' is constant, otherwise the ssavalue. | STRING |
| HIGH | litert/python/tools/model_utils/dialect/tfl/_arg_max.py | 0 | returns the axis value if 'dim' is constant, otherwise the ssavalue. | STRING |
| HIGH | litert/python/aot/vendors/qualcomm/qualcomm_backend.py | 0 | backend implementation for the example compiler plugin.. | STRING |
| HIGH | litert/python/aot/vendors/example/example_backend.py | 0 | backend implementation for the example compiler plugin.. | STRING |
| HIGH | litert/python/aot/vendors/mediatek/mediatek_backend.py | 0 | backend implementation for the example compiler plugin.. | STRING |
| HIGH | litert/python/aot/vendors/qualcomm/qualcomm_backend.py | 0 | backend implementation for the example compiler plugin. | STRING |
| HIGH | litert/python/aot/vendors/example/example_backend.py | 0 | backend implementation for the example compiler plugin. | STRING |
| HIGH | litert/python/aot/vendors/samsung/samsung_backend.py | 0 | backend implementation for the example compiler plugin. | STRING |
| HIGH | litert/python/aot/vendors/mediatek/mediatek_backend.py | 0 | backend implementation for the example compiler plugin. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | configure.py | 268 | CODE | |
| LOW | configure.py | 283 | CODE | |
| LOW | configure.py | 1029 | CODE | |
| LOW | configure.py | 1136 | CODE | |
| LOW | configure.py | 1267 | CODE | |
| LOW | tflite/tools/flatbuffer_utils.py | 352 | CODE | |
| LOW | tflite/tools/randomize_weights.py | 48 | CODE | |
| LOW | tflite/tools/zip_files.py | 27 | CODE | |
| LOW | tflite/tools/visualize.py | 318 | CODE | |
| LOW | tflite/tools/visualize.py | 422 | CODE | |
| LOW | tflite/tools/optimize/debugging/python/debugger.py | 332 | CODE | |
| LOW | tflite/python/util.py | 173 | CODE | |
| LOW | tflite/python/util.py | 332 | CODE | |
| LOW | tflite/python/util.py | 649 | CODE | |
| LOW | tflite/python/util.py | 756 | CODE | |
| LOW | tflite/python/util.py | 876 | CODE | |
| LOW | tflite/python/util.py | 1013 | CODE | |
| LOW | tflite/python/util.py | 1116 | CODE | |
| LOW | tflite/python/util.py | 343 | CODE | |
| LOW | tflite/python/op_hint.py | 828 | CODE | |
| LOW | tflite/python/op_hint.py | 932 | CODE | |
| LOW | tflite/python/op_hint.py | 1059 | CODE | |
| LOW | tflite/python/op_hint.py | 1168 | CODE | |
| LOW | tflite/python/op_hint.py | 558 | CODE | |
| LOW | tflite/python/convert.py | 807 | CODE | |
| LOW | tflite/python/convert.py | 963 | CODE | |
| LOW | tflite/python/util_test.py | 301 | CODE | |
| LOW | tflite/python/tflite_convert.py | 648 | CODE | |
| LOW | tflite/python/lite.py | 592 | CODE | |
| LOW | tflite/python/lite.py | 1333 | CODE | |
| LOW | tflite/python/lite.py | 1617 | CODE | |
| LOW | tflite/python/lite.py | 2458 | CODE | |
| LOW | tflite/python/lite.py | 3179 | CODE | |
| LOW | tflite/python/lite_v2_test.py | 3482 | CODE | |
| LOW | tflite/python/lite_v2_test.py | 4755 | CODE | |
| LOW | tflite/python/lite_v2_test.py | 4756 | CODE | |
| LOW | tflite/python/tflite_keras_util.py | 55 | CODE | |
| LOW | tflite/python/optimize/calibrator.py | 97 | CODE | |
| LOW | tflite/python/authoring/authoring.py | 179 | CODE | |
| LOW | tflite/ios/extract_object_files.py | 47 | CODE | |
| LOW | tflite/testing/zip_test_utils.py | 114 | CODE | |
| LOW | tflite/testing/zip_test_utils.py | 145 | CODE | |
| LOW | tflite/testing/zip_test_utils.py | 259 | CODE | |
| LOW | tflite/testing/zip_test_utils.py | 368 | CODE | |
| LOW | tflite/testing/mlir_convert.py | 30 | CODE | |
| LOW | tflite/testing/mlir_convert.py | 143 | CODE | |
| LOW | tflite/schema/upgrade_schema.py | 147 | CODE | |
| LOW | tflite/schema/upgrade_schema.py | 265 | CODE | |
| LOW | ci/tools/python/vendor_sdk/intel/setup.py | 136 | CODE | |
| LOW | ci/tools/python/vendor_sdk/intel/setup.py | 218 | CODE | |
| LOW | ci/tools/python/vendor_sdk/intel/setup.py | 261 | CODE | |
| LOW | ci/tools/python/vendor_sdk/intel/setup.py | 301 | CODE | |
| LOW | ci/tools/python/vendor_sdk/qualcomm/setup.py | 59 | CODE | |
| LOW | ci/tools/python/vendor_sdk/samsung/setup.py | 54 | CODE | |
| LOW | ci/tools/python/vendor_sdk/mediatek/setup.py | 52 | CODE | |
| LOW | ci/tools/python/vendor_sdk/google_tensor/setup.py | 60 | CODE | |
| LOW | ci/tools/python/wheel/setup_with_binary.py | 47 | CODE | |
| LOW | ci/tools/python/wheel/converter_setup_with_binary.py | 38 | CODE | |
| LOW | ci/tools/python/wheel/utils/wheel_builder.py | 351 | CODE | |
| LOW | litert/tools/externalize_tflite_flatbuffer.py | 66 | CODE | |
| 20 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | configure.py | 204 | # Check if the path is valid | COMMENT |
| LOW | configure.py | 464 | # Check if current bazel version can be detected properly. | COMMENT |
| LOW | configure.py | 977 | # Check if current clang version can be detected properly. | COMMENT |
| LOW | tflite/tools/build_aar.sh | 59 | # Check if the file exist. | COMMENT |
| LOW | tflite/tools/build_aar.sh | 170 | # Check if users already run configure | COMMENT |
| LOW | tflite/python/util.py | 1135 | # Check if metadata has already been populated. | COMMENT |
| LOW | tflite/python/lite.py | 504 | # Check if representative_dataset is specified. | COMMENT |
| LOW | tflite/python/lite.py | 3246 | # Check if graph is frozen. | COMMENT |
| LOW⚡ | tflite/python/lite_v2_test.py | 1282 | # Check if adding debug mode should output a different flatbuffer. | COMMENT |
| LOW⚡ | tflite/python/lite_v2_test.py | 1285 | # Check if newly added ops are numeric verify ops. | COMMENT |
| LOW | tflite/python/authoring/authoring_test.py | 52 | # Check if the CompatibilityError exception is raised. | COMMENT |
| LOW⚡ | tflite/python/authoring/authoring_test.py | 170 | # Check if the decorator keeps __name__ attribute. | COMMENT |
| LOW⚡ | tflite/python/authoring/authoring_test.py | 173 | # Check if the decorator works with get_concrete_function method. | COMMENT |
| LOW⚡ | tflite/python/authoring/authoring_test.py | 192 | # Check if the decorator keeps __name__ attribute. | COMMENT |
| LOW⚡ | tflite/python/authoring/authoring_test.py | 195 | # Check if the decorator works with get_concrete_function method. | COMMENT |
| LOW⚡ | tflite/ios/extract_object_files.py | 75 | # Check if the name is already used. If so, come up with a different name by | COMMENT |
| LOW⚡ | tflite/ios/extract_object_files.py | 82 | # Write the file content to the desired final path. | COMMENT |
| LOW | tflite/ios/build_frameworks.sh | 174 | # Check if users ran configure with iOS enabled. | COMMENT |
| LOW | tflite/schema/upgrade_schema.py | 256 | # Check if builtin_code is the appropriate string type | COMMENT |
| LOW | litert/integration_test/device_script_common.sh | 41 | # Print message and exit. | COMMENT |
| LOW | litert/python/tools/flatbuffer_utils_test.py | 335 | # Check if the pack model's data is updated. | COMMENT |
| LOW | litert/python/tools/mmap_utils.py | 167 | # Write the file in chunks to avoid creating large internal buffers. | COMMENT |
| LOW | litert/python/tools/model_utils/core/utils.py | 108 | # Check if the type is signless (or signed) | COMMENT |
| LOW | litert/python/tools/model_utils/core/utils.py | 128 | # Check if the type is unsigned | COMMENT |
| LOW | litert/c/litert_runtime_c_api_so_symbol_test.sh | 22 | # Check if TEST_SRCDIR is set | COMMENT |
| LOW | docker_build/build_with_docker.sh | 21 | # Check if Docker is installed and running | COMMENT |
| LOW | docker_build/build_with_docker.sh | 27 | # Check if Docker daemon is running | COMMENT |
| LOW | docker_build/build_with_docker.sh | 72 | # Check if container already exists | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | configure.py | 1291 | print('Error retrieving bazel version: ', e.output.decode('UTF-8').strip()) | CODE |
| LOW | tflite/converter/tests/debuginfo/saved_model_error.py | 76 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | …e/converter/tests/debuginfo/concrete_function_error.py | 66 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | tflite/python/util.py | 1151 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | tflite/python/convert.py | 325 | except Exception as e: | CODE |
| LOW | tflite/python/convert_phase.py | 213 | except Exception as error: | CODE |
| MEDIUM | tflite/python/convert_phase.py | 203 | def wrapper(*args, **kwargs): | CODE |
| LOW | tflite/python/lite.py | 1185 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | tflite/python/lite.py | 1681 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | tflite/python/lite.py | 1902 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | tflite/python/lite.py | 2065 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | tflite/python/lite.py | 2547 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | tflite/python/lite.py | 2882 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | tflite/python/optimize/calibrator.py | 80 | except Exception as e: | CODE |
| LOW | tflite/testing/mlir_convert.py | 137 | except Exception as e: # pylint: disable=broad-except | CODE |
| MEDIUM | ci/tools/python/vendor_sdk/sdist_wrapper.py | 152 | print("Error running setup.py sdist:", file=sys.stderr) | CODE |
| LOW | ci/tools/python/vendor_sdk/intel/setup.py | 319 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | ci/tools/python/vendor_sdk/intel/setup.py | 342 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | ci/tools/python/vendor_sdk/qualcomm/setup.py | 78 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | ci/tools/python/vendor_sdk/qualcomm/setup.py | 179 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | …r_sdk/qualcomm/ai_edge_litert_sdk_qualcomm/__init__.py | 57 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| MEDIUM | …r_sdk/qualcomm/ai_edge_litert_sdk_qualcomm/__init__.py | 58 | print(f"Error determining SDK path: {e}", file=sys.stderr) | CODE |
| LOW | ci/tools/python/vendor_sdk/samsung/setup.py | 73 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | ci/tools/python/vendor_sdk/samsung/setup.py | 174 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | …dor_sdk/samsung/ai_edge_litert_sdk_samsung/__init__.py | 59 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| MEDIUM | …dor_sdk/samsung/ai_edge_litert_sdk_samsung/__init__.py | 60 | print(f"Error determining SDK path: {e}", file=sys.stderr) | CODE |
| LOW | ci/tools/python/vendor_sdk/mediatek/setup.py | 71 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | ci/tools/python/vendor_sdk/mediatek/setup.py | 176 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | …r_sdk/mediatek/ai_edge_litert_sdk_mediatek/__init__.py | 78 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| MEDIUM | …r_sdk/mediatek/ai_edge_litert_sdk_mediatek/__init__.py | 79 | print(f"Error determining SDK path: {e}", file=sys.stderr) | CODE |
| LOW | ci/tools/python/vendor_sdk/google_tensor/setup.py | 99 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW⚡ | ci/tools/python/vendor_sdk/google_tensor/setup.py | 221 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | …le_tensor/ai_edge_litert_sdk_google_tensor/__init__.py | 61 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| MEDIUM | …le_tensor/ai_edge_litert_sdk_google_tensor/__init__.py | 62 | print(f"Error determining SDK path: {e!r}", file=sys.stderr) | CODE |
| LOW | ci/tools/python/wheel/setup_with_binary.py | 80 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | ci/tools/python/wheel/setup_with_binary.py | 131 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | ci/tools/python/wheel/converter_setup_with_binary.py | 71 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | litert/python/litert_wrapper/simple_accel_smoke_test.py | 192 | except Exception as exc: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tflite/types/half.h | 24 | // known to be at least a robust f16<->f32 conversion, which generally means a | COMMENT |
| MEDIUM | tflite/python/convert.py | 677 | # leverage defaults specified in proto definition. | COMMENT |
| MEDIUM | tflite/python/lite_v2_test.py | 588 | # the bias tensor should be 32 bits to utilize optimized kernels, | COMMENT |
| MEDIUM | …delegates/gpu/common/tasks/mean_stddev_normalization.h | 68 | // provide more stable and robust results | COMMENT |
| MEDIUM | …delegates/gpu/common/tasks/mean_stddev_normalization.h | 133 | // provide more stable and robust results | COMMENT |
| MEDIUM | ml_drift/delegate/delegate_options.h | 214 | // If true, the weights rearrangement, if supported, will utilize GPU. | COMMENT |
| LOW | ci/run_bazel_build.sh | 240 | # buildable. To avoid creating new TAP targets, simply add benchmark | COMMENT |
| LOW | ci/tools/python/vendor_sdk/google_tensor/setup.py | 106 | # If we simply return None, the build process will continue, which is | COMMENT |
| LOW⚡ | ci/tools/python/vendor_sdk/google_tensor/setup.py | 211 | # If we simply return None, the build process will continue, which | COMMENT |
| LOW⚡ | ci/tools/python/vendor_sdk/google_tensor/setup.py | 227 | # If we simply return None, the build process will continue, which is not | COMMENT |
| MEDIUM | litert/vendors/google_tensor/dispatch/sb_api.h | 91 | // implementation to utilize a proprietary fence, which generally have superior | COMMENT |
| MEDIUM | litert/core/dispatch_op_schema.h | 21 | // functions leverage the flexbuffer api under the hood which allows for inplace | COMMENT |
| LOW⚡ | litert/python/tools/mmap_utils_test.py | 242 | # This should not raise any exception and should just return. | COMMENT |
| LOW | litert/python/tools/mmap_utils_test.py | 306 | # This should not raise any exception and should just return. | COMMENT |
| LOW | litert/python/aot/ai_pack/export_lib.py | 164 | # Skip non-MTK targets, just create a placeholder file. | COMMENT |
| MEDIUM | litert/cc/internal/litert_c_types_printing.h | 33 | /// @todo Migrate the code in `tools/dump.h` to leverage the Abseil stringify | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | litert/vendors/broadcom/example/CMakeLists.txt | 2 | # Portions generated by AI | COMMENT |
| HIGH | litert/vendors/broadcom/dispatch/CMakeLists.txt | 2 | # Portions generated by AI | COMMENT |
| HIGH | litert/vendors/broadcom/common/CMakeLists.txt | 2 | # Portions generated by AI | COMMENT |
| HIGH | litert/python/tools/model_utils/dialect/tfl/_fill.py | 102 | # Do not check ndim as requested | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tflite/kernels/shim/op_kernel.h | 154 | // Example usage: | COMMENT |
| LOW | tflite/kernels/shim/tflite_op_wrapper.h | 149 | // Example usage: | COMMENT |
| LOW | tflite/kernels/shim/tensor_view.h | 59 | // Example usage: | COMMENT |
| LOW | …imental/acceleration/compatibility/gpu_compatibility.h | 39 | // Example usage: | COMMENT |
| LOW⚡ | tflite/testing/zip_test_utils.py | 47 | # Usage: | COMMENT |
| LOW | tflite/delegates/gpu/api.h | 19 | // Usage example: | COMMENT |
| LOW | tflite/delegates/gpu/common/task/util.h | 60 | // Example usage: | COMMENT |
| LOW | tflite/delegates/gpu/cl/api.h | 33 | // Usage example: | COMMENT |
| LOW | litert/rust/example/segmentation_async_main.rs | 19 | /// Example usage: | COMMENT |
| LOW | litert/rust/example/segmentation_main.rs | 19 | /// Example usage: | COMMENT |
| LOW | litert/rust/src/environment.rs | 63 | /// Example usage: | COMMENT |
| LOW | litert/c/options/litert_runtime_options.h | 25 | // Example usage: | COMMENT |
| LOW | docker_build/build_wheel_with_docker.sh | 21 | # Usage: | COMMENT |
| LOW | docker_build/setup_bazel_env.sh | 21 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …tal/microfrontend/python/ops/audio_microfrontend_op.py | 28 | CODE | |
| LOW | tflite/tools/optimize/debugging/python/debugger_test.py | 46 | CODE | |
| LOW | tflite/python/convert.py | 202 | CODE | |
| LOW | tflite/python/convert.py | 397 | CODE | |
| LOW | tflite/python/convert.py | 801 | CODE | |
| LOW | tflite/python/convert.py | 889 | CODE | |
| LOW | tflite/python/convert.py | 905 | CODE | |
| LOW | tflite/python/convert.py | 932 | CODE | |
| LOW | tflite/python/interpreter.py | 402 | CODE | |
| LOW | tflite/python/lite_v2_test.py | 293 | CODE | |
| LOW | tflite/python/lite_v2_test.py | 911 | CODE | |
| LOW | tflite/python/lite_v2_test.py | 1403 | CODE | |
| LOW | tflite/python/lite_v2_test.py | 5221 | CODE | |
| LOW | tflite/python/lite_v2_test.py | 5259 | CODE | |
| LOW | tflite/python/metrics/metrics_nonportable_test.py | 192 | CODE | |
| LOW | tflite/python/authoring/authoring_test.py | 76 | CODE | |
| LOW | tflite/testing/op_tests/conv_activation.py | 146 | CODE | |
| LOW | tflite/testing/op_tests/conv_bias_activation.py | 73 | CODE | |
| LOW | tflite/testing/op_tests/conv_bias_activation.py | 78 | CODE | |
| LOW | tflite/tutorials/mnist_tflite.py | 66 | CODE | |
| LOW | …on/tools/model_utils/dialect/tfl/_depthwise_conv_2d.py | 50 | CODE | |
| LOW | litert/python/tools/model_utils/dialect/tfl/_conv_2d.py | 50 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tflite/testing/op_tests/mirror_pad.py | 46 | "type": ["placeholder"], | CODE |
| LOW⚡ | tflite/testing/op_tests/mirror_pad.py | 53 | "type": ["placeholder"], | CODE |
| LOW⚡ | tflite/testing/op_tests/mirror_pad.py | 60 | "type": ["placeholder"], | CODE |
| LOW | tflite/testing/op_tests/mirror_pad.py | 82 | "type": ["placeholder"], | CODE |
| LOW | litert/python/tools/mmap_utils_test.py | 52 | b'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod' | CODE |
| LOW | litert/python/tools/mmap_utils_test.py | 52 | b'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod' | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | litert/python/tools/model_utils/model_builder.py | 25 | __all__ = [ | CODE |
| LOW | …/python/tools/model_utils/core/_op_building_context.py | 23 | __all__ = ["OpBuildingContext"] | CODE |
| LOW | litert/python/tools/model_utils/core/dialect_base.py | 27 | __all__ = [ | CODE |
| LOW | litert/python/tools/model_utils/core/pass_base.py | 24 | __all__ = ["ModulePassBase", "RewritePatternPassBase"] | CODE |
| LOW | litert/python/tools/model_utils/core/utils.py | 21 | __all__ = [ | CODE |
| LOW | …ython/tools/model_utils/match/_match_dag/tblgen_def.py | 25 | __all__ = ["registry"] | CODE |
| LOW | litert/python/mlir/__init__.py | 20 | __all__ = [] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tflite/tools/visualize.py | 158 | d.fx = d.fy = null; | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tflite/python/lite.py | 1573 | # We make sure to clear the saved_model_dir as there is some | COMMENT |
| LOW | litert/c/internal/litert_runtime_c_api.h | 42 | // don't forget to also bump the ABI version number. | COMMENT |