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

11.3 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,345 GitHub stars. SynthScan v2.0 examined 523,850 lines of code across 3169 source files, recording 4592 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 11.3 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).

11.3
Adjusted Score
11.3
Raw Score
100%
Time Factor
2026-08-29
Last Push
3.3K
Stars
C++
Language
523.9K
Lines of Code
3.2K
Files
4.6K
Pattern Hits
2026-08-29
Scan Date
0.04
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

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

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 20HIGH 107MEDIUM 418LOW 4047

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 4592 distinct pattern matches across 21 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 Block2920 hits · 2844 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/CMakeLists.txt121set(_TFLITE_ENABLE_RUY "${TFLITE_ENABLE_RUY}")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.h161COMMENT
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/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// TF_LITE_ENSURE(context, my_tensor != nullptr);COMMENT
LOWtflite/kernels/kernel_util.h61// TfLiteTensor* my_tensor = GetVariableInput(context, node, kMyTensorIdx);COMMENT
LOWtflite/kernels/kernel_util.h81// TfLiteTensor* my_tensor;COMMENT
LOWtflite/kernels/kernel_util.h101COMMENT
LOWtflite/kernels/kernel_util.h121//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
2860 more matches not shown…
Decorative Section Separators325 hits · 981 pts
SeverityFileLineSnippetContext
MEDIUMconfigure.py14# ==============================================================================COMMENT
MEDIUMtflite/generate-pc.sh14# ==============================================================================COMMENT
MEDIUM…eleration/compatibility/convert_binary_to_cc_source.py14# ==============================================================================COMMENT
MEDIUM…end/python/kernel_tests/audio_microfrontend_op_test.py14# ==============================================================================COMMENT
MEDIUM…tal/microfrontend/python/ops/audio_microfrontend_op.py14# ==============================================================================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
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/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
MEDIUMtflite/converter/python/wrap_converter.py14# ==============================================================================COMMENT
MEDIUMtflite/python/convert_saved_model.py14# ==============================================================================COMMENT
MEDIUMtflite/python/convert_file_to_c_source_test.sh15# ==============================================================================COMMENT
MEDIUMtflite/python/schema_util.py14# ==============================================================================COMMENT
MEDIUMtflite/python/wrap_toco.py14# ==============================================================================COMMENT
MEDIUMtflite/python/convert_saved_model_test.py14# ==============================================================================COMMENT
MEDIUMtflite/python/util.py14# ==============================================================================COMMENT
MEDIUMtflite/python/op_hint.py14# ==============================================================================COMMENT
MEDIUMtflite/python/convert.py14# ==============================================================================COMMENT
MEDIUMtflite/python/lite_v2_test_util.py14# ==============================================================================COMMENT
MEDIUMtflite/python/analyzer.py14# ==============================================================================COMMENT
MEDIUMtflite/python/convert_phase.py14# ==============================================================================COMMENT
MEDIUMtflite/python/lite_test.py14# ==============================================================================COMMENT
MEDIUMtflite/python/test_util.py14# ==============================================================================COMMENT
MEDIUMtflite/python/util_test.py14# ==============================================================================COMMENT
MEDIUMtflite/python/interpreter.py14# ==============================================================================COMMENT
MEDIUMtflite/python/interpreter_test.py14# ==============================================================================COMMENT
MEDIUMtflite/python/lite_flex_test.py14# ==============================================================================COMMENT
MEDIUMtflite/python/analyzer_test.py14# ==============================================================================COMMENT
MEDIUMtflite/python/lite.py14# ==============================================================================COMMENT
MEDIUMtflite/python/lite_v2_test.py14# ==============================================================================COMMENT
MEDIUMtflite/python/test_util_test.py14# ==============================================================================COMMENT
MEDIUMtflite/python/tflite_keras_util.py14# ==============================================================================COMMENT
MEDIUMtflite/python/convert_file_to_c_source.py14# ==============================================================================COMMENT
MEDIUMtflite/python/convert_test.py14# ==============================================================================COMMENT
MEDIUMtflite/python/lite_constants.py14# ==============================================================================COMMENT
MEDIUMtflite/python/metrics/metrics_nonportable_test.py14# ==============================================================================COMMENT
MEDIUMtflite/python/metrics/metrics_portable_test.py14# ==============================================================================COMMENT
MEDIUMtflite/python/metrics/metrics_interface.py14# ==============================================================================COMMENT
MEDIUMtflite/python/metrics/metrics_portable.py14# ==============================================================================COMMENT
265 more matches not shown…
Hyper-Verbose Identifiers497 hits · 514 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
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
LOWtflite/converter/python/wrap_converter.py40def wrapped_convert_mlir_bytecode(CODE
LOWtflite/converter/python/wrap_converter.py53def wrapped_experimental_mlir_quantize(CODE
LOWtflite/converter/python/wrap_converter.py86def wrapped_experimental_mlir_sparsify(input_data_str):CODE
LOWtflite/converter/python/wrap_converter.py91def wrapped_register_custom_opdefs(custom_opdefs_list):CODE
LOWtflite/converter/python/wrap_converter.py96def wrapped_retrieve_collected_errors():CODE
LOWtflite/converter/python/wrap_converter.py101def 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
LOWtflite/python/util.py421def convert_bytes_to_c_source(data,CODE
LOWtflite/python/util.py549def _convert_model_from_object_to_bytearray(model_object):CODE
LOWtflite/python/util.py649def _modify_model_input_type_per_subgraph(model, subgraph_index,CODE
LOWtflite/python/util.py741def _modify_model_output_type(model, inference_output_type=dtypes.float32):CODE
LOWtflite/python/util.py756def _modify_model_output_type_per_subgraph(model, subgraph_index,CODE
LOWtflite/python/util.py864def _remove_redundant_quantize_ops(model):CODE
LOWtflite/python/util.py876def _remove_redundant_quantize_ops_per_subgraph(model, subgraph_index,CODE
437 more matches not shown…
Docstring Block Structure69 hits · 345 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/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.py889Gets callable for inference of specific SignatureDef. Example usage, ``` interpreter = tf.lite.Interpreter(STRING
HIGHtflite/python/lite.py1467Converts a TensorFlow GraphDef based on instance variables. Args: graph_def: Frozen TensorFlow GraphDef. STRING
HIGHtflite/python/lite.py2223Creates a TFLiteConverter object from ConcreteFunctions. Args: funcs: List of TensorFlow ConcreteFunctions. TSTRING
HIGHtflite/python/lite.py2265Creates a TFLiteConverter object from a SavedModel directory. Args: saved_model_dir: SavedModel directory to STRING
HIGHtflite/python/lite.py3222Creates 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/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/support_lib/metadata/python/metadata.py184Creates a MetadataPopulator object that populates data to a model file. Args: model_file: valid path to a TenSTRING
HIGHlitert/support_lib/metadata/python/metadata.py202Creates a MetadataPopulator object that populates data to a model buffer. Args: model_buf: TensorFlow Lite moSTRING
HIGHlitert/support_lib/metadata/python/metadata.py706Creates a MetadataDisplayer object for the model file. Args: model_file: valid path to a TensorFlow Lite modeSTRING
HIGHlitert/support_lib/metadata/python/metadata.py741Get the specified associated file content in bytearray. Args: filename: name of the file to be extracted. STRING
HIGHlitert/support_lib/metadata/python/metadata.py796Converts the metadata into a json string. Args: metadata_buffer: valid metadata buffer in bytes. Returns: STRING
HIGH…ib/metadata/python/metadata_writers/metadata_writer.py57Creates MetadataWriter based on the metadata information. Args: model_buffer: valid buffer of the model file.STRING
HIGH…t_lib/metadata/python/metadata_writers/writer_utils.py165Gets the subgraph of the model. TFLite does not support multi-subgraph. A model should have exactly one subgraph. 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
HIGHlitert/python/tools/mmap_utils.py32Creates an `mmap.mmap` of a file of the given `size` at `path`. Any data written to the resulting buffer will also beSTRING
9 more matches not shown…
Unused Imports395 hits · 263 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.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
LOWtflite/testing/generate_examples_lib.py76CODE
335 more matches not shown…
Self-Referential Comments72 hits · 236 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
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.py1289 # Create a TFLite model with new quantizer.COMMENT
MEDIUMtflite/python/lite_v2_test.py1293 # Create a TFLite model with new quantizer and numeric verify ops.COMMENT
MEDIUMtflite/python/lite_v2_test.py1887 # Create a v1 saved model with hash table initializers.COMMENT
MEDIUMtflite/python/lite_v2_test.py1976 # Create a v1 saved model with mutable hash table.COMMENT
MEDIUMtflite/python/lite_v2_test.py3315 # Create a simple Keras model.COMMENT
MEDIUMtflite/python/lite_v2_test.py3347 # Create a simple Keras model.COMMENT
MEDIUMtflite/python/lite_v2_test.py3388 # Create a simple Keras model.COMMENT
MEDIUMtflite/python/lite_v2_test.py5170 # Create a graph that has one double 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/support_lib/metadata/python/metadata.py159 # Creating the deleting such a tempfile is handled by the class,COMMENT
MEDIUMlitert/support_lib/metadata/python/metadata.py793# Create an individual method for getting the metadata json file, so that it canCOMMENT
MEDIUM…ert/support_lib/metadata/python/tests/metadata_test.py66 # Create a model with two inputs and one output, which matches the metadataCOMMENT
MEDIUM…ert/support_lib/metadata/python/tests/metadata_test.py100 # Create a model with two inputs and one output.COMMENT
MEDIUM…ert/support_lib/metadata/python/tests/metadata_test.py429 # Create a model with two inputs and one output.COMMENT
MEDIUM…ert/support_lib/metadata/python/tests/metadata_test.py493 # Create a dummy metadata without Subgraph.COMMENT
MEDIUM…ert/support_lib/metadata/python/tests/metadata_test.py509 # Create a dummy metadata with no input tensor metadata, while the expectedCOMMENT
MEDIUM…ert/support_lib/metadata/python/tests/metadata_test.py530 # Create a dummy metadata with no output tensor metadata, while the expectedCOMMENT
MEDIUM…ert/support_lib/metadata/python/tests/metadata_test.py551 # Create a src model with metadata and two associated files.COMMENT
MEDIUM…ert/support_lib/metadata/python/tests/metadata_test.py558 # Create a model to be populated with the metadata and files fromCOMMENT
MEDIUM…ert/support_lib/metadata/python/tests/metadata_test.py598 # Create the tensor with process units.COMMENT
MEDIUM…ert/support_lib/metadata/python/tests/metadata_test.py602 # Create the subgrah with the tensor.COMMENT
MEDIUM…ert/support_lib/metadata/python/tests/metadata_test.py616 # Create a model metadata with the subgraph metadataCOMMENT
MEDIUM…ert/support_lib/metadata/python/tests/metadata_test.py654 # Create the subgraph with process units.COMMENT
MEDIUM…ert/support_lib/metadata/python/tests/metadata_test.py669 # Create a model metadata with the subgraph metadataCOMMENT
MEDIUM…ta/python/tests/metadata_writers/metadata_info_test.py460 # Create a dummy model using the tensor metadata.COMMENT
MEDIUM…ta/python/tests/metadata_writers/metadata_info_test.py466 # Create the Flatbuffers object and convert it to the json format.COMMENT
MEDIUM…ta/python/tests/metadata_writers/metadata_info_test.py476 # Create a dummy model using the tensor metadata.COMMENT
MEDIUM…ta/python/tests/metadata_writers/metadata_info_test.py482 # Create the Flatbuffers object and convert it to the json format.COMMENT
MEDIUM…ta/python/tests/metadata_writers/metadata_info_test.py44 # Create the Flatbuffers object and convert it to the json format.COMMENT
MEDIUM…ta/python/tests/metadata_writers/metadata_info_test.py67 # Create the Flatbuffers object and convert it to the json format.COMMENT
MEDIUM…ta/python/tests/metadata_writers/metadata_info_test.py423 # Create the Flatbuffers object and convert it to the json format.COMMENT
MEDIUM…_lib/metadata/python/metadata_writers/metadata_info.py162 # Create the RegexTokenizer.COMMENT
12 more matches not shown…
Hallucination Indicators20 hits · 220 pts
SeverityFileLineSnippetContext
CRITICALtflite/python/lite.py3137 session. converter = tf.compat.v1.lite.TFLiteConverter.from_session( sess,STRING
CRITICALtflite/python/lite.py3141 tf.compat.v1.lite.TFLiteConverter.from_frozen_graph( graph_def_file,STRING
CRITICALtflite/python/lite.py3145 tf.compat.v1.lite.TFLiteConverter.from_saved_model( saved_model_dir)STRING
CRITICALtflite/python/lite.py3148 tf.compat.v1.lite.TFLiteConverter.from_keras_model_file( keras_model)STRING
CRITICALtflite/python/lite_v2_test.py1906 tensor_info_x = tf.compat.v1.saved_model.utils.build_tensor_info(x)CODE
CRITICALtflite/python/lite_v2_test.py1907 tensor_info_y = tf.compat.v1.saved_model.utils.build_tensor_info(y)CODE
CRITICALtflite/python/lite_v2_test.py1911 'serving_default': tf.compat.v1.saved_model.signature_def_utils.build_signature_def( # pylint: disable=lineCODE
CRITICALtflite/python/lite_v2_test.py1997 tensor_info_x = tf.compat.v1.saved_model.utils.build_tensor_info(x)CODE
CRITICALtflite/python/lite_v2_test.py1998 tensor_info_y = tf.compat.v1.saved_model.utils.build_tensor_info(y)CODE
CRITICALtflite/python/lite_v2_test.py2002 'serving_default': tf.compat.v1.saved_model.signature_def_utils.build_signature_def( # pylint: disable=lineCODE
CRITICALtflite/python/lite_v2_test.py1924 builder = tf.compat.v1.saved_model.builder.SavedModelBuilder(CODE
CRITICALtflite/python/lite_v2_test.py2014 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
Cross-File Repetition32 hits · 160 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
HIGH…b/metadata/python/metadata_writers/image_classifier.py0creates metadatawriter based on general/input/output information. args: model_buffer: valid buffer of the model file. geSTRING
HIGH…_lib/metadata/python/metadata_writers/nl_classifier.py0creates metadatawriter based on general/input/output information. args: model_buffer: valid buffer of the model file. geSTRING
HIGH…metadata/python/metadata_writers/bert_nl_classifier.py0creates metadatawriter based on general/input/output information. args: model_buffer: valid buffer of the model file. geSTRING
HIGH…b/metadata/python/metadata_writers/audio_classifier.py0creates metadatawriter based on general/input/output information. args: model_buffer: valid buffer of the model file. geSTRING
HIGH…b/metadata/python/metadata_writers/image_classifier.py0creates mandatory metadata for litert support inference. the parameters required in this method are mandatory when usingSTRING
HIGH…ib/metadata/python/metadata_writers/object_detector.py0creates mandatory metadata for litert support inference. the parameters required in this method are mandatory when usingSTRING
HIGH…ib/metadata/python/metadata_writers/image_segmenter.py0creates mandatory metadata for litert support inference. the parameters required in this method are mandatory when usingSTRING
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 Nesting79 hits · 65 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/lite.py592CODE
LOWtflite/python/lite.py1340CODE
LOWtflite/python/lite.py1634CODE
LOWtflite/python/lite.py2498CODE
LOWtflite/python/lite.py3219CODE
LOWtflite/python/lite_v2_test.py3580CODE
LOWtflite/python/lite_v2_test.py4875CODE
LOWtflite/python/lite_v2_test.py4876CODE
LOWtflite/python/tflite_keras_util.py55CODE
LOWtflite/python/optimize/calibrator.py97CODE
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.py102CODE
LOWlitert/tools/externalize_tflite_flatbuffer.py121CODE
LOWlitert/tools/externalize_tflite_flatbuffer.py188CODE
LOW…upport_lib/metadata/python/metadata_writer_for_task.py290CODE
19 more matches not shown…
Structural Annotation Overuse40 hits · 64 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/core/subgraph.h561 // NOTE: This function is expected to be paired with ReleaseSubgraphContext()COMMENT
LOWtflite/core/subgraph.h574 // NOTE: This function is expected to be used after AcquireSubgraphContext()COMMENT
LOWtflite/core/subgraph.h591 // NOTE: This function is expected to be called only when the subgraph thatCOMMENT
LOWtflite/core/subgraph.h622 // NOTE: This function is expected to be called only when this subgraph willCOMMENT
LOWtflite/core/interpreter.h241 /// NOTE: This function does not affect cancellation triggered by the callbackCOMMENT
LOWtflite/core/async/c/task.h60/// NOTE: This method does not check tensor index is pointing to a valid tensor.COMMENT
LOWtflite/core/async/c/task.h118/// NOTE: This method does not check tensor index is pointing to aCOMMENT
LOWtflite/core/c/c_api.h542/// NOTE: This function is similar to TfLiteInterpreterResizeInputTensorStrict()COMMENT
LOWtflite/core/c/c_api.h547/// NOTE: This function makes a copy of the input dimensions, so the caller canCOMMENT
LOWtflite/core/c/c_api_opaque.h559/// NOTE: This function is expected to be paired withCOMMENT
LOWtflite/core/c/c_api_opaque.h572/// NOTE: This function is expected to be used afterCOMMENT
LOWtflite/core/c/c_api_opaque.h590/// NOTE: This function is expected to be called only when the subgraph thatCOMMENT
LOWtflite/core/c/common.h1552// NOTE: This function is part of the TensorFlow Lite Extension APIs, see above.COMMENT
LOWtflite/core/c/common.h1558// NOTE: This function is part of the TensorFlow Lite Extension APIs, see above.COMMENT
LOWtflite/core/c/common.h1564// NOTE: This function is part of the TensorFlow Lite Extension APIs, see above.COMMENT
LOWtflite/core/c/common.h1113 /// NOTE: This function is expected to be paired with ReleaseSubgraphContext()COMMENT
LOWtflite/core/c/common.h1124 /// NOTE: This function is expected to be used after AcquireSubgraphContext()COMMENT
LOWtflite/converter/kernels/internal/runtime_shape.h202 // NOTE: This function does not handle potential integer overflow.COMMENT
LOWtflite/python/convert.py177 # WARNING: These ops are currently experimental and have not yet beenCOMMENT
LOWtflite/delegates/utils.h47// NOTE: This function is expected to be paired with ReleaseSubgraphContext()COMMENT
LOWtflite/delegates/utils.h56// NOTE: This function is expected to be used after AcquireSubgraphContext()COMMENT
LOWtflite/delegates/utils.h70// NOTE: This function is expected to be called only when the subgraph thatCOMMENT
LOW…le_delegate/sample_stable_delegate_with_control_flow.h70 // NOTE: This function is expected to be called recursively to gather all theCOMMENT
LOWg3doc/instructions/BUILD_INSTRUCTIONS.md33### Step 1: Install DependenciesCOMMENT
LOWg3doc/instructions/BUILD_INSTRUCTIONS.md57### Step 2: Clone and BuildCOMMENT
LOWg3doc/instructions/BUILD_INSTRUCTIONS.md71### Step 3: Verify InstallationCOMMENT
LOWg3doc/instructions/BUILD_INSTRUCTIONS.md82### Step 1: Install PrerequisitesCOMMENT
LOWg3doc/instructions/BUILD_INSTRUCTIONS.md95### Step 2: Build for macOSCOMMENT
LOWg3doc/instructions/BUILD_INSTRUCTIONS.md115### Step 1: Install PrerequisitesCOMMENT
LOWg3doc/instructions/BUILD_INSTRUCTIONS.md121### Step 2: Configure EnvironmentCOMMENT
LOWg3doc/instructions/BUILD_INSTRUCTIONS.md131### Step 3: Build for WindowsCOMMENT
LOWg3doc/instructions/BUILD_INSTRUCTIONS.md161### Step 1: Install Android Development ToolsCOMMENT
LOWg3doc/instructions/BUILD_INSTRUCTIONS.md179### Step 2: Build for Android with BazelCOMMENT
LOWg3doc/instructions/BUILD_INSTRUCTIONS.md192### Step 3: Test Accelerator Support for AndroidCOMMENT
LOWtensor/backends/testing/README.md30### Step 1: Implement `TestBackendBridge`COMMENT
LOWtensor/backends/testing/README.md83### Step 2: Define Backend TraitsCOMMENT
LOWtensor/backends/testing/README.md97### Step 3: Instantiate the SuiteCOMMENT
LOWtensor/backends/testing/README.md113### Step 4: Update the BUILD targetCOMMENT
AI Slop Vocabulary20 hits · 52 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.py596 # 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
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
MEDIUM…/vendors/intel_openvino/dispatch/weight_bank_runtime.h59 // are matched by the Parameter's friendly_name, so binding is robust to inputCOMMENT
MEDIUM…endors/intel_openvino/compiler/weights_to_parameters.h36// its pool buffer by friendly_name (robust to input reordering across import).COMMENT
MEDIUMlitert/vendors/intel_openvino/compiler/global_graph.h38// at dispatch (matched by name so binding is robust to input reordering acrossCOMMENT
MEDIUM…ndors/intel_openvino/compiler/alias_shared_constants.h46// robust guard -- no need to enumerate which transforms alter content.COMMENT
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
MEDIUMml_drift_delegate/delegate/delegate_options.h214 // If true, the weights rearrangement, if supported, will utilize GPU.COMMENT
Excessive Try-Catch Wrapping37 hits · 40 pts
SeverityFileLineSnippetContext
MEDIUMconfigure.py1291 print('Error retrieving bazel version: ', e.output.decode('UTF-8').strip())CODE
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.py1192 except Exception: # pylint: disable=broad-exceptCODE
LOWtflite/python/lite.py1699 except Exception as error: # pylint: disable=broad-exceptCODE
LOWtflite/python/lite.py1779 except Exception as e: # pylint: disable=broad-exceptCODE
LOWtflite/python/lite.py1942 except Exception: # pylint: disable=broad-exceptCODE
LOWtflite/python/lite.py2105 except Exception: # pylint: disable=broad-exceptCODE
LOWtflite/python/lite.py2587 except Exception: # pylint: disable=broad-exceptCODE
LOWtflite/python/lite.py2922 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
Redundant / Tautological Comments26 hits · 40 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.py3286 # Check if graph is frozen.COMMENT
LOWtflite/python/lite_v2_test.py1302 # Check if adding debug mode should output a different flatbuffer.COMMENT
LOWtflite/python/lite_v2_test.py1305 # Check if newly added ops are numeric verify ops.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/support_lib/metadata/python/metadata.py569 # Check if metadata has already been populated.COMMENT
LOWlitert/support_lib/metadata/python/metadata.py624 # Verify if the number of tensor metadata matches the number of tensors.COMMENT
LOW…ert/support_lib/metadata/python/tests/metadata_test.py274 # Check if the model buffer read from file is the same as that read fromCOMMENT
LOW…ert/support_lib/metadata/python/tests/metadata_test.py328 # Check if the model buffer read from file is the same as that read fromCOMMENT
LOW…/python/tests/metadata_writers/metadata_writer_test.py178 # Verify if the metadata populated is correct.COMMENT
LOW…/python/tests/metadata_writers/metadata_writer_test.py185 # Verify if the associated file is packed as expected.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
Synthetic Comment Markers5 hits · 38 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/vendors/broadcom/compiler/CMakeLists.txt2# Portions generated by AICOMMENT
HIGHlitert/python/tools/model_utils/dialect/tfl/_fill.py102 # Do not check ndim as requestedCOMMENT
Example Usage Blocks15 hits · 23 pts
SeverityFileLineSnippetContext
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/vendors/nvidia/run_head.sh15# Usage: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/tflite_support/custom_op/custom_op.h29/// Example usage:COMMENT
LOWlitert/tflite_support/custom_op/custom_op.h44/// Example usage:COMMENT
LOWlitert/cc/litert_options.h340 /// 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 Patterns23 hits · 18 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.py919CODE
LOWtflite/python/lite_v2_test.py1425CODE
LOWtflite/python/lite_v2_test.py5341CODE
LOWtflite/python/lite_v2_test.py5379CODE
LOWtflite/python/metrics/metrics_nonportable_test.py192CODE
LOWtflite/testing/op_tests/conv_activation.py146CODE
LOWtflite/testing/op_tests/conv_bias_activation.py73CODE
LOWtflite/testing/op_tests/conv_bias_activation.py78CODE
LOW…on/tools/model_utils/dialect/tfl/_depthwise_conv_2d.py50CODE
LOWlitert/python/tools/model_utils/dialect/tfl/_conv_2d.py50CODE
LOWtensor/examples/gemma4/helpers/reference/attention.py42CODE
LOW…nsor/examples/gemma4/helpers/reference/gemma4_graph.py81CODE
LOWtensor/examples/gemma4/helpers/reference/transformer.py29CODE
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.py1580 # 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
Modern AI Meta-Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMlitert/vendors/qualcomm/README.md74 1. [Bring state-of-the-art agentic skills to the edge with Gemma 4](https://developers.googleblog.com/bring-state-oCODE