Repository Analysis

google-ai-edge/LiteRT

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

9.2 Low AI signal View on GitHub

Analysis Overview

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).

9.2
Adjusted Score
9.2
Raw Score
100%
Time Factor
2026-07-14
Last Push
3.0K
Stars
C++
Language
674.6K
Lines of Code
4.0K
Files
4.7K
Pattern Hits
2026-07-14
Scan Date
0.03
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

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.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

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.

CRITICAL 31HIGH 100MEDIUM 430LOW 4109

Directory Score Breakdown

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.

Pattern Findings

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.

Over-Commented Block3029 hits · 2936 pts
SeverityFileLineSnippetContext
LOWconfigure.py1# Copyright 2024 The AI Edge LiteRT Authors.COMMENT
LOWPackage.swift1// swift-tools-version: 5.9COMMENT
LOWtflite/generate-pc.sh1#!/usr/bin/env bashCOMMENT
LOWtflite/version.h21// semantic versioning https://semver.org/COMMENT
LOWtflite/version.h41 TF_PATCH_VERSION) TF_VERSION_SUFFIX)COMMENT
LOWtflite/portable_type_to_tflitetype.h21COMMENT
LOWtflite/CMakeLists.txt1#COMMENT
LOWtflite/minimal_logging.h81#define TFLITE_LOG TFLITE_LOG_PRODCOMMENT
LOWtflite/string_util.h21// [(N+1)*4, (N+1)*4+3] 4 bytes: length of the whole char buffer.COMMENT
LOWtflite/arena_planner.h21#include <unordered_map>COMMENT
LOWtflite/arena_planner.h41// share some of the buffer if a tensor B is to be allocated after anotherCOMMENT
LOWtflite/arena_planner.h81 int output_id, bool tensor_changed);COMMENT
LOWtflite/memory_planner.h41 // ExecuteAllocations() is called.COMMENT
LOWtflite/namespace.h21// To avoid potential violation of the C++ "one definition rule" (ODR) forCOMMENT
LOWtflite/interpreter_options.h41 /// inference speed.COMMENT
LOWtflite/interpreter_options.h121 // Controls to update Tensor names with Signature input & output names.COMMENT
LOWtflite/simple_memory_arena.h121COMMENT
LOWtflite/simple_memory_arena.h161 TfLiteStatus ReleaseBuffer();COMMENT
LOWtflite/external_cpu_backend_context.h41};COMMENT
LOWtflite/external_cpu_backend_context.h61//COMMENT
LOWtflite/mutable_op_resolver.h81 /// Registers the specified `version` of the specified builtin operator `op`.COMMENT
LOWtflite/mutable_op_resolver.h121COMMENT
LOWtflite/util.h21#ifndef TENSORFLOW_LITE_UTIL_H_COMMENT
LOWtflite/util.h41COMMENT
LOWtflite/util.h101// Multiply two sizes and return true if overflow occurred;COMMENT
LOWtflite/simple_planner.h21#include <cstdlib>COMMENT
LOWtflite/graph_info.h101// Partitions a list of node indices `nodes_to_partition` into node subsets.COMMENT
LOWtflite/graph_info.h121// dependencies) can be imposed on the ultimate execution order of the graphCOMMENT
LOWtflite/graph_info.h141// 0 --> 1 --> 2* --> 3* ==> 4 --> 5COMMENT
LOWtflite/test_util.h121COMMENT
LOWtflite/testdata/src/intermediate_tensor_output.py1# Copyright 2023 The TensorFlow Authors. All Rights Reserved.COMMENT
LOWtflite/acceleration/configuration/gpu_plugin.h21#if defined(__ANDROID__) || defined(CL_DELEGATE_NO_GL)COMMENT
LOW…n/configuration/prev_is_different_than_current_test.sh1#!/bin/bashCOMMENT
LOWtflite/acceleration/configuration/c/nnapi_plugin.h21/// For documentation, seeCOMMENT
LOWtflite/kernels/dequantize.h21COMMENT
LOWtflite/kernels/cpu_backend_context.h101 // stores both a gemmlowp context and a ruy context.COMMENT
LOWtflite/kernels/cpu_backend_gemm.h21#include "ruy/profiler/instrumentation.h" // from @ruyCOMMENT
LOWtflite/kernels/cpu_backend_gemm.h41//COMMENT
LOWtflite/kernels/CMakeLists.txt1#COMMENT
LOWtflite/kernels/kernel_util.h21#include <initializer_list>COMMENT
LOWtflite/kernels/kernel_util.h41// Note: You must check if result is not null:COMMENT
LOWtflite/kernels/kernel_util.h61COMMENT
LOWtflite/kernels/kernel_util.h81COMMENT
LOWtflite/kernels/kernel_util.h101// Deprecated. GetInput has the same functionality.COMMENT
LOWtflite/kernels/kernel_util.h121// GetTemporarySafe(context, node, kMyTensorIdx,COMMENT
LOWtflite/kernels/subgraph_test_util.h21#define TENSORFLOW_LITE_KERNELS_SUBGRAPH_TEST_UTIL_H_COMMENT
LOWtflite/kernels/subgraph_test_util.h161 // Build a subgraph with a single If op.COMMENT
LOWtflite/kernels/subgraph_test_util.h181 // 2 inputs:COMMENT
LOWtflite/kernels/subgraph_test_util.h261COMMENT
LOWtflite/kernels/control_flow_common.h21#include "tflite/core/subgraph.h"COMMENT
LOWtflite/kernels/transpose_test_utils.h21#include "absl/algorithm/container.h"COMMENT
LOWtflite/kernels/cpu_backend_gemm_params.h41}COMMENT
LOWtflite/kernels/cpu_backend_gemm_params.h61 // When the data pointed to by this matrix is constant data, so that it isCOMMENT
LOWtflite/kernels/cpu_backend_gemm_params.h81//COMMENT
LOWtflite/kernels/cpu_backend_gemm_params.h101// the MatrixParams that it takes. Compare to ruy::Spec.COMMENT
LOWtflite/kernels/cpu_backend_gemm_params.h121 // to the destination type.COMMENT
LOWtflite/kernels/cpu_backend_gemm_custom_gemv.h21// (row-vector) * (matrix). So that is what we focus on optimizing here.COMMENT
LOWtflite/kernels/cpu_backend_gemm_custom_gemv.h41#include "ruy/profiler/instrumentation.h" // from @ruyCOMMENT
LOWtflite/kernels/cpu_backend_gemm_custom_gemv.h61 // destination column-vector) that the kernel processes at a time.COMMENT
LOWtflite/kernels/cpu_backend_gemm_custom_gemv.h341 k += kCacheLineSize / sizeof(RhsScalar)) {COMMENT
2969 more matches not shown…
Decorative Section Separators363 hits · 1116 pts
SeverityFileLineSnippetContext
MEDIUMconfigure.py14# ==============================================================================COMMENT
MEDIUMtflite/generate-pc.sh14# ==============================================================================COMMENT
MEDIUMtflite/testdata/src/intermediate_tensor_output.py14# ==============================================================================COMMENT
MEDIUMtflite/kernels/variants/py/end_to_end_test.py14# ==============================================================================COMMENT
MEDIUM…eleration/compatibility/convert_binary_to_cc_source.py14# ==============================================================================COMMENT
MEDIUM…l/acceleration/mini_benchmark/copy_associated_files.py14# ==============================================================================COMMENT
MEDIUM…celeration/mini_benchmark/metrics/blazeface_metrics.py14# ==============================================================================COMMENT
MEDIUM…ental/acceleration/mini_benchmark/metrics/mobilenet.py14# ==============================================================================COMMENT
MEDIUM…l/acceleration/mini_benchmark/metrics/kl_divergence.py14# ==============================================================================COMMENT
MEDIUM…end/python/kernel_tests/audio_microfrontend_op_test.py14# ==============================================================================COMMENT
MEDIUM…tal/microfrontend/python/ops/audio_microfrontend_op.py14# ==============================================================================COMMENT
MEDIUMtflite/g3doc/_book.yaml14# ==============================================================================COMMENT
MEDIUMtflite/g3doc/tools/build_java_api_docs.py14# ==============================================================================COMMENT
MEDIUMtflite/g3doc/tools/build_py_api_docs.py14# ==============================================================================COMMENT
MEDIUMtflite/g3doc/models/_index.yaml14# ==============================================================================COMMENT
MEDIUM…e/g3doc/api_docs/python/tflite_support/_redirects.yaml14# ==============================================================================COMMENT
MEDIUMtflite/g3doc/api_docs/python/tflite_support/_toc.yaml14# ==============================================================================COMMENT
MEDIUM…ite/g3doc/api_docs/python/tflite_model_maker/_toc.yaml14# ==============================================================================COMMENT
MEDIUMtflite/g3doc/api_docs/python/tf/lite/_toc.yaml14# ==============================================================================COMMENT
MEDIUMtflite/g3doc/api_docs/java/_toc.yaml14# ==============================================================================COMMENT
MEDIUMtflite/g3doc/api_docs/swift/_toc.yaml14# ==============================================================================COMMENT
MEDIUMtflite/g3doc/api_docs/cc/_doxygen.yaml14# ==============================================================================COMMENT
MEDIUMtflite/g3doc/api_docs/c/_doxygen.yaml14# ==============================================================================COMMENT
MEDIUMtflite/tools/convert_image_to_csv.py14# ==============================================================================COMMENT
MEDIUMtflite/tools/build_aar.sh15# ==============================================================================COMMENT
MEDIUMtflite/tools/test_utils.py14# ==============================================================================COMMENT
MEDIUMtflite/tools/convert_image_to_csv_test.py14# ==============================================================================COMMENT
MEDIUMtflite/tools/flatbuffer_utils.py14# ==============================================================================COMMENT
MEDIUMtflite/tools/randomize_weights.py14# ==============================================================================COMMENT
MEDIUMtflite/tools/zip_files.py14# ==============================================================================COMMENT
MEDIUMtflite/tools/strip_strings.py14# ==============================================================================COMMENT
MEDIUMtflite/tools/visualize.py15# ==============================================================================COMMENT
MEDIUMtflite/tools/build_aar_with_docker.sh15# ==============================================================================COMMENT
MEDIUMtflite/tools/flatbuffer_utils_test.py14# ==============================================================================COMMENT
MEDIUMtflite/tools/reverse_xxd_dump_from_cc.py14# ==============================================================================COMMENT
MEDIUMtflite/tools/visualize_test.py14# ==============================================================================COMMENT
MEDIUMtflite/tools/benchmark/ios/build_benchmark_framework.sh15# ==============================================================================COMMENT
MEDIUM…ize/sparsity/format_converter_wrapper_pybind11_test.py14# =============================================================================COMMENT
MEDIUM…ols/optimize/python/modify_model_interface_lib_test.py14# ==============================================================================COMMENT
MEDIUM…te/tools/optimize/python/modify_model_interface_lib.py14# ==============================================================================COMMENT
MEDIUM…ls/optimize/python/modify_model_interface_constants.py14# ==============================================================================COMMENT
MEDIUMtflite/tools/optimize/python/modify_model_interface.py14# ==============================================================================COMMENT
MEDIUMtflite/tools/optimize/debugging/python/debugger_test.py14# ==============================================================================COMMENT
MEDIUMtflite/tools/optimize/debugging/python/debugger.py14# ==============================================================================COMMENT
MEDIUMtflite/tools/cmake/download_toolchains.sh15# ==============================================================================COMMENT
MEDIUMtflite/tools/signature/signature_def_utils_test.py14# ==============================================================================COMMENT
MEDIUMtflite/tools/signature/signature_def_utils.py14# ==============================================================================COMMENT
MEDIUMtflite/tools/pip_package/setup_with_binary.py14# ==============================================================================COMMENT
MEDIUMtflite/tools/pip_package/update_sources.sh15# ==============================================================================COMMENT
MEDIUM…lite/tools/pip_package/build_pip_package_with_cmake.sh15# ==============================================================================COMMENT
MEDIUM…lite/tools/pip_package/build_pip_package_with_bazel.sh15# ==============================================================================COMMENT
MEDIUM…net_image_classification/generate_validation_labels.py14# ==============================================================================COMMENT
MEDIUM…ols/evaluation/tasks/ios/build_evaluation_framework.sh15# ==============================================================================COMMENT
MEDIUM…tasks/coco_object_detection/preprocess_coco_minival.py14# ==============================================================================COMMENT
MEDIUMtflite/converter/experimental/tac/tac.py14# ==============================================================================COMMENT
MEDIUMtflite/converter/python/wrap_converter.py14# ==============================================================================COMMENT
MEDIUMtflite/converter/tests/debuginfo/saved_model_error.py14# ==============================================================================COMMENT
MEDIUM…e/converter/tests/debuginfo/concrete_function_error.py14# ==============================================================================COMMENT
MEDIUMtflite/python/convert_saved_model.py14# ==============================================================================COMMENT
MEDIUMtflite/python/convert_file_to_c_source_test.sh15# ==============================================================================COMMENT
303 more matches not shown…
Hyper-Verbose Identifiers395 hits · 415 pts
SeverityFileLineSnippetContext
LOWconfigure.py122def write_action_env_to_bazelrc(var_name, var):CODE
LOWconfigure.py126def write_repo_env_to_bazelrc(config_name, var_name, var):CODE
LOWconfigure.py263def reset_tf_configure_bazelrc():CODE
LOWconfigure.py543def get_from_env_or_user_or_default(CODE
LOWconfigure.py569def prompt_loop_or_load_from_env(CODE
LOWconfigure.py639def set_clang_cuda_compiler_path(environ_cp):CODE
LOWconfigure.py830def set_gcc_host_compiler_path(environ_cp):CODE
LOWconfigure.py916def set_clang_compiler_path_win(environ_cp):CODE
LOWconfigure.py992def disable_clang_offsetof_extension(clang_version):CODE
LOWconfigure.py997def set_hermetic_cuda_version(environ_cp):CODE
LOWconfigure.py1013def set_hermetic_cudnn_version(environ_cp):CODE
LOWconfigure.py1029def set_hermetic_cuda_compute_capabilities(environ_cp):CODE
LOWconfigure.py1136def system_specific_test_config(environ_cp):CODE
LOWtflite/kernels/variants/py/end_to_end_test.py36 def _get_interpreter_from_c_func(self, func):CODE
LOWtflite/kernels/variants/py/end_to_end_test.py193 def test_from_pop_back_unrolled(CODE
LOWtflite/kernels/variants/py/end_to_end_test.py248 def test_empty_tensorlist_set_stack(self):CODE
LOWtflite/kernels/variants/py/end_to_end_test.py274 def test_reserve_element_shape(self, element_shape):CODE
LOWtflite/kernels/variants/py/end_to_end_test.py398 def test_reserve_set_single_item_addn(CODE
LOWtflite/kernels/variants/py/end_to_end_test.py435 def test_reserve_set_both_item_addn(CODE
LOW…eleration/compatibility/convert_binary_to_cc_source.py30def _convert_bytes_to_cc_source(data,CODE
LOWtflite/tools/test_utils.py26def build_mock_flatbuffer_model():CODE
LOWtflite/tools/test_utils.py273def build_operator_with_options() -> schema_fb.Operator:CODE
LOWtflite/tools/test_utils.py289def load_model_from_flatbuffer(flatbuffer_model):CODE
LOWtflite/tools/flatbuffer_utils.py39def convert_bytearray_to_object(model_bytearray):CODE
LOWtflite/tools/flatbuffer_utils.py65def read_model_from_bytearray(model_bytearray):CODE
LOWtflite/tools/flatbuffer_utils.py97def read_model_with_mutable_tensors(input_tflite_file):CODE
LOWtflite/tools/flatbuffer_utils.py119def convert_object_to_bytearray(model_object, extra_buffer=b''):CODE
LOWtflite/tools/flatbuffer_utils.py352def byte_swap_tflite_model_obj(model, from_endiness, to_endiness):CODE
LOWtflite/tools/flatbuffer_utils_test.py278 def test_get_options_not_schema_type_raises(self):CODE
LOWtflite/tools/flatbuffer_utils_test.py282 def test_get_options_not_object_type_raises(self):CODE
LOWtflite/tools/flatbuffer_utils_test.py286 def test_get_options_op_type_does_not_match(self):CODE
LOW…ols/optimize/python/modify_model_interface_lib_test.py27def build_tflite_model_with_full_integer_quantization(CODE
LOW…ols/optimize/python/modify_model_interface_lib_test.py41 def representative_dataset_gen():CODE
LOWtflite/tools/optimize/debugging/python/debugger_test.py258 def test_layer_direct_compare_metrics(self, quantized_io):CODE
LOWtflite/tools/optimize/debugging/python/debugger_test.py348 def test_denylisted_ops_from_option_setter(self, quantized_io):CODE
LOWtflite/tools/optimize/debugging/python/debugger_test.py373 def test_denylisted_ops_from_option_constructor(self, quantized_io):CODE
LOWtflite/tools/optimize/debugging/python/debugger_test.py392 def test_denylisted_nodes_from_option_setter(self, quantized_io):CODE
LOWtflite/tools/optimize/debugging/python/debugger_test.py413 def test_denylisted_nodes_from_option_constructor(self, quantized_io):CODE
LOWtflite/tools/optimize/debugging/python/debugger.py247 def get_nondebug_quantized_model(self) -> bytes:CODE
LOWtflite/tools/optimize/debugging/python/debugger.py261 def get_debug_quantized_model(self) -> bytes:CODE
LOWtflite/tools/optimize/debugging/python/debugger.py306 def _set_converter_options_for_float(CODE
LOWtflite/tools/optimize/debugging/python/debugger.py313 def _set_converter_options_for_calibration(CODE
LOWtflite/tools/optimize/debugging/python/debugger.py332 def _collect_layer_statistics(self) -> Dict[str, Dict[str, float]]:CODE
LOWtflite/tools/optimize/debugging/python/debugger.py386 def _collect_model_statistics(self) -> Dict[str, float]:CODE
LOWtflite/tools/optimize/debugging/python/debugger.py490 def _get_numeric_verify_tensor_details(self) -> List[str]:CODE
LOWtflite/tools/optimize/debugging/python/debugger.py506 def _get_operand_name_and_index(self,CODE
LOW…net_image_classification/generate_validation_labels.py54def _generate_validation_labels(ilsvrc_dir, output_file):CODE
LOW…tasks/coco_object_detection/preprocess_coco_minival.py40def _get_ground_truth_detections(instances_file,CODE
LOWtflite/converter/python/wrap_converter.py40def wrapped_experimental_mlir_quantize(CODE
LOWtflite/converter/python/wrap_converter.py73def wrapped_experimental_mlir_sparsify(input_data_str):CODE
LOWtflite/converter/python/wrap_converter.py78def wrapped_register_custom_opdefs(custom_opdefs_list):CODE
LOWtflite/converter/python/wrap_converter.py83def wrapped_retrieve_collected_errors():CODE
LOWtflite/converter/python/wrap_converter.py88def wrapped_flat_buffer_file_to_mlir(model, input_is_filepath):CODE
LOWtflite/python/schema_util.py20def get_builtin_code_from_operator_code(opcode):CODE
LOWtflite/python/util.py568def get_dequantize_opcode_idx(model):CODE
LOWtflite/python/util.py578def _update_signature_def_tensors(tensor_maps, map_old_to_new_tensors):CODE
LOWtflite/python/util.py586def _remove_tensors_from_model(model, remove_tensors_idxs):CODE
LOWtflite/python/util.py84def _convert_tflite_enum_type_to_tf_type(tflite_enum_type):CODE
LOWtflite/python/util.py130def get_tensors_from_tensor_names(graph, tensor_names):CODE
LOWtflite/python/util.py262def _convert_op_hints_if_present(sess, graph_def, output_tensors,CODE
335 more matches not shown…
Hallucination Indicators31 hits · 380 pts
SeverityFileLineSnippetContext
CRITICALtflite/g3doc/r1/convert/python_api.md9* `tf.compat.v1.lite.TFLiteConverter.from_saved_model()`: Converts aCOMMENT
CRITICALtflite/g3doc/r1/convert/python_api.md11* `tf.compat.v1.lite.TFLiteConverter.from_keras_model_file()`: Converts aCOMMENT
CRITICALtflite/g3doc/r1/convert/python_api.md13* `tf.compat.v1.lite.TFLiteConverter.from_session()`: Converts a GraphDef fromCOMMENT
CRITICALtflite/g3doc/r1/convert/python_api.md15* `tf.compat.v1.lite.TFLiteConverter.from_frozen_graph()`: Converts a FrozenCOMMENT
CRITICALtflite/g3doc/r1/convert/python_api.md37converter = tf.compat.v1.lite.TFLiteConverter.from_saved_model(saved_model_dir)CODE
CRITICALtflite/g3doc/r1/convert/python_api.md55converter = tf.compat.v1.lite.TFLiteConverter.from_keras_model_file('keras_model.h5')CODE
CRITICALtflite/g3doc/r1/convert/python_api.md90converter = tf.compat.v1.lite.TFLiteConverter.from_keras_model_file(keras_file)CODE
CRITICALtflite/g3doc/r1/convert/python_api.md115 converter = tf.compat.v1.lite.TFLiteConverter.from_session(sess, [img], [out])CODE
CRITICALtflite/g3doc/r1/convert/python_api.md137converter = tf.compat.v1.lite.TFLiteConverter.from_frozen_graph(CODE
CRITICALtflite/g3doc/r1/convert/python_api.md200converter = tf.compat.v1.lite.TFLiteConverter.from_frozen_graph(CODE
CRITICALtflite/g3doc/api_docs/c/group/tflite.html14 <li>the <code>com.google.android.gms.tflite.java.TfLiteNative.initialize(Context context)</code> or <code>com.googCODE
CRITICALtflite/python/lite.py3097 session. converter = tf.compat.v1.lite.TFLiteConverter.from_session( sess,STRING
CRITICALtflite/python/lite.py3101 tf.compat.v1.lite.TFLiteConverter.from_frozen_graph( graph_def_file,STRING
CRITICALtflite/python/lite.py3105 tf.compat.v1.lite.TFLiteConverter.from_saved_model( saved_model_dir)STRING
CRITICALtflite/python/lite.py3108 tf.compat.v1.lite.TFLiteConverter.from_keras_model_file( keras_model)STRING
CRITICALtflite/python/lite_v2_test.py1882 tensor_info_x = tf.compat.v1.saved_model.utils.build_tensor_info(x)CODE
CRITICALtflite/python/lite_v2_test.py1883 tensor_info_y = tf.compat.v1.saved_model.utils.build_tensor_info(y)CODE
CRITICALtflite/python/lite_v2_test.py1887 'serving_default': tf.compat.v1.saved_model.signature_def_utils.build_signature_def(CODE
CRITICALtflite/python/lite_v2_test.py1973 tensor_info_x = tf.compat.v1.saved_model.utils.build_tensor_info(x)CODE
CRITICALtflite/python/lite_v2_test.py1974 tensor_info_y = tf.compat.v1.saved_model.utils.build_tensor_info(y)CODE
CRITICALtflite/python/lite_v2_test.py1978 'serving_default': tf.compat.v1.saved_model.signature_def_utils.build_signature_def(CODE
CRITICALtflite/python/lite_v2_test.py1900 builder = tf.compat.v1.saved_model.builder.SavedModelBuilder(CODE
CRITICALtflite/python/lite_v2_test.py1990 builder = tf.compat.v1.saved_model.builder.SavedModelBuilder(CODE
CRITICALtflite/testing/zip_test_utils.py356 tensor_info = tf.compat.v1.saved_model.utils.build_tensor_info(tensor)CODE
CRITICALtflite/testing/zip_test_utils.py598 tf.compat.v1.saved_model.signature_def_utils.build_signature_def(CODE
CRITICALtflite/testing/zip_test_utils.py605 builder = tf.compat.v1.saved_model.builder.SavedModelBuilder(CODE
CRITICALtflite/testing/op_tests/dynamic_rnn.py49 lstm_cell = tf.compat.v1.nn.rnn_cell.BasicLSTMCell(CODE
CRITICALtflite/testing/op_tests/unfused_gru.py39 cell_fw = tf.compat.v1.nn.rnn_cell.GRUCell(parameters["units"])CODE
CRITICALtflite/testing/op_tests/unfused_gru.py40 cell_bw = tf.compat.v1.nn.rnn_cell.GRUCell(parameters["units"])CODE
CRITICALtflite/testing/op_tests/lstm.py57 lstm_cell = tf.compat.v1.nn.rnn_cell.BasicLSTMCell(CODE
CRITICAL…te/testing/op_tests/static_rnn_with_control_flow_v2.py54 lstm_cell = tf.compat.v1.nn.rnn_cell.BasicLSTMCell(CODE
Docstring Block Structure70 hits · 350 pts
SeverityFileLineSnippetContext
HIGHconfigure.py292Get boolean input from user. If var_name is not set in env, ask user to enable query_item or not. If the response iSTRING
HIGHconfigure.py580Loop over user prompts for an ENV param until receiving a valid response. For the env param var_name, read from the eSTRING
HIGH…tal/microfrontend/python/ops/audio_microfrontend_op.py51Audio Microfrontend Op. This Op converts a sequence of audio data into one or more feature vectors containing filteSTRING
HIGHtflite/tools/flatbuffer_utils.py46Reads a tflite model as a python object. Args: input_tflite_file: Full path name to the input tflite file RaisSTRING
HIGHtflite/tools/flatbuffer_utils.py98Reads a tflite model as a python object with mutable tensors. Similar to read_model() with the addition that the retuSTRING
HIGHtflite/tools/flatbuffer_utils.py266Converts xxd output C++ source file to bytes (immutable). Args: input_cc_file: Full path name to th C++ source fiSTRING
HIGHtflite/tools/flatbuffer_utils.py305Converts xxd output C++ source file to object. Args: input_cc_file: Full path name to th C++ source file dumped bSTRING
HIGHtflite/tools/flatbuffer_utils.py465Get the options of an operator as the specified type. Requested type must be an object-api type (ends in 'T'). ArgSTRING
HIGHtflite/tools/visualize.py461Returns html description with the given tflite model. Args: tflite_input: TFLite flatbuffer model path or model oSTRING
HIGH…te/tools/optimize/python/modify_model_interface_lib.py23Converts a tflite type to it's integer representation. Args: dtype: tf.DType representing the inference type. STRING
HIGHtflite/tools/optimize/debugging/python/debugger.py138Runs the TFLite debugging model with given debug options. Args: quant_debug_model_path: Path to the quantizedSTRING
HIGHtflite/tools/signature/signature_def_utils.py25Sets SignatureDefs to the Metadata of a TfLite flatbuffer buffer. Args: tflite_model: Binary TFLite model (bytes STRING
HIGHtflite/tools/signature/signature_def_utils.py51Get SignatureDef dict from the Metadata of a TfLite flatbuffer buffer. Args: tflite_model: TFLite model buffer toSTRING
HIGHtflite/tools/signature/signature_def_utils.py78Clears SignatureDefs from the Metadata of a TfLite flatbuffer buffer. Args: tflite_model: TFLite model buffer to STRING
HIGHtflite/converter/experimental/tac/tac.py21Run target aware conversion for the given tflite model file. Args: model_path: Path to the tflite model file. STRING
HIGHtflite/python/convert_saved_model.py29Validate saved_model and extract MetaGraphDef. Args: saved_model_dir: saved_model path to convert. tag_set: SSTRING
HIGHtflite/python/convert_saved_model.py46Get the signature def from meta_graph with given signature_key. Args: meta_graph: meta_graph_def. signature_kSTRING
HIGHtflite/python/convert_saved_model.py92Gets the tensors associated with the tensor names. Either signature_def_tensor_names or user_tensor_names should be pSTRING
HIGHtflite/python/convert_saved_model.py136Converts a SavedModel to a frozen graph. Args: saved_model_dir: SavedModel directory to convert. input_arraysSTRING
HIGHtflite/python/util.py85Converts tflite enum type (eg: 0) to tf type (eg: tf.float32). Args: tflite_enum_type: tflite enum type (eg: 0, tSTRING
HIGHtflite/python/util.py131Gets the Tensors associated with the `tensor_names` in the provided graph. Args: graph: TensorFlow Graph. tenSTRING
HIGHtflite/python/util.py944Modify the input/output type of a tflite model. Args: model: A tflite model. inference_input_type: tf.DType rSTRING
HIGHtflite/python/op_hint.py200Return the next unused argument index in order or use an override. Args: index_override: An index to use STRING
HIGHtflite/python/op_hint.py226Return a wrapped tensor of an input tensor as an argument. Args: arg: A TensorFlow tensor that should be STRING
HIGHtflite/python/op_hint.py480This adds the node(s) to out_graphdef and returns the input node name. Args: out_graphdef: A graphdef that isSTRING
HIGHtflite/python/op_hint.py496Add node(s) to graph representing output operands and returns type. Args: fused_op_name: name of the fused opSTRING
HIGHtflite/python/op_hint.py1246Find all Ophints output nodes in the graph. This is used to get all the output nodes those are ophinted, it is importSTRING
HIGHtflite/python/op_hint.py1302Converts a graphdef with LiteOp hints into stub operations. This is used to prepare for toco conversion of complex inSTRING
HIGHtflite/python/convert.py67Convert tensor type from tf type to tflite type. Args: tf_type: TensorFlow type. usage: Text describing the rSTRING
HIGHtflite/python/convert.py111Convert inference type from tf type to tflite type. Args: tf_type: TensorFlow type. usage: Text describing thSTRING
HIGHtflite/python/convert.py300Converts `input_data_str` to a TFLite model. Args: model_flags: Proto describing model properties, see `model_flaSTRING
HIGHtflite/python/convert.py454Builds protocol buffer describing a conversion of a model. Typically this is to convert from TensorFlow GraphDef to TSTRING
HIGHtflite/python/convert.py742Convert a frozen GraphDef that can't be loaded in TF. Conversion can be customized by providing arguments that are foSTRING
HIGHtflite/python/convert.py808Convert a frozen GraphDef model using the TF Lite converter. Conversion can be customized by providing arguments thatSTRING
HIGHtflite/python/convert.py938Convert a TensorFlow GraphDef to TFLite. This function is deprecated. Please use `tf.lite.TFLiteConverter` API insteaSTRING
HIGHtflite/python/convert_phase.py166The decorator to identify converter component and subcomponent. Args: component: Converter component name. suSTRING
HIGHtflite/python/interpreter.py139Returns loaded Delegate object. Example usage: ``` import tensorflow as tf try: delegate = tf.lite.experiSTRING
HIGHtflite/python/interpreter.py637Gets tensor details. Args: tensor_index: Tensor index of tensor to query. subgraph_index: Index of the STRING
HIGHtflite/python/interpreter.py881Gets callable for inference of specific SignatureDef. Example usage, ``` interpreter = tf.lite.Interpreter(STRING
HIGHtflite/python/tflite_convert.py52Converts the inference type to the value of the constant. Args: value: str representing the inference type. fSTRING
HIGHtflite/python/tflite_convert.py107Makes a TFLiteConverter object based on the flags provided. Args: flags: argparse.Namespace object containing TFLSTRING
HIGHtflite/python/lite.py1460Converts a TensorFlow GraphDef based on instance variables. Args: graph_def: Frozen TensorFlow GraphDef. STRING
HIGHtflite/python/lite.py2183Creates a TFLiteConverter object from ConcreteFunctions. Args: funcs: List of TensorFlow ConcreteFunctions. TSTRING
HIGHtflite/python/lite.py2225Creates a TFLiteConverter object from a SavedModel directory. Args: saved_model_dir: SavedModel directory to STRING
HIGHtflite/python/lite.py3182Creates a TFLiteConverter class from a file containing a frozen GraphDef. Args: graph_def_file: Full filepathSTRING
HIGHtflite/python/tflite_keras_util.py193Trace the model call to create a tf.function for exporting a Keras model. Args: model: A Keras model. input_sSTRING
HIGHtflite/python/kernel_tests/signal/test_util.py42Evaluates the provided tf.lite model with the given input ndarrays. Args: tflite_model: bytes. The serialized tf.STRING
HIGHtflite/ios/extract_object_files.py130Extracts the next available file from the archive. Reads the next available file header section and yields its filenaSTRING
HIGHtflite/testing/zip_test_utils.py260Given a dictionary of `examples`, write a text format representation. The file format is protocol-buffer-like, even tSTRING
HIGHtflite/testing/zip_test_utils.py375Helper to make a zip file of a bunch of TensorFlow models. This does a cartesian product of the dictionary of test_paSTRING
HIGHtflite/schema/upgrade_schema.py103Read a tflite model assuming the given flatbuffer schema. If `input_file` is in bin, then we must use flatc to convSTRING
HIGHtflite/schema/upgrade_schema.py229Remap 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__.py30Returns 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.py77Get 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.py415Generate the ctx.bin file from a given model. Args: model_path (Path): The path to the model. soc_model (STRING
HIGHlitert/python/tools/flatbuffer_utils.py177Reads a tflite model as a python object. Args: input_tflite_file: Full path name to the input tflite file. RaiSTRING
HIGHlitert/python/tools/flatbuffer_utils.py314Reads a tflite model as a python object with mutable tensors. Similar to read_model() with the addition that the retuSTRING
HIGHlitert/python/tools/flatbuffer_utils.py486Converts xxd output C++ source file to bytes (immutable). Args: input_cc_file: Full path name to th C++ source fiSTRING
HIGHlitert/python/tools/flatbuffer_utils.py525Converts xxd output C++ source file to object. Args: input_cc_file: Full path name to th C++ source file dumped bSTRING
HIGHlitert/python/tools/flatbuffer_utils.py698Get the options of an operator as the specified type. Requested type must be an object-api type (ends in 'T'). ArgSTRING
10 more matches not shown…
Unused Imports391 hits · 259 pts
SeverityFileLineSnippetContext
LOWtflite/converter/python/wrap_converter.py18CODE
LOWtflite/python/wrap_toco.py18CODE
LOWtflite/python/lite.py33CODE
LOWtflite/python/lite.py36CODE
LOWtflite/python/lite.py37CODE
LOWtflite/python/lite.py45CODE
LOWtflite/python/lite.py50CODE
LOWtflite/python/lite.py55CODE
LOWtflite/python/lite.py56CODE
LOWtflite/python/lite.py57CODE
LOWtflite/python/lite.py59CODE
LOWtflite/python/lite.py61CODE
LOWtflite/python/lite.py83CODE
LOWtflite/python/lite.py84CODE
LOWtflite/python/metrics/wrapper/metrics_wrapper.py19CODE
LOWtflite/testing/generate_examples_lib.py41CODE
LOWtflite/testing/generate_examples_lib.py42CODE
LOWtflite/testing/generate_examples_lib.py43CODE
LOWtflite/testing/generate_examples_lib.py44CODE
LOWtflite/testing/generate_examples_lib.py45CODE
LOWtflite/testing/generate_examples_lib.py46CODE
LOWtflite/testing/generate_examples_lib.py47CODE
LOWtflite/testing/generate_examples_lib.py47CODE
LOWtflite/testing/generate_examples_lib.py47CODE
LOWtflite/testing/generate_examples_lib.py47CODE
LOWtflite/testing/generate_examples_lib.py47CODE
LOWtflite/testing/generate_examples_lib.py47CODE
LOWtflite/testing/generate_examples_lib.py47CODE
LOWtflite/testing/generate_examples_lib.py47CODE
LOWtflite/testing/generate_examples_lib.py48CODE
LOWtflite/testing/generate_examples_lib.py49CODE
LOWtflite/testing/generate_examples_lib.py50CODE
LOWtflite/testing/generate_examples_lib.py51CODE
LOWtflite/testing/generate_examples_lib.py52CODE
LOWtflite/testing/generate_examples_lib.py53CODE
LOWtflite/testing/generate_examples_lib.py54CODE
LOWtflite/testing/generate_examples_lib.py55CODE
LOWtflite/testing/generate_examples_lib.py56CODE
LOWtflite/testing/generate_examples_lib.py57CODE
LOWtflite/testing/generate_examples_lib.py58CODE
LOWtflite/testing/generate_examples_lib.py59CODE
LOWtflite/testing/generate_examples_lib.py60CODE
LOWtflite/testing/generate_examples_lib.py61CODE
LOWtflite/testing/generate_examples_lib.py62CODE
LOWtflite/testing/generate_examples_lib.py63CODE
LOWtflite/testing/generate_examples_lib.py64CODE
LOWtflite/testing/generate_examples_lib.py64CODE
LOWtflite/testing/generate_examples_lib.py64CODE
LOWtflite/testing/generate_examples_lib.py65CODE
LOWtflite/testing/generate_examples_lib.py66CODE
LOWtflite/testing/generate_examples_lib.py67CODE
LOWtflite/testing/generate_examples_lib.py68CODE
LOWtflite/testing/generate_examples_lib.py69CODE
LOWtflite/testing/generate_examples_lib.py71CODE
LOWtflite/testing/generate_examples_lib.py72CODE
LOWtflite/testing/generate_examples_lib.py73CODE
LOWtflite/testing/generate_examples_lib.py74CODE
LOWtflite/testing/generate_examples_lib.py75CODE
LOWtflite/testing/generate_examples_lib.py76CODE
LOWtflite/testing/generate_examples_lib.py76CODE
331 more matches not shown…
Self-Referential Comments51 hits · 166 pts
SeverityFileLineSnippetContext
MEDIUMtflite/tools/visualize.py32 # This file is part of tensorflow package.COMMENT
MEDIUMtflite/tools/visualize.py35 # This file is part of tflite_runtime package.COMMENT
MEDIUMtflite/tools/flatbuffer_utils_test.py34 # Define the initial modelCOMMENT
MEDIUMtflite/tools/flatbuffer_utils_test.py79 # Define the initial modelCOMMENT
MEDIUMtflite/tools/flatbuffer_utils_test.py127 # Define the initial modelCOMMENT
MEDIUMtflite/tools/flatbuffer_utils_test.py167 # Define the initial modelCOMMENT
MEDIUMtflite/tools/flatbuffer_utils_test.py211 # Define the initial modelCOMMENT
MEDIUMtflite/tools/flatbuffer_utils_test.py243 # Define the initial modelCOMMENT
MEDIUM…ols/optimize/python/modify_model_interface_lib_test.py56 # Define the temporary directory and filesCOMMENT
MEDIUM…ols/optimize/python/modify_model_interface_lib_test.py91 # Define the temporary directory and filesCOMMENT
MEDIUM…ols/optimize/python/modify_model_interface_lib_test.py128 # Define the temporary directory and filesCOMMENT
MEDIUMtflite/tools/optimize/debugging/python/debugger_test.py75 # Create a TFLite model with new quantizer and numeric verify ops.COMMENT
MEDIUM…tasks/coco_object_detection/preprocess_coco_minival.py165 # Create an ObjectsSet proto for this file's ground truth.COMMENT
MEDIUMtflite/python/util.py828 # Create a quantize operator, if none existCOMMENT
MEDIUMtflite/python/op_hint.py1022 # Create the functionCOMMENT
MEDIUMtflite/python/convert.py1064 # Create a map of duplicate buffers (same size and same type).COMMENT
MEDIUMtflite/python/analyzer.py22 # This file is part of tensorflow package.COMMENT
MEDIUMtflite/python/analyzer.py27 # This file is part of tflite_runtime package.COMMENT
MEDIUMtflite/python/util_test.py229 # Define a pseudo MNIST dataset (as downloading the dataset on-the-fly causesCOMMENT
MEDIUMtflite/python/interpreter.py28 # This file is part of tensorflow package.COMMENT
MEDIUMtflite/python/interpreter.py33 # This file is part of tflite_runtime package.COMMENT
MEDIUMtflite/python/interpreter.py44# This file is part of the ai_edge_litert package.COMMENT
MEDIUMtflite/python/lite_flex_test.py78 # Create a graph that has one L2Loss op.COMMENT
MEDIUMtflite/python/lite_flex_test.py212 # Create a graph that has one add op.COMMENT
MEDIUMtflite/python/lite_flex_test.py254 # Create a graph that has one double op.COMMENT
MEDIUMtflite/python/lite_v2_test.py1269 # Create a TFLite model with new quantizer.COMMENT
MEDIUMtflite/python/lite_v2_test.py1273 # Create a TFLite model with new quantizer and numeric verify ops.COMMENT
MEDIUMtflite/python/lite_v2_test.py1863 # Create a v1 saved model with hash table initializers.COMMENT
MEDIUMtflite/python/lite_v2_test.py1952 # Create a v1 saved model with mutable hash table.COMMENT
MEDIUMtflite/python/lite_v2_test.py3219 # Create a simple Keras model.COMMENT
MEDIUMtflite/python/lite_v2_test.py3251 # Create a simple Keras model.COMMENT
MEDIUMtflite/python/lite_v2_test.py3292 # Create a simple Keras model.COMMENT
MEDIUMtflite/python/lite_v2_test.py5050 # Create a graph that has one double op.COMMENT
MEDIUMtflite/python/tflite_convert_test.py246 # Create a graph that has one add op.COMMENT
MEDIUMtflite/python/metrics/metrics_nonportable_test.py436 # Create a graph that has one add op.COMMENT
MEDIUMtflite/python/metrics/metrics_portable.py22 # This file is part of tensorflow package.COMMENT
MEDIUMtflite/python/metrics/metrics_portable.py25 # This file is part of tflite_runtime package.COMMENT
MEDIUMtflite/python/optimize/calibrator_test.py248 # Define a simple model to run calibration with.COMMENT
MEDIUMtflite/testing/op_tests/fully_connected_4bit_hybrid.py52 # Create a float filter with no quantization loss.COMMENT
MEDIUMlitert/python/tools/flatbuffer_utils_test.py370 # Define the initial modelCOMMENT
MEDIUMlitert/python/tools/flatbuffer_utils_test.py416 # Define the initial modelCOMMENT
MEDIUMlitert/python/tools/flatbuffer_utils_test.py466 # Define the initial modelCOMMENT
MEDIUMlitert/python/tools/flatbuffer_utils_test.py508 # Define the initial modelCOMMENT
MEDIUMlitert/python/tools/flatbuffer_utils_test.py555 # Define the initial modelCOMMENT
MEDIUMlitert/python/tools/flatbuffer_utils_test.py587 # Define the initial modelCOMMENT
MEDIUMlitert/python/tools/mmap_utils_test.py65 # Create a regular binary file containing the test data.COMMENT
MEDIUMlitert/python/tools/mmap_utils_test.py274 # Create a sliceCOMMENT
MEDIUM…/litert_wrapper/tensor_buffer_wrapper/tensor_buffer.py25 # This file is part of litert package.COMMENT
MEDIUM…/litert_wrapper/tensor_buffer_wrapper/tensor_buffer.py30 # This file is part of ai_edge_litert package.COMMENT
MEDIUM…itert_wrapper/compiled_model_wrapper/compiled_model.py24 # This file is part of litert package.COMMENT
MEDIUM…itert_wrapper/compiled_model_wrapper/compiled_model.py50 # This file is part of ai_edge_litert package.COMMENT
Structural Annotation Overuse97 hits · 150 pts
SeverityFileLineSnippetContext
LOWtflite/CMakeLists.txt19# WARNING: This is an experimental that is subject to change.COMMENT
LOWtflite/kernels/internal/runtime_shape.h204 // NOTE: This function does not handle potential integer overflow. UseCOMMENT
LOWtflite/g3doc/inference_with_metadata/codegen.md164#### Step 1: Import the generated codeCOMMENT
LOWtflite/g3doc/inference_with_metadata/codegen.md176#### Step 2: Update the app's `build.gradle` fileCOMMENT
LOWtflite/g3doc/inference_with_metadata/codegen.md198#### Step 3: Using the modelCOMMENT
LOW…/inference_with_metadata/task_library/text_embedder.md62### Step 1: Install TensorFlow Lite Support Pypi package.COMMENT
LOW…/inference_with_metadata/task_library/text_embedder.md71### Step 2: Using the modelCOMMENT
LOW…ference_with_metadata/task_library/audio_classifier.md46### Step 1: Import Gradle dependency and other settingsCOMMENT
LOW…ference_with_metadata/task_library/audio_classifier.md76### Step 2: Using the modelCOMMENT
LOW…ference_with_metadata/task_library/audio_classifier.md106### Step 1: Install the dependenciesCOMMENT
LOW…ference_with_metadata/task_library/audio_classifier.md129### Step 2: Using the modelCOMMENT
LOW…ference_with_metadata/task_library/audio_classifier.md234### Step 1: Install the pip packageCOMMENT
LOW…ference_with_metadata/task_library/audio_classifier.md250### Step 2: Using the modelCOMMENT
LOW…inference_with_metadata/task_library/image_embedder.md69### Step 1: Install TensorFlow Lite Support Pypi package.COMMENT
LOW…inference_with_metadata/task_library/image_embedder.md78### Step 2: Using the modelCOMMENT
LOW…e_with_metadata/task_library/bert_question_answerer.md31### Step 1: Import Gradle dependency and other settingsCOMMENT
LOW…e_with_metadata/task_library/bert_question_answerer.md60### Step 2: Run inference using the APICOMMENT
LOW…e_with_metadata/task_library/bert_question_answerer.md82### Step 1: Import CocoaPodsCOMMENT
LOW…e_with_metadata/task_library/bert_question_answerer.md93### Step 2: Run inference using the APICOMMENT
LOW…e_with_metadata/task_library/bert_question_answerer.md127### Step 1: Install the pip packageCOMMENT
LOW…e_with_metadata/task_library/bert_question_answerer.md133### Step 2: Using the modelCOMMENT
LOW…nference_with_metadata/task_library/image_segmenter.md43### Step 1: Import Gradle dependency and other settingsCOMMENT
LOW…nference_with_metadata/task_library/image_segmenter.md73### Step 2: Using the modelCOMMENT
LOW…nference_with_metadata/task_library/image_segmenter.md95### Step 1: Install the dependenciesCOMMENT
LOW…nference_with_metadata/task_library/image_segmenter.md118### Step 2: Using the modelCOMMENT
LOW…nference_with_metadata/task_library/image_segmenter.md182### Step 1: Install the pip packageCOMMENT
LOW…nference_with_metadata/task_library/image_segmenter.md188### Step 2: Using the modelCOMMENT
LOW…nference_with_metadata/task_library/object_detector.md52### Step 1: Import Gradle dependency and other settingsCOMMENT
LOW…nference_with_metadata/task_library/object_detector.md82### Step 2: Using the modelCOMMENT
LOW…nference_with_metadata/task_library/object_detector.md105### Step 1: Install the dependenciesCOMMENT
LOW…nference_with_metadata/task_library/object_detector.md128### Step 2: Using the modelCOMMENT
LOW…nference_with_metadata/task_library/object_detector.md190### Step 1: Install the pip packageCOMMENT
LOW…nference_with_metadata/task_library/object_detector.md196### Step 2: Using the modelCOMMENT
LOW…rence_with_metadata/task_library/bert_nl_classifier.md31### Step 1: Import Gradle dependency and other settingsCOMMENT
LOW…rence_with_metadata/task_library/bert_nl_classifier.md60### Step 2: Run inference using the APICOMMENT
LOW…rence_with_metadata/task_library/bert_nl_classifier.md81### Step 1: Import CocoaPodsCOMMENT
LOW…rence_with_metadata/task_library/bert_nl_classifier.md92### Step 2: Run inference using the APICOMMENT
LOW…rence_with_metadata/task_library/bert_nl_classifier.md125### Step 1: Install the pip packageCOMMENT
LOW…rence_with_metadata/task_library/bert_nl_classifier.md131### Step 2: Using the modelCOMMENT
LOW…ference_with_metadata/task_library/image_classifier.md54### Step 1: Import Gradle dependency and other settingsCOMMENT
LOW…ference_with_metadata/task_library/image_classifier.md80### Step 2: Using the modelCOMMENT
LOW…ference_with_metadata/task_library/image_classifier.md103### Step 1: Install the dependenciesCOMMENT
LOW…ference_with_metadata/task_library/image_classifier.md126### Step 2: Using the modelCOMMENT
LOW…ference_with_metadata/task_library/image_classifier.md190### Step 1: Install the pip packageCOMMENT
LOW…ference_with_metadata/task_library/image_classifier.md196### Step 2: Using the modelCOMMENT
LOW…inference_with_metadata/task_library/image_searcher.md52### Step 1: Import Gradle dependency and other settingsCOMMENT
LOW…inference_with_metadata/task_library/image_searcher.md80### Step 2: Using the modelCOMMENT
LOW…inference_with_metadata/task_library/image_searcher.md125### Step 1: Install TensorFlow Lite Support Pypi package.COMMENT
LOW…inference_with_metadata/task_library/image_searcher.md134### Step 2: Using the modelCOMMENT
LOW…/inference_with_metadata/task_library/nl_classifier.md36### Step 1: Import Gradle dependency and other settingsCOMMENT
LOW…/inference_with_metadata/task_library/nl_classifier.md67### Step 2: Run inference using the APICOMMENT
LOW…/inference_with_metadata/task_library/nl_classifier.md90### Step 1: Import CocoaPodsCOMMENT
LOW…/inference_with_metadata/task_library/nl_classifier.md101### Step 2: Run inference using the APICOMMENT
LOW…/inference_with_metadata/task_library/nl_classifier.md138### Step 1: Install the pip packageCOMMENT
LOW…/inference_with_metadata/task_library/nl_classifier.md144### Step 2: Using the modelCOMMENT
LOW…/inference_with_metadata/task_library/text_searcher.md60### Step 1: Import Gradle dependency and other settingsCOMMENT
LOW…/inference_with_metadata/task_library/text_searcher.md88### Step 2: Using the modelCOMMENT
LOW…/inference_with_metadata/task_library/text_searcher.md128### Step 1: Install TensorFlow Lite Support Pypi package.COMMENT
LOW…/inference_with_metadata/task_library/text_searcher.md137### Step 2: Using the modelCOMMENT
LOWtflite/core/subgraph.h556 // NOTE: This function is expected to be paired with ReleaseSubgraphContext()COMMENT
37 more matches not shown…
Cross-File Repetition25 hits · 125 pts
SeverityFileLineSnippetContext
HIGHtflite/tools/flatbuffer_utils.py0converts a numerical enum value to a readable tensor type.STRING
HIGHtflite/tools/visualize.py0converts a numerical enum value to a readable tensor type.STRING
HIGHlitert/python/tools/flatbuffer_utils.py0converts a numerical enum value to a readable tensor type.STRING
HIGHtflite/tools/pip_package/setup_with_binary.py0litert is for mobile and embedded devices. litert is the official solution for running machine learning models on mobileSTRING
HIGHci/setup_with_binary.py0litert is for mobile and embedded devices. litert is the official solution for running machine learning models on mobileSTRING
HIGHci/tools/python/vendor_sdk/qualcomm/setup.py0litert is for mobile and embedded devices. litert is the official solution for running machine learning models on mobileSTRING
HIGHci/tools/python/vendor_sdk/samsung/setup.py0litert is for mobile and embedded devices. litert is the official solution for running machine learning models on mobileSTRING
HIGHci/tools/python/vendor_sdk/mediatek/setup.py0litert is for mobile and embedded devices. litert is the official solution for running machine learning models on mobileSTRING
HIGHci/tools/python/vendor_sdk/google_tensor/setup.py0litert is for mobile and embedded devices. litert is the official solution for running machine learning models on mobileSTRING
HIGHci/tools/python/wheel/setup_with_binary.py0litert is for mobile and embedded devices. litert is the official solution for running machine learning models on mobileSTRING
HIGHci/tools/python/wheel/converter_setup_with_binary.py0litert is for mobile and embedded devices. litert is the official solution for running machine learning models on mobileSTRING
HIGH…r_sdk/qualcomm/ai_edge_litert_sdk_qualcomm/__init__.py0returns the absolute path to the root of the downloaded sdk files.STRING
HIGH…dor_sdk/samsung/ai_edge_litert_sdk_samsung/__init__.py0returns the absolute path to the root of the downloaded sdk files.STRING
HIGH…r_sdk/mediatek/ai_edge_litert_sdk_mediatek/__init__.py0returns the absolute path to the root of the downloaded sdk files.STRING
HIGH…le_tensor/ai_edge_litert_sdk_google_tensor/__init__.py0returns the absolute path to the root of the downloaded sdk files.STRING
HIGHlitert/python/tools/model_utils/dialect/tfl/_arg_min.py0returns the axis value if 'dim' is constant, otherwise the ssavalue.STRING
HIGH…t/python/tools/model_utils/dialect/tfl/_expand_dims.py0returns the axis value if 'dim' is constant, otherwise the ssavalue.STRING
HIGHlitert/python/tools/model_utils/dialect/tfl/_arg_max.py0returns the axis value if 'dim' is constant, otherwise the ssavalue.STRING
HIGHlitert/python/aot/vendors/qualcomm/qualcomm_backend.py0backend implementation for the example compiler plugin..STRING
HIGHlitert/python/aot/vendors/example/example_backend.py0backend implementation for the example compiler plugin..STRING
HIGHlitert/python/aot/vendors/mediatek/mediatek_backend.py0backend implementation for the example compiler plugin..STRING
HIGHlitert/python/aot/vendors/qualcomm/qualcomm_backend.py0backend implementation for the example compiler plugin.STRING
HIGHlitert/python/aot/vendors/example/example_backend.py0backend implementation for the example compiler plugin.STRING
HIGHlitert/python/aot/vendors/samsung/samsung_backend.py0backend implementation for the example compiler plugin.STRING
HIGHlitert/python/aot/vendors/mediatek/mediatek_backend.py0backend implementation for the example compiler plugin.STRING
Deep Nesting80 hits · 66 pts
SeverityFileLineSnippetContext
LOWconfigure.py268CODE
LOWconfigure.py283CODE
LOWconfigure.py1029CODE
LOWconfigure.py1136CODE
LOWconfigure.py1267CODE
LOWtflite/tools/flatbuffer_utils.py352CODE
LOWtflite/tools/randomize_weights.py48CODE
LOWtflite/tools/zip_files.py27CODE
LOWtflite/tools/visualize.py318CODE
LOWtflite/tools/visualize.py422CODE
LOWtflite/tools/optimize/debugging/python/debugger.py332CODE
LOWtflite/python/util.py173CODE
LOWtflite/python/util.py332CODE
LOWtflite/python/util.py649CODE
LOWtflite/python/util.py756CODE
LOWtflite/python/util.py876CODE
LOWtflite/python/util.py1013CODE
LOWtflite/python/util.py1116CODE
LOWtflite/python/util.py343CODE
LOWtflite/python/op_hint.py828CODE
LOWtflite/python/op_hint.py932CODE
LOWtflite/python/op_hint.py1059CODE
LOWtflite/python/op_hint.py1168CODE
LOWtflite/python/op_hint.py558CODE
LOWtflite/python/convert.py807CODE
LOWtflite/python/convert.py963CODE
LOWtflite/python/util_test.py301CODE
LOWtflite/python/tflite_convert.py648CODE
LOWtflite/python/lite.py592CODE
LOWtflite/python/lite.py1333CODE
LOWtflite/python/lite.py1617CODE
LOWtflite/python/lite.py2458CODE
LOWtflite/python/lite.py3179CODE
LOWtflite/python/lite_v2_test.py3482CODE
LOWtflite/python/lite_v2_test.py4755CODE
LOWtflite/python/lite_v2_test.py4756CODE
LOWtflite/python/tflite_keras_util.py55CODE
LOWtflite/python/optimize/calibrator.py97CODE
LOWtflite/python/authoring/authoring.py179CODE
LOWtflite/ios/extract_object_files.py47CODE
LOWtflite/testing/zip_test_utils.py114CODE
LOWtflite/testing/zip_test_utils.py145CODE
LOWtflite/testing/zip_test_utils.py259CODE
LOWtflite/testing/zip_test_utils.py368CODE
LOWtflite/testing/mlir_convert.py30CODE
LOWtflite/testing/mlir_convert.py143CODE
LOWtflite/schema/upgrade_schema.py147CODE
LOWtflite/schema/upgrade_schema.py265CODE
LOWci/tools/python/vendor_sdk/intel/setup.py136CODE
LOWci/tools/python/vendor_sdk/intel/setup.py218CODE
LOWci/tools/python/vendor_sdk/intel/setup.py261CODE
LOWci/tools/python/vendor_sdk/intel/setup.py301CODE
LOWci/tools/python/vendor_sdk/qualcomm/setup.py59CODE
LOWci/tools/python/vendor_sdk/samsung/setup.py54CODE
LOWci/tools/python/vendor_sdk/mediatek/setup.py52CODE
LOWci/tools/python/vendor_sdk/google_tensor/setup.py60CODE
LOWci/tools/python/wheel/setup_with_binary.py47CODE
LOWci/tools/python/wheel/converter_setup_with_binary.py38CODE
LOWci/tools/python/wheel/utils/wheel_builder.py351CODE
LOWlitert/tools/externalize_tflite_flatbuffer.py66CODE
20 more matches not shown…
Redundant / Tautological Comments28 hits · 48 pts
SeverityFileLineSnippetContext
LOWconfigure.py204 # Check if the path is validCOMMENT
LOWconfigure.py464 # Check if current bazel version can be detected properly.COMMENT
LOWconfigure.py977 # Check if current clang version can be detected properly.COMMENT
LOWtflite/tools/build_aar.sh59 # Check if the file exist.COMMENT
LOWtflite/tools/build_aar.sh170# Check if users already run configureCOMMENT
LOWtflite/python/util.py1135 # Check if metadata has already been populated.COMMENT
LOWtflite/python/lite.py504 # Check if representative_dataset is specified.COMMENT
LOWtflite/python/lite.py3246 # Check if graph is frozen.COMMENT
LOWtflite/python/lite_v2_test.py1282 # Check if adding debug mode should output a different flatbuffer.COMMENT
LOWtflite/python/lite_v2_test.py1285 # Check if newly added ops are numeric verify ops.COMMENT
LOWtflite/python/authoring/authoring_test.py52 # Check if the CompatibilityError exception is raised.COMMENT
LOWtflite/python/authoring/authoring_test.py170 # Check if the decorator keeps __name__ attribute.COMMENT
LOWtflite/python/authoring/authoring_test.py173 # Check if the decorator works with get_concrete_function method.COMMENT
LOWtflite/python/authoring/authoring_test.py192 # Check if the decorator keeps __name__ attribute.COMMENT
LOWtflite/python/authoring/authoring_test.py195 # Check if the decorator works with get_concrete_function method.COMMENT
LOWtflite/ios/extract_object_files.py75 # Check if the name is already used. If so, come up with a different name byCOMMENT
LOWtflite/ios/extract_object_files.py82 # Write the file content to the desired final path.COMMENT
LOWtflite/ios/build_frameworks.sh174# Check if users ran configure with iOS enabled.COMMENT
LOWtflite/schema/upgrade_schema.py256 # Check if builtin_code is the appropriate string typeCOMMENT
LOWlitert/integration_test/device_script_common.sh41# Print message and exit.COMMENT
LOWlitert/python/tools/flatbuffer_utils_test.py335 # Check if the pack model's data is updated.COMMENT
LOWlitert/python/tools/mmap_utils.py167 # Write the file in chunks to avoid creating large internal buffers.COMMENT
LOWlitert/python/tools/model_utils/core/utils.py108 # Check if the type is signless (or signed)COMMENT
LOWlitert/python/tools/model_utils/core/utils.py128 # Check if the type is unsignedCOMMENT
LOWlitert/c/litert_runtime_c_api_so_symbol_test.sh22# Check if TEST_SRCDIR is setCOMMENT
LOWdocker_build/build_with_docker.sh21# Check if Docker is installed and runningCOMMENT
LOWdocker_build/build_with_docker.sh27# Check if Docker daemon is runningCOMMENT
LOWdocker_build/build_with_docker.sh72# Check if container already existsCOMMENT
Excessive Try-Catch Wrapping38 hits · 42 pts
SeverityFileLineSnippetContext
MEDIUMconfigure.py1291 print('Error retrieving bazel version: ', e.output.decode('UTF-8').strip())CODE
LOWtflite/converter/tests/debuginfo/saved_model_error.py76 except Exception as e: # pylint: disable=broad-exceptCODE
LOW…e/converter/tests/debuginfo/concrete_function_error.py66 except Exception as e: # pylint: disable=broad-exceptCODE
LOWtflite/python/util.py1151 except Exception: # pylint: disable=broad-exceptCODE
LOWtflite/python/convert.py325 except Exception as e:CODE
LOWtflite/python/convert_phase.py213 except Exception as error:CODE
MEDIUMtflite/python/convert_phase.py203def wrapper(*args, **kwargs):CODE
LOWtflite/python/lite.py1185 except Exception: # pylint: disable=broad-exceptCODE
LOWtflite/python/lite.py1681 except Exception: # pylint: disable=broad-exceptCODE
LOWtflite/python/lite.py1902 except Exception: # pylint: disable=broad-exceptCODE
LOWtflite/python/lite.py2065 except Exception: # pylint: disable=broad-exceptCODE
LOWtflite/python/lite.py2547 except Exception: # pylint: disable=broad-exceptCODE
LOWtflite/python/lite.py2882 except Exception: # pylint: disable=broad-exceptCODE
LOWtflite/python/optimize/calibrator.py80 except Exception as e:CODE
LOWtflite/testing/mlir_convert.py137 except Exception as e: # pylint: disable=broad-exceptCODE
MEDIUMci/tools/python/vendor_sdk/sdist_wrapper.py152 print("Error running setup.py sdist:", file=sys.stderr)CODE
LOWci/tools/python/vendor_sdk/intel/setup.py319 except Exception as e: # pylint: disable=broad-exception-caughtCODE
LOWci/tools/python/vendor_sdk/intel/setup.py342 except Exception as e: # pylint: disable=broad-exception-caughtCODE
LOWci/tools/python/vendor_sdk/qualcomm/setup.py78 except Exception as e: # pylint: disable=broad-exception-caughtCODE
LOWci/tools/python/vendor_sdk/qualcomm/setup.py179 except Exception as e: # pylint: disable=broad-exception-caughtCODE
LOW…r_sdk/qualcomm/ai_edge_litert_sdk_qualcomm/__init__.py57 except Exception as e: # pylint: disable=broad-exception-caughtCODE
MEDIUM…r_sdk/qualcomm/ai_edge_litert_sdk_qualcomm/__init__.py58 print(f"Error determining SDK path: {e}", file=sys.stderr)CODE
LOWci/tools/python/vendor_sdk/samsung/setup.py73 except Exception as e: # pylint: disable=broad-exception-caughtCODE
LOWci/tools/python/vendor_sdk/samsung/setup.py174 except Exception as e: # pylint: disable=broad-exception-caughtCODE
LOW…dor_sdk/samsung/ai_edge_litert_sdk_samsung/__init__.py59 except Exception as e: # pylint: disable=broad-exception-caughtCODE
MEDIUM…dor_sdk/samsung/ai_edge_litert_sdk_samsung/__init__.py60 print(f"Error determining SDK path: {e}", file=sys.stderr)CODE
LOWci/tools/python/vendor_sdk/mediatek/setup.py71 except Exception as e: # pylint: disable=broad-exception-caughtCODE
LOWci/tools/python/vendor_sdk/mediatek/setup.py176 except Exception as e: # pylint: disable=broad-exception-caughtCODE
LOW…r_sdk/mediatek/ai_edge_litert_sdk_mediatek/__init__.py78 except Exception as e: # pylint: disable=broad-exception-caughtCODE
MEDIUM…r_sdk/mediatek/ai_edge_litert_sdk_mediatek/__init__.py79 print(f"Error determining SDK path: {e}", file=sys.stderr)CODE
LOWci/tools/python/vendor_sdk/google_tensor/setup.py99 except Exception as e: # pylint: disable=broad-exception-caughtCODE
LOWci/tools/python/vendor_sdk/google_tensor/setup.py221 except Exception as e: # pylint: disable=broad-exception-caughtCODE
LOW…le_tensor/ai_edge_litert_sdk_google_tensor/__init__.py61 except Exception as e: # pylint: disable=broad-exception-caughtCODE
MEDIUM…le_tensor/ai_edge_litert_sdk_google_tensor/__init__.py62 print(f"Error determining SDK path: {e!r}", file=sys.stderr)CODE
LOWci/tools/python/wheel/setup_with_binary.py80 except Exception as e: # pylint: disable=broad-exception-caughtCODE
LOWci/tools/python/wheel/setup_with_binary.py131 except Exception as e: # pylint: disable=broad-exception-caughtCODE
LOWci/tools/python/wheel/converter_setup_with_binary.py71 except Exception as e: # pylint: disable=broad-exception-caughtCODE
LOWlitert/python/litert_wrapper/simple_accel_smoke_test.py192 except Exception as exc:CODE
AI Slop Vocabulary16 hits · 40 pts
SeverityFileLineSnippetContext
MEDIUMtflite/types/half.h24// known to be at least a robust f16<->f32 conversion, which generally means aCOMMENT
MEDIUMtflite/python/convert.py677 # leverage defaults specified in proto definition.COMMENT
MEDIUMtflite/python/lite_v2_test.py588 # the bias tensor should be 32 bits to utilize optimized kernels,COMMENT
MEDIUM…delegates/gpu/common/tasks/mean_stddev_normalization.h68// provide more stable and robust resultsCOMMENT
MEDIUM…delegates/gpu/common/tasks/mean_stddev_normalization.h133// provide more stable and robust resultsCOMMENT
MEDIUMml_drift/delegate/delegate_options.h214 // If true, the weights rearrangement, if supported, will utilize GPU.COMMENT
LOWci/run_bazel_build.sh240 # buildable. To avoid creating new TAP targets, simply add benchmarkCOMMENT
LOWci/tools/python/vendor_sdk/google_tensor/setup.py106 # If we simply return None, the build process will continue, which isCOMMENT
LOWci/tools/python/vendor_sdk/google_tensor/setup.py211 # If we simply return None, the build process will continue, whichCOMMENT
LOWci/tools/python/vendor_sdk/google_tensor/setup.py227 # If we simply return None, the build process will continue, which is notCOMMENT
MEDIUMlitert/vendors/google_tensor/dispatch/sb_api.h91// implementation to utilize a proprietary fence, which generally have superiorCOMMENT
MEDIUMlitert/core/dispatch_op_schema.h21// functions leverage the flexbuffer api under the hood which allows for inplaceCOMMENT
LOWlitert/python/tools/mmap_utils_test.py242 # This should not raise any exception and should just return.COMMENT
LOWlitert/python/tools/mmap_utils_test.py306 # This should not raise any exception and should just return.COMMENT
LOWlitert/python/aot/ai_pack/export_lib.py164 # Skip non-MTK targets, just create a placeholder file.COMMENT
MEDIUMlitert/cc/internal/litert_c_types_printing.h33/// @todo Migrate the code in `tools/dump.h` to leverage the Abseil stringifyCOMMENT
Synthetic Comment Markers4 hits · 30 pts
SeverityFileLineSnippetContext
HIGHlitert/vendors/broadcom/example/CMakeLists.txt2# Portions generated by AICOMMENT
HIGHlitert/vendors/broadcom/dispatch/CMakeLists.txt2# Portions generated by AICOMMENT
HIGHlitert/vendors/broadcom/common/CMakeLists.txt2# Portions generated by AICOMMENT
HIGHlitert/python/tools/model_utils/dialect/tfl/_fill.py102 # Do not check ndim as requestedCOMMENT
Example Usage Blocks14 hits · 22 pts
SeverityFileLineSnippetContext
LOWtflite/kernels/shim/op_kernel.h154// Example usage:COMMENT
LOWtflite/kernels/shim/tflite_op_wrapper.h149// Example usage:COMMENT
LOWtflite/kernels/shim/tensor_view.h59 // Example usage:COMMENT
LOW…imental/acceleration/compatibility/gpu_compatibility.h39// Example usage:COMMENT
LOWtflite/testing/zip_test_utils.py47# Usage:COMMENT
LOWtflite/delegates/gpu/api.h19// Usage example:COMMENT
LOWtflite/delegates/gpu/common/task/util.h60// Example usage:COMMENT
LOWtflite/delegates/gpu/cl/api.h33// Usage example:COMMENT
LOWlitert/rust/example/segmentation_async_main.rs19/// Example usage:COMMENT
LOWlitert/rust/example/segmentation_main.rs19/// Example usage:COMMENT
LOWlitert/rust/src/environment.rs63/// Example usage:COMMENT
LOWlitert/c/options/litert_runtime_options.h25// Example usage:COMMENT
LOWdocker_build/build_wheel_with_docker.sh21# Usage:COMMENT
LOWdocker_build/setup_bazel_env.sh21# Usage:COMMENT
AI Structural Patterns22 hits · 16 pts
SeverityFileLineSnippetContext
LOW…tal/microfrontend/python/ops/audio_microfrontend_op.py28CODE
LOWtflite/tools/optimize/debugging/python/debugger_test.py46CODE
LOWtflite/python/convert.py202CODE
LOWtflite/python/convert.py397CODE
LOWtflite/python/convert.py801CODE
LOWtflite/python/convert.py889CODE
LOWtflite/python/convert.py905CODE
LOWtflite/python/convert.py932CODE
LOWtflite/python/interpreter.py402CODE
LOWtflite/python/lite_v2_test.py293CODE
LOWtflite/python/lite_v2_test.py911CODE
LOWtflite/python/lite_v2_test.py1403CODE
LOWtflite/python/lite_v2_test.py5221CODE
LOWtflite/python/lite_v2_test.py5259CODE
LOWtflite/python/metrics/metrics_nonportable_test.py192CODE
LOWtflite/python/authoring/authoring_test.py76CODE
LOWtflite/testing/op_tests/conv_activation.py146CODE
LOWtflite/testing/op_tests/conv_bias_activation.py73CODE
LOWtflite/testing/op_tests/conv_bias_activation.py78CODE
LOWtflite/tutorials/mnist_tflite.py66CODE
LOW…on/tools/model_utils/dialect/tfl/_depthwise_conv_2d.py50CODE
LOWlitert/python/tools/model_utils/dialect/tfl/_conv_2d.py50CODE
Fake / Example Data6 hits · 8 pts
SeverityFileLineSnippetContext
LOWtflite/testing/op_tests/mirror_pad.py46 "type": ["placeholder"],CODE
LOWtflite/testing/op_tests/mirror_pad.py53 "type": ["placeholder"],CODE
LOWtflite/testing/op_tests/mirror_pad.py60 "type": ["placeholder"],CODE
LOWtflite/testing/op_tests/mirror_pad.py82 "type": ["placeholder"],CODE
LOWlitert/python/tools/mmap_utils_test.py52 b'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod'CODE
LOWlitert/python/tools/mmap_utils_test.py52 b'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod'CODE
Modern Structural Boilerplate7 hits · 7 pts
SeverityFileLineSnippetContext
LOWlitert/python/tools/model_utils/model_builder.py25__all__ = [CODE
LOW…/python/tools/model_utils/core/_op_building_context.py23__all__ = ["OpBuildingContext"]CODE
LOWlitert/python/tools/model_utils/core/dialect_base.py27__all__ = [CODE
LOWlitert/python/tools/model_utils/core/pass_base.py24__all__ = ["ModulePassBase", "RewritePatternPassBase"]CODE
LOWlitert/python/tools/model_utils/core/utils.py21__all__ = [CODE
LOW…ython/tools/model_utils/match/_match_dag/tblgen_def.py25__all__ = ["registry"]CODE
LOWlitert/python/mlir/__init__.py20__all__ = []CODE
Cross-Language Confusion1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHtflite/tools/visualize.py158 d.fx = d.fy = null;CODE
Slop Phrases2 hits · 3 pts
SeverityFileLineSnippetContext
LOWtflite/python/lite.py1573 # We make sure to clear the saved_model_dir as there is someCOMMENT
LOWlitert/c/internal/litert_runtime_c_api.h42// don't forget to also bump the ABI version number.COMMENT