Repository Analysis

apache/tvm

Open Machine Learning Compiler Framework

17.2 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of apache/tvm, a Python project with 13,577 GitHub stars. SynthScan v2.0 examined 702,908 lines of code across 2223 source files, recording 11140 pattern matches distributed across 22 syntactic categories. The overall adjusted score of 17.2 places this repository in the Moderate 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).

17.2
Adjusted Score
17.2
Raw Score
100%
Time Factor
2026-07-13
Last Push
13.6K
Stars
Python
Language
702.9K
Lines of Code
2.2K
Files
11.1K
Pattern Hits
2026-07-14
Scan Date
0.05
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 35HIGH 74MEDIUM 621LOW 10410

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 11140 distinct pattern matches across 22 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.

Hyper-Verbose Identifiers4151 hits · 3832 pts
SeverityFileLineSnippetContext
LOWpython/tvm/topi/scatter.py28def _verify_scatter_nd_inputs(data, indices, updates):CODE
LOWpython/tvm/topi/math.py689def fixed_point_multiply_per_axis(CODE
LOWpython/tvm/topi/gpu/scan.py219def get_reduction_from_exclusive_scan(data, ex_scan_output, binop=operator.add):CODE
LOWpython/tvm/topi/nn/winograd_util.py164def winograd_transform_matrices(tile_size, kernel_size, out_dtype):CODE
LOWpython/tvm/topi/vision/nms_util.py245def collect_selected_indices_and_scores(CODE
LOWpython/tvm/topi/vision/nms.py852def _collect_selected_indices_ir(CODE
LOWpython/tvm/topi/vision/nms.py898def _collect_selected_indices_and_scores_ir(CODE
LOWpython/tvm/topi/vision/nms.py944def all_class_non_max_suppression(CODE
LOWpython/tvm/topi/image/resize.py28def can_convert_multiply_to_intdiv(origin_size, scaled_size):CODE
LOWpython/tvm/topi/testing/adaptive_pool_python.py77def adaptive_pool_channel_first(np_data, out_size, pool_op, np_op):CODE
LOWpython/tvm/topi/testing/adaptive_pool_python.py91def adaptive_pool_channel_last(np_data, out_size, pool_op, np_op):CODE
LOWpython/tvm/topi/testing/nms_python.py37def non_max_suppression_python(CODE
LOWpython/tvm/ir/instrument.py154def _wrap_class_pass_instrument(pi_cls):CODE
LOWpython/tvm/target/detect_target.py52def register_device_target_detector(device_type: str, detector: Callable[[Device], Target]) -> None:CODE
LOWpython/tvm/target/detect_target.py57def detect_target_from_device(dev: str | Device) -> Target:CODE
LOWpython/tvm/runtime/params.py98def load_param_dict_from_file(path):CODE
LOWpython/tvm/runtime/device.py87 def max_shared_memory_per_block(self):CODE
LOWpython/tvm/runtime/module.py112 def _collect_from_import_tree(self, filter_func):CODE
LOWpython/tvm/runtime/module.py235 def get_source_format_from_module(module):CODE
LOWpython/tvm/runtime/disco/session.py600def _create_socket_session_local_workers(num_workers) -> Session:CODE
LOWpython/tvm/s_tir/schedule/analysis.py69def get_tensorize_loop_mapping(CODE
LOWpython/tvm/s_tir/schedule/analysis.py97def get_auto_tensorize_mapping_info(CODE
LOWpython/tvm/s_tir/schedule/schedule.py79def _parse_error_render_level(error_render_level: str) -> int:CODE
LOWpython/tvm/s_tir/schedule/schedule.py104def _get_sblock_default_dtype(block: SBlock) -> str:CODE
LOWpython/tvm/s_tir/schedule/schedule.py1050 def matmul_after_reorder_block_iter_var(STRING
LOWpython/tvm/s_tir/schedule/schedule.py1588 def before_reindex_cache_read(a: T.handle, b: T.handle) -> None:STRING
LOWpython/tvm/s_tir/schedule/schedule.py1688 def before_reindex_cache_write(a: T.handle, b: T.handle) -> None:CODE
LOWpython/tvm/s_tir/schedule/schedule.py2174 def before_reverse_compute_at(a: T.handle, c: T.handle) -> None:CODE
LOWpython/tvm/s_tir/schedule/schedule.py3428 def two_elementwise_transformed_intermediate_buffer(a: T.handle, c: T.handle) -> None:CODE
LOWpython/tvm/s_tir/schedule/schedule.py3517 def before_transform_block_layout(CODE
LOWpython/tvm/s_tir/schedule/schedule.py3539 def after_transform_block_layout(CODE
LOWpython/tvm/s_tir/schedule/schedule.py3603 def before_set_axis_separator(CODE
LOWpython/tvm/s_tir/schedule/schedule.py3631 def after_set_axis_separators(CODE
LOWpython/tvm/s_tir/schedule/schedule.py3944 def unsafe_hide_buffer_access(CODE
LOWpython/tvm/s_tir/schedule/schedule.py4004 def before_annotate_buffer_access(STRING
LOWpython/tvm/s_tir/schedule/schedule.py4033 def after_annotate_buffer_access(STRING
LOWpython/tvm/s_tir/schedule/testing.py29def assert_structural_equal_ignore_global_symbol(CODE
LOWpython/tvm/s_tir/analysis/__init__.py58def get_sblock_read_write_region(CODE
LOWpython/tvm/s_tir/analysis/__init__.py145def calculate_allocated_bytes(CODE
LOWpython/tvm/s_tir/analysis/__init__.py197def get_vtcm_compaction_passes() -> list[tvm.transform.Pass]:CODE
LOWpython/tvm/s_tir/meta_schedule/logging.py179def _batch_parameterize_config(CODE
LOWpython/tvm/s_tir/meta_schedule/logging.py239def get_loggers_from_work_dir(CODE
LOWpython/tvm/s_tir/meta_schedule/trace_apply.py25def schedule_using_anchor_trace(sch: Schedule, anchor_trace: Trace, target: Target) -> None:CODE
LOWpython/tvm/s_tir/meta_schedule/relax_integration.py105def extracted_tasks_to_tune_contexts(CODE
LOWpython/tvm/s_tir/meta_schedule/utils.py134def get_global_func_with_default_on_worker(CODE
LOWpython/tvm/s_tir/meta_schedule/utils.py171def get_global_func_on_rpc_session(CODE
LOWpython/tvm/s_tir/meta_schedule/tune_context.py248 def generate_measure_candidates(self) -> list["MeasureCandidate"] | None:CODE
LOW…/s_tir/meta_schedule/schedule/cuda/layout_transform.py135 def pad_dimension_to_at_least_number(loop: LoopRV, requested_size: int):CODE
LOW…/s_tir/meta_schedule/schedule/cuda/layout_transform.py140 def pad_dimension_to_factor_of_tile_size(CODE
LOW…/s_tir/meta_schedule/schedule/cuda/layout_transform.py239 def get_high_level_loop_structure(CODE
LOW…/s_tir/meta_schedule/schedule/cuda/layout_transform.py503def cuda_layout_transform_schedule_rule(CODE
LOW…s_tir/meta_schedule/space_generator/space_generator.py65 def _initialize_with_tune_context(self, context: "TuneContext") -> None:CODE
LOW…s_tir/meta_schedule/space_generator/space_generator.py231 def _initialize_with_tune_context(self, context: "TuneContext") -> None:CODE
LOWpython/tvm/s_tir/meta_schedule/cost_model/xgb_model.py684 def optional_xgboost_callback(cls):CODE
LOWpython/tvm/s_tir/meta_schedule/postproc/postproc.py43 def _initialize_with_tune_context(self, context: "TuneContext") -> None:CODE
LOWpython/tvm/s_tir/meta_schedule/postproc/postproc.py149 def _initialize_with_tune_context(self, context: "TuneContext") -> None:CODE
LOWpython/tvm/s_tir/meta_schedule/testing/dummy_object.py56 def _initialize_with_tune_context(self, context: "TuneContext") -> None:CODE
LOW…n/tvm/s_tir/meta_schedule/testing/validate_database.py422 def f_with_args_alloc_argument_common(CODE
LOW…n/tvm/s_tir/meta_schedule/testing/validate_database.py449 def f_with_args_run_evaluator_common(CODE
LOW…n/tvm/s_tir/meta_schedule/testing/validate_database.py516 def f_with_args_alloc_argument_rpc(CODE
4091 more matches not shown…
Over-Commented Block1946 hits · 1890 pts
SeverityFileLineSnippetContext
LOW.asf.yaml1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOW.asf.yaml41COMMENT
LOW.markdownlint-cli2.yaml1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWCMakeLists.txt601set_property(TARGET tvm_compiler APPEND PROPERTY LINK_OPTIONS "${TVM_NO_UNDEFINED_SYMBOLS}")COMMENT
LOWCMakeLists.txt861# libtvm_runtime_extra assembly block above.COMMENT
LOW.pre-commit-config.yaml1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWpyproject.toml1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOW.yamllint.yaml1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWdocker/dev_common.sh1#!/bin/bash -eCOMMENT
LOWdocker/build.sh1#!/usr/bin/env bashCOMMENT
LOWdocker/build.sh21# Build a docker container and optionally execute command within a itCOMMENT
LOWdocker/build.sh41# DOCKERFILE_PATH: (Optional) Path to the Dockerfile used for docker build. IfCOMMENT
LOWdocker/bash.sh1#!/usr/bin/env bashCOMMENT
LOWdocker/bash.sh21# Start a bash, mount REPO_MOUNT_POINT to be current directory.COMMENT
LOWdocker/clear-stale-images.sh1#!/bin/bashCOMMENT
LOWdocker/install/ubuntu_install_core.sh1#!/bin/bashCOMMENT
LOWdocker/install/ubuntu_install_libtorch.sh1#!/bin/bashCOMMENT
LOWdocker/install/ubuntu_install_dgl.sh1#!/bin/bashCOMMENT
LOWdocker/install/ubuntu_setup_tz.sh1#!/bin/bashCOMMENT
LOWdocker/install/ubuntu_install_nodejs.sh1#!/bin/bashCOMMENT
LOWdocker/install/ubuntu_install_tflite.sh1#!/bin/bashCOMMENT
LOWdocker/install/ubuntu_install_googletest.sh1#!/bin/bashCOMMENT
LOWdocker/install/ubuntu_install_vulkan.sh1#!/bin/bashCOMMENT
LOWdocker/install/ubuntu_install_onnx.sh1#!/bin/bashCOMMENT
LOWdocker/install/ubuntu_install_dnnl.sh1#!/bin/bashCOMMENT
LOWdocker/install/ubuntu_install_aprofile_aem.sh1#!/bin/bashCOMMENT
LOWdocker/install/ubuntu_install_xgboost.sh1#!/bin/bashCOMMENT
LOWdocker/install/ubuntu_install_java.sh1#!/bin/bashCOMMENT
LOWdocker/install/ubuntu_install_jax.sh1#!/bin/bashCOMMENT
LOWdocker/install/ubuntu_install_sphinx.sh1#!/bin/bashCOMMENT
LOWdocker/install/ubuntu_install_rocm.sh1#!/bin/bashCOMMENT
LOWdocker/install/ubuntu_install_nnef.sh1#!/bin/bashCOMMENT
LOWdocker/install/ubuntu_install_universal.sh1#!/bin/bashCOMMENT
LOWdocker/install/ubuntu_install_cmake.sh1#!/bin/bashCOMMENT
LOWdocker/install/ubuntu_install_tensorflow_aarch64.sh1#!/bin/bashCOMMENT
LOWdocker/install/ubuntu_install_coreml.sh1#!/bin/bashCOMMENT
LOWdocker/install/ubuntu_install_emscripten.sh1#!/bin/bashCOMMENT
LOWdocker/install/ubuntu_install_opencl.sh1#!/bin/bashCOMMENT
LOWdocker/install/ubuntu_install_python_package.sh1#!/bin/bashCOMMENT
LOWdocker/install/ubuntu_install_python.sh1#!/bin/bashCOMMENT
LOWdocker/install/ubuntu_install_sccache.sh1#!/bin/bashCOMMENT
LOWdocker/install/ubuntu_install_tensorflow.sh1#!/bin/bashCOMMENT
LOWdocker/install/ubuntu_install_llvm.sh1#!/bin/bashCOMMENT
LOWdocker/install/ubuntu_install_cuda_python.sh1#!/bin/bashCOMMENT
LOWdocker/python/bootstrap/generate.sh1#!/bin/env bashCOMMENT
LOWdocker/utils/apt-install-and-clear.sh1#!/bin/bash -eCOMMENT
LOWdocker/utils/download-and-verify.sh1#!/bin/bashCOMMENT
LOWpython/tvm/error.py1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWpython/tvm/__init__.py1# isort: skip_fileCOMMENT
LOWpython/tvm/libinfo.py1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWpython/tvm/base.py1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWpython/tvm/topi/signal.py1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWpython/tvm/topi/slice_scatter.py1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWpython/tvm/topi/reduction.py1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWpython/tvm/topi/sort.py1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWpython/tvm/topi/einsum.py1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWpython/tvm/topi/unique.py1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWpython/tvm/topi/_te_tensor_overload.py1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWpython/tvm/topi/__init__.py1# isort: skip_fileCOMMENT
LOWpython/tvm/topi/__init__.py61# not import testing by defaultCOMMENT
1886 more matches not shown…
Unused Imports2174 hits · 1736 pts
SeverityFileLineSnippetContext
LOWpython/tvm/__init__.py26CODE
LOWpython/tvm/__init__.py26CODE
LOWpython/tvm/__init__.py26CODE
LOWpython/tvm/__init__.py29CODE
LOWpython/tvm/__init__.py33CODE
LOWpython/tvm/__init__.py34CODE
LOWpython/tvm/__init__.py34CODE
LOWpython/tvm/__init__.py34CODE
LOWpython/tvm/__init__.py34CODE
LOWpython/tvm/__init__.py34CODE
LOWpython/tvm/__init__.py34CODE
LOWpython/tvm/__init__.py35CODE
LOWpython/tvm/__init__.py35CODE
LOWpython/tvm/__init__.py35CODE
LOWpython/tvm/__init__.py35CODE
LOWpython/tvm/__init__.py36CODE
LOWpython/tvm/__init__.py36CODE
LOWpython/tvm/__init__.py42CODE
LOWpython/tvm/__init__.py43CODE
LOWpython/tvm/__init__.py44CODE
LOWpython/tvm/__init__.py45CODE
LOWpython/tvm/__init__.py49CODE
LOWpython/tvm/__init__.py52CODE
LOWpython/tvm/__init__.py55CODE
LOWpython/tvm/__init__.py58CODE
LOWpython/tvm/__init__.py61CODE
LOWpython/tvm/__init__.py64CODE
LOWpython/tvm/__init__.py64CODE
LOWpython/tvm/__init__.py67CODE
LOWpython/tvm/__init__.py70CODE
LOWpython/tvm/__init__.py73CODE
LOWpython/tvm/__init__.py73CODE
LOWpython/tvm/__init__.py79CODE
LOWpython/tvm/libinfo.py19CODE
LOWpython/tvm/topi/__init__.py29CODE
LOWpython/tvm/topi/__init__.py33CODE
LOWpython/tvm/topi/__init__.py35CODE
LOWpython/tvm/topi/__init__.py36CODE
LOWpython/tvm/topi/__init__.py37CODE
LOWpython/tvm/topi/__init__.py38CODE
LOWpython/tvm/topi/__init__.py39CODE
LOWpython/tvm/topi/__init__.py40CODE
LOWpython/tvm/topi/__init__.py41CODE
LOWpython/tvm/topi/__init__.py42CODE
LOWpython/tvm/topi/__init__.py43CODE
LOWpython/tvm/topi/__init__.py44CODE
LOWpython/tvm/topi/__init__.py45CODE
LOWpython/tvm/topi/__init__.py46CODE
LOWpython/tvm/topi/__init__.py47CODE
LOWpython/tvm/topi/__init__.py48CODE
LOWpython/tvm/topi/__init__.py49CODE
LOWpython/tvm/topi/__init__.py50CODE
LOWpython/tvm/topi/__init__.py51CODE
LOWpython/tvm/topi/__init__.py52CODE
LOWpython/tvm/topi/__init__.py53CODE
LOWpython/tvm/topi/__init__.py54CODE
LOWpython/tvm/topi/__init__.py55CODE
LOWpython/tvm/topi/__init__.py56CODE
LOWpython/tvm/topi/__init__.py59CODE
LOWpython/tvm/topi/gpu/__init__.py22CODE
2114 more matches not shown…
Decorative Section Separators537 hits · 1666 pts
SeverityFileLineSnippetContext
MEDIUMpython/tvm/base.py27# ----------------------------COMMENT
MEDIUMpython/tvm/base.py29# ----------------------------COMMENT
MEDIUM…d/trn/operator/tile_primitive/unary/with_bias_scale.py78# ---------------------------------------------------------------------------COMMENT
MEDIUM…d/trn/operator/tile_primitive/unary/with_bias_scale.py80# ---------------------------------------------------------------------------COMMENT
MEDIUM…m/backend/trn/operator/tile_primitive/unary/default.py80# ---------------------------------------------------------------------------COMMENT
MEDIUM…m/backend/trn/operator/tile_primitive/unary/default.py82# ---------------------------------------------------------------------------COMMENT
MEDIUM…/backend/trn/operator/tile_primitive/binary/default.py109# ---------------------------------------------------------------------------COMMENT
MEDIUM…/backend/trn/operator/tile_primitive/binary/default.py111# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py122# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py124# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py133# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py135# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py171# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py173# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py182# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py184# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py187# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py189# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py192# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py194# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py203# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py205# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py212# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py214# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py360# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py362# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py368# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py370# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py56# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py58# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py83# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py85# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py147# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py149# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py225# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py227# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py252# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py254# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py266# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py268# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py283# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py285# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py305# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py307# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py338# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/target_tags.py340# =====================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/lang/alloc_pool.py27# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tvm/backend/cuda/lang/alloc_pool.py29# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tvm/backend/cuda/lang/alloc_pool.py49# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tvm/backend/cuda/lang/alloc_pool.py51# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tvm/backend/cuda/lang/alloc_pool.py176# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tvm/backend/cuda/lang/alloc_pool.py178# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tvm/backend/cuda/lang/alloc_pool.py228# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tvm/backend/cuda/lang/alloc_pool.py230# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tvm/backend/cuda/lang/alloc_pool.py412# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tvm/backend/cuda/lang/alloc_pool.py414# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tvm/backend/cuda/operator/intrinsics/sync.py112# =============================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/operator/intrinsics/sync.py114# =============================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/operator/intrinsics/sync.py121# =============================================================================COMMENT
MEDIUMpython/tvm/backend/cuda/operator/intrinsics/sync.py123# =============================================================================COMMENT
477 more matches not shown…
Deep Nesting1492 hits · 1275 pts
SeverityFileLineSnippetContext
LOWpython/tvm/topi/signal.py27CODE
LOWpython/tvm/topi/signal.py131CODE
LOWpython/tvm/topi/signal.py71CODE
LOWpython/tvm/topi/signal.py160CODE
LOWpython/tvm/topi/unique.py25CODE
LOWpython/tvm/topi/sparse_reshape.py26CODE
LOWpython/tvm/topi/sparse_reshape.py74CODE
LOWpython/tvm/topi/utils.py176CODE
LOWpython/tvm/topi/scatter.py57CODE
LOWpython/tvm/topi/scatter.py98CODE
LOWpython/tvm/topi/scan.py33CODE
LOWpython/tvm/topi/scan.py118CODE
LOWpython/tvm/topi/scatter_elements.py27CODE
LOWpython/tvm/topi/scatter_elements.py99CODE
LOWpython/tvm/topi/index_put.py27CODE
LOWpython/tvm/topi/index_put.py91CODE
LOWpython/tvm/topi/gpu/sort.py39CODE
LOWpython/tvm/topi/gpu/sort.py85CODE
LOWpython/tvm/topi/gpu/sort.py185CODE
LOWpython/tvm/topi/gpu/sort.py1084CODE
LOWpython/tvm/topi/gpu/sort.py259CODE
LOWpython/tvm/topi/gpu/sort.py1122CODE
LOWpython/tvm/topi/gpu/scan.py57CODE
LOWpython/tvm/topi/gpu/scan.py219CODE
LOWpython/tvm/topi/gpu/scan.py246CODE
LOWpython/tvm/topi/gpu/scatter_elements.py30CODE
LOWpython/tvm/topi/gpu/scatter_elements.py62CODE
LOWpython/tvm/topi/gpu/scatter_nd.py31CODE
LOWpython/tvm/topi/gpu/scatter_nd.py35CODE
LOWpython/tvm/topi/nn/fifo_buffer.py29CODE
LOWpython/tvm/topi/nn/bitserial_util.py29CODE
LOWpython/tvm/topi/nn/utils.py118CODE
LOWpython/tvm/topi/nn/utils.py167CODE
LOWpython/tvm/topi/nn/utils.py215CODE
LOWpython/tvm/topi/nn/utils.py274CODE
LOWpython/tvm/topi/vision/nms_util.py87CODE
LOWpython/tvm/topi/vision/nms_util.py126CODE
LOWpython/tvm/topi/vision/nms_util.py288CODE
LOWpython/tvm/topi/vision/nms.py39CODE
LOWpython/tvm/topi/vision/nms.py182CODE
LOWpython/tvm/topi/vision/nms.py664CODE
LOWpython/tvm/topi/vision/nms.py706CODE
LOWpython/tvm/topi/vision/nms.py778CODE
LOWpython/tvm/topi/vision/nms.py852CODE
LOWpython/tvm/topi/vision/nms.py898CODE
LOWpython/tvm/topi/vision/nms.py944CODE
LOWpython/tvm/topi/vision/nms.py670CODE
LOWpython/tvm/topi/vision/nms.py724CODE
LOWpython/tvm/topi/vision/nms.py781CODE
LOWpython/tvm/topi/vision/nms.py824CODE
LOWpython/tvm/topi/image/resize.py140CODE
LOWpython/tvm/topi/image/resize.py178CODE
LOWpython/tvm/topi/image/resize.py224CODE
LOWpython/tvm/topi/image/resize.py373CODE
LOWpython/tvm/topi/image/resize.py495CODE
LOWpython/tvm/topi/image/resize.py746CODE
LOWpython/tvm/topi/image/resize.py959CODE
LOWpython/tvm/topi/testing/adaptive_pool_python.py91CODE
LOWpython/tvm/topi/testing/nms_python.py37CODE
LOWpython/tvm/topi/testing/pool_grad_python.py23CODE
1432 more matches not shown…
Hallucination Indicators35 hits · 385 pts
SeverityFileLineSnippetContext
CRITICAL…backend/cuda/operator/tile_primitive/copy_async/tma.py1200 T.ptx.cp_async.bulk.tensor.g2c(CODE
CRITICAL…backend/cuda/operator/tile_primitive/copy_async/tma.py1212 T.ptx.cp_async.bulk.tensor.s2g(CODE
CRITICAL…backend/cuda/operator/tile_primitive/copy_async/tma.py1220 T.ptx.cp_async.bulk.tensor.s2g_reduce(CODE
CRITICAL…end/adreno/test_transform_fold_vdevice_scope_change.py29 mod = tvm.relax.backend.adreno.transform.FoldVDeviceScopeChange()(input)CODE
CRITICAL…backend/adreno/test_transform_annotate_custom_scope.py93 mod = tvm.relax.backend.adreno.transform.AnnotateCustomMemoryScope(tgt)(mod)CODE
CRITICAL…backend/adreno/test_transform_annotate_custom_scope.py105 mod = tvm.relax.backend.adreno.transform.FoldVDeviceScopeChange()(mod)CODE
CRITICALtests/python/tirx/test_printer_tir_namespaces.py454 'T.ptx.cp_async.bulk.tensor.g2c(2, tm, 0, tm, 0, 1, T.uint64(0), 0, 0, 1, "")',CODE
CRITICALtests/python/tirx/test_printer_tir_namespaces.py466 'tm = T.handle()\nT.ptx.cp_async.bulk.tensor.g2c_prefetch(2, tm, T.uint64(0), 0, 0, 0, "")',CODE
CRITICALtests/python/tirx/test_printer_tir_namespaces.py470 'tm = T.handle()\nT.ptx.cp_async.bulk.tensor.s2g(2, 0, tm, T.uint64(0), 0, 0, 0, "")',CODE
CRITICALtests/python/tirx/test_parser_printer.py1812 T.ptx.cp_async.bulk.tensor.g2c(CODE
CRITICALtests/python/tirx/test_parser_printer.py1833 T.ptx.cp_async.bulk.tensor.s2g(CODE
CRITICALtests/python/tirx/test_parser_printer.py1853 T.ptx.cp_async.bulk.tensor.g2c_prefetch(CODE
CRITICALtests/python/tirx/test_parser_printer.py1874 T.ptx.cp_async.bulk.tensor.s2g_reduce(CODE
CRITICALtests/python/tirx/test_verifier.py215 T.ptx.cp_async.bulk.tensor.g2c(2, A_smem.data, bar.data, T.address_of(A_map), 0, 1, "", 0, 0) # noqCODE
CRITICALtests/python/tirx/codegen/test_codegen_hopper.py777 T.ptx.cp_async.bulk.tensor.g2c(len(shape), A_smem.access_ptr(Buffer.WRITE, offset=A_smemCODE
CRITICALtests/python/tirx/codegen/test_codegen_hopper.py780 T.ptx.cp_async.bulk.tensor.g2c(len(shape), A_smem.access_ptr(Buffer.WRITE, offset=A_smemCODE
CRITICALtests/python/tirx/codegen/test_codegen_hopper.py783 T.ptx.cp_async.bulk.tensor.g2c(len(shape), A_smem.access_ptr(Buffer.WRITE, offset=A_smemCODE
CRITICALtests/python/tirx/codegen/test_codegen_hopper.py786 T.ptx.cp_async.bulk.tensor.g2c(len(shape), A_smem.access_ptr(Buffer.WRITE, offset=A_smemCODE
CRITICALtests/python/tirx/codegen/test_codegen_hopper.py795 T.ptx.cp_async.bulk.tensor.s2g(len(shape), A_smem.access_ptr("r", offset=0), T.address_oCODE
CRITICALtests/python/tirx/codegen/test_codegen_hopper.py432 T.ptx.cp_async.bulk.tensor.g2c(len(shape), A_smem.data, T.address_of(bar), T.address_of(A_map), CODE
CRITICALtests/python/tirx/codegen/test_codegen_hopper.py441 T.ptx.cp_async.bulk.tensor.s2g(len(shape), A_smem.access_ptr("r", offset=0), T.address_of(B_map)CODE
CRITICALtests/python/tirx/codegen/test_codegen_hopper.py599 T.ptx.cp_async.bulk.tensor.g2c(len(shape), A_smem.data, T.address_of(bar), T.address_of(A_map), CODE
CRITICALtests/python/tirx/codegen/test_codegen_hopper.py608 T.ptx.cp_async.bulk.tensor.s2g(len(shape), A_smem.access_ptr("r", offset=0), T.address_of(B_map)CODE
CRITICALtests/python/tirx/codegen/test_codegen_hopper.py692 T.ptx.cp_async.bulk.tensor.g2c(len(shape), A_smem.data, T.address_of(bar), T.address_of(CODE
CRITICALtests/python/tirx/codegen/test_codegen_hopper.py701 T.ptx.cp_async.bulk.tensor.s2g(len(shape), A_smem.access_ptr("r", offset=0), T.address_oCODE
CRITICALtests/python/tirx/codegen/test_codegen_hopper.py860 T.ptx.cp_async.bulk.tensor.s2g(len(shape), A_smem.access_ptr("r", offset=0), T.address_of(A_map), "", *cCODE
CRITICALtests/python/tirx/codegen/test_codegen_hopper.py951 T.ptx.cp_async.bulk.tensor.g2c(len(shapeA), A_smem.data, T.address_of(bar), T.address_of(A_map), 0, 1, "CODE
CRITICALtests/python/tirx/codegen/test_codegen_hopper.py952 T.ptx.cp_async.bulk.tensor.g2c(len(shapeB), B_smem.data, T.address_of(bar), T.address_of(B_map), 0, 1, "CODE
CRITICALtests/python/tirx/codegen/test_codegen_hopper.py1111 T.ptx.cp_async.bulk.tensor.g2c(len(shapeB), B_smem.data, T.address_of(bar), T.address_of(B_map), 0, 1, "CODE
CRITICALtests/python/tirx/codegen/test_codegen_cuda.py324 T.ptx.cp_async.bulk.tensor.g2c(CODE
CRITICALtests/python/tirx/codegen/test_codegen_cuda.py336 T.ptx.cp_async.bulk.tensor.g2c(CODE
CRITICALtests/python/tirx/codegen/test_codegen_cuda.py348 T.ptx.cp_async.bulk.tensor.s2g(CODE
CRITICALtests/python/tirx/codegen/test_codegen_cuda.py352 T.ptx.cp_async.bulk.tensor.g2c_bar_addr(CODE
CRITICALtests/python/tirx/codegen/test_codegen_cuda.py365 T.ptx.cp_async.bulk.tensor.g2c_bar_addr(CODE
CRITICALtests/python/tirx/codegen/test_codegen_cuda.py378 T.ptx.cp_async.bulk.tensor.g2c_bar_addr(CODE
Cross-File Repetition58 hits · 290 pts
SeverityFileLineSnippetContext
HIGHpython/tvm/topi/math.py0take asinh of input x. parameters ---------- x : expr input argument. returns ------- y : expr the result.STRING
HIGHpython/tvm/topi/nn/elemwise.py0take asinh of input x. parameters ---------- x : expr input argument. returns ------- y : expr the result.STRING
HIGHpython/tvm/tirx/op.py0take asinh of input x. parameters ---------- x : expr input argument. returns ------- y : expr the result.STRING
HIGHpython/tvm/topi/testing/rms_norm_python.py0layer normalization operator in python. parameters ---------- data : numpy.ndarray n-d with shape (d_0, d_1, ..., d_{n-1STRING
HIGHpython/tvm/topi/testing/instance_norm_python.py0layer normalization operator in python. parameters ---------- data : numpy.ndarray n-d with shape (d_0, d_1, ..., d_{n-1STRING
HIGHpython/tvm/topi/testing/layer_norm_python.py0layer normalization operator in python. parameters ---------- data : numpy.ndarray n-d with shape (d_0, d_1, ..., d_{n-1STRING
HIGHpython/tvm/s_tir/meta_schedule/database/database.py0an abstract schedule rule with customized methods on the python-side. this is the user facing class for function overloaSTRING
HIGH…m/s_tir/meta_schedule/task_scheduler/task_scheduler.py0an abstract schedule rule with customized methods on the python-side. this is the user facing class for function overloaSTRING
HIGH…s_tir/meta_schedule/space_generator/space_generator.py0an abstract schedule rule with customized methods on the python-side. this is the user facing class for function overloaSTRING
HIGH…tir/meta_schedule/measure_callback/measure_callback.py0an abstract schedule rule with customized methods on the python-side. this is the user facing class for function overloaSTRING
HIGHpython/tvm/s_tir/meta_schedule/cost_model/cost_model.py0an abstract schedule rule with customized methods on the python-side. this is the user facing class for function overloaSTRING
HIGHpython/tvm/s_tir/meta_schedule/postproc/postproc.py0an abstract schedule rule with customized methods on the python-side. this is the user facing class for function overloaSTRING
HIGH…s_tir/meta_schedule/search_strategy/search_strategy.py0an abstract schedule rule with customized methods on the python-side. this is the user facing class for function overloaSTRING
HIGHpython/tvm/s_tir/meta_schedule/mutator/mutator.py0an abstract schedule rule with customized methods on the python-side. this is the user facing class for function overloaSTRING
HIGH…r/meta_schedule/feature_extractor/feature_extractor.py0an abstract schedule rule with customized methods on the python-side. this is the user facing class for function overloaSTRING
HIGH…tvm/s_tir/meta_schedule/schedule_rule/schedule_rule.py0an abstract schedule rule with customized methods on the python-side. this is the user facing class for function overloaSTRING
HIGHpython/tvm/s_tir/meta_schedule/runner/local_runner.py0default function to run the evaluator parameters ---------- session: rpcsession the session to run the evaluator rt_mod:STRING
HIGHpython/tvm/s_tir/meta_schedule/runner/utils.py0default function to run the evaluator parameters ---------- session: rpcsession the session to run the evaluator rt_mod:STRING
HIGHpython/tvm/s_tir/meta_schedule/runner/rpc_runner.py0default function to run the evaluator parameters ---------- session: rpcsession the session to run the evaluator rt_mod:STRING
HIGHpython/tvm/s_tir/meta_schedule/cost_model/xgb_model.py0update the cost model given running results. parameters ---------- context : tunecontext, the tuning context. candidatesSTRING
HIGH…hon/tvm/s_tir/meta_schedule/cost_model/random_model.py0update the cost model given running results. parameters ---------- context : tunecontext, the tuning context. candidatesSTRING
HIGHpython/tvm/s_tir/meta_schedule/cost_model/cost_model.py0update the cost model given running results. parameters ---------- context : tunecontext, the tuning context. candidatesSTRING
HIGH…hon/tvm/s_tir/meta_schedule/cost_model/random_model.py0save the cost model and data to given file location. parameters ---------- path : str the file path.STRING
HIGHpython/tvm/s_tir/meta_schedule/cost_model/cost_model.py0save the cost model and data to given file location. parameters ---------- path : str the file path.STRING
HIGHpython/tvm/s_tir/meta_schedule/cost_model/mlp_model.py0save the cost model and data to given file location. parameters ---------- path : str the file path.STRING
HIGHpython/tvm/s_tir/dlight/adreno/base.py0check whether the target is available for gpu rule. parameters ---------- target : target the compilation target to checSTRING
HIGHpython/tvm/s_tir/dlight/gpu/base.py0check whether the target is available for gpu rule. parameters ---------- target : target the compilation target to checSTRING
HIGHpython/tvm/s_tir/dlight/cpu/base.py0check whether the target is available for gpu rule. parameters ---------- target : target the compilation target to checSTRING
HIGH…hon/tvm/backend/cuda/operator/tile_primitive/common.py0return the smallest power of 2 greater than or equal to x.STRING
HIGH…ator/tile_primitive/cuda/gemm_async/test_gemm_async.py0return the smallest power of 2 greater than or equal to x.STRING
HIGH…x/operator/tile_primitive/cuda/copy_async/test_tmem.py0return the smallest power of 2 greater than or equal to x.STRING
HIGHpython/tvm/contrib/mkl.py0create an extern op that compute batched matrix mult of a and rhs with cblas this function serves as an example on how tSTRING
HIGHpython/tvm/contrib/cblas.py0create an extern op that compute batched matrix mult of a and rhs with cblas this function serves as an example on how tSTRING
HIGHpython/tvm/contrib/dnnl.py0create an extern op that compute batched matrix mult of a and rhs with cblas this function serves as an example on how tSTRING
HIGHpython/tvm/contrib/hipblas.py0create an extern op that compute batch matrix mult of a and rhs with cublas parameters ---------- lhs : tensor the left STRING
HIGHpython/tvm/contrib/cublaslt.py0create an extern op that compute batch matrix mult of a and rhs with cublas parameters ---------- lhs : tensor the left STRING
HIGHpython/tvm/contrib/cublas.py0create an extern op that compute batch matrix mult of a and rhs with cublas parameters ---------- lhs : tensor the left STRING
HIGHpython/tvm/relax/frontend/__init__.py0stablehlo frontends for constructing relax programs, with the model importersSTRING
HIGHpython/tvm/relax/frontend/torch/__init__.py0stablehlo frontends for constructing relax programs, with the model importersSTRING
HIGHpython/tvm/relax/frontend/stablehlo/__init__.py0stablehlo frontends for constructing relax programs, with the model importersSTRING
HIGHpython/tvm/relax/frontend/nn/llm/_kernel_common.py0the rope mode of the paged kv cache. if it is none, the kv cache will not apply rope to q and k. if it is normal, rope wSTRING
HIGH…x/test_runtime_builtin_paged_attention_kv_cache_cpu.py0the rope mode of the paged kv cache. if it is none, the kv cache will not apply rope to q and k. if it is normal, rope wSTRING
HIGHdocs/how_to/tutorials/optimize_llm.py0the rope mode of the paged kv cache. if it is none, the kv cache will not apply rope to q and k. if it is normal, rope wSTRING
HIGHpython/tvm/relax/backend/metal/coreml.py0partition the input module into hipblas-supported subgraphs. parameters ---------- mod: tvm.irmodule the irmodule to be STRING
HIGHpython/tvm/relax/backend/cuda/cudnn.py0partition the input module into hipblas-supported subgraphs. parameters ---------- mod: tvm.irmodule the irmodule to be STRING
HIGHpython/tvm/relax/backend/rocm/hipblas.py0partition the input module into hipblas-supported subgraphs. parameters ---------- mod: tvm.irmodule the irmodule to be STRING
HIGHtests/python/codegen/test_target_codegen_opencl.py0force the codegen wrapper into the fallback branch, then export+load+run.STRING
HIGHtests/python/codegen/test_target_codegen_cuda.py0force the codegen wrapper into the fallback branch, then export+load+run.STRING
HIGHtests/python/codegen/test_target_codegen_rocm.py0force the codegen wrapper into the fallback branch, then export+load+run.STRING
HIGHtests/python/relax/test_transform_convert_layout.py0layout_transform (nchw->nchw4c) | <- texture conv2d (1) <- textures as output / \ conv2d (2) conv2d (3) \ / <- concat doSTRING
HIGH…backend/adreno/test_transform_annotate_custom_scope.py0layout_transform (nchw->nchw4c) | <- texture conv2d (1) <- textures as output / \ conv2d (2) conv2d (3) \ / <- concat doSTRING
HIGHtests/python/relax/backend/adreno/test_texture_ops.py0layout_transform (nchw->nchw4c) | <- texture conv2d (1) <- textures as output / \ conv2d (2) conv2d (3) \ / <- concat doSTRING
HIGHtests/python/relax/test_transform_convert_layout.py0layout_transform (nchw->nchw4c) | <- texture conv2d (1) <- textures as output / \ conv2d (2) conv2d (3) <- conv2d (2) emSTRING
HIGH…backend/adreno/test_transform_annotate_custom_scope.py0layout_transform (nchw->nchw4c) | <- texture conv2d (1) <- textures as output / \ conv2d (2) conv2d (3) <- conv2d (2) emSTRING
HIGHtests/python/relax/backend/adreno/test_texture_ops.py0layout_transform (nchw->nchw4c) | <- texture conv2d (1) <- textures as output / \ conv2d (2) conv2d (3) <- conv2d (2) emSTRING
HIGHtests/python/relax/test_transform_convert_layout.py0verification of the pooling and many branches having textures layout_transform (nchw->nchw4c) | <- texture conv2d (0) <-STRING
HIGH…backend/adreno/test_transform_annotate_custom_scope.py0verification of the pooling and many branches having textures layout_transform (nchw->nchw4c) | <- texture conv2d (0) <-STRING
HIGHtests/python/relax/backend/adreno/test_texture_ops.py0verification of the pooling and many branches having textures layout_transform (nchw->nchw4c) | <- texture conv2d (0) <-STRING
AI Structural Patterns268 hits · 217 pts
SeverityFileLineSnippetContext
LOWpython/tvm/topi/sort.py67CODE
LOWpython/tvm/topi/sort.py219CODE
LOWpython/tvm/topi/nn/conv2d.py1278CODE
LOWpython/tvm/topi/nn/conv2d.py1409CODE
LOWpython/tvm/topi/nn/conv1d_transpose.py143CODE
LOWpython/tvm/topi/nn/lstm.py25CODE
LOWpython/tvm/topi/vision/nms.py476CODE
LOWpython/tvm/topi/image/resize.py224CODE
LOWpython/tvm/topi/image/resize.py373CODE
LOWpython/tvm/topi/image/resize.py495CODE
LOWpython/tvm/topi/image/resize.py746CODE
LOWpython/tvm/topi/image/resize.py959CODE
LOWpython/tvm/topi/image/resize.py1215CODE
LOWpython/tvm/topi/testing/nms_python.py37CODE
LOWpython/tvm/topi/testing/lstm_python.py24CODE
LOWpython/tvm/topi/testing/sequence_mask_python.py55CODE
LOWpython/tvm/runtime/script_printer.py53CODE
LOWpython/tvm/runtime/script_printer.py121CODE
LOWpython/tvm/runtime/script_printer.py253CODE
LOWpython/tvm/runtime/script_printer.py297CODE
LOWpython/tvm/runtime/module.py325CODE
LOWpython/tvm/te/operation.py435CODE
LOWpython/tvm/s_tir/meta_schedule/relax_integration.py163CODE
LOWpython/tvm/s_tir/meta_schedule/relax_integration.py277CODE
LOWpython/tvm/s_tir/meta_schedule/tune.py29CODE
LOWpython/tvm/s_tir/meta_schedule/tune_context.py98CODE
LOWpython/tvm/s_tir/meta_schedule/tir_integration.py45CODE
LOWpython/tvm/s_tir/meta_schedule/tir_integration.py167CODE
LOWpython/tvm/s_tir/meta_schedule/database/database.py435CODE
LOWpython/tvm/s_tir/meta_schedule/runner/local_runner.py236CODE
LOWpython/tvm/s_tir/meta_schedule/runner/rpc_runner.py236CODE
LOWpython/tvm/s_tir/meta_schedule/cost_model/xgb_model.py334CODE
LOWpython/tvm/s_tir/meta_schedule/cost_model/xgb_model.py634CODE
LOWpython/tvm/s_tir/meta_schedule/cost_model/mlp_model.py415CODE
LOW…n/tvm/s_tir/meta_schedule/testing/validate_database.py328CODE
LOW…r/meta_schedule/search_strategy/evolutionary_search.py59CODE
LOW…r/meta_schedule/feature_extractor/feature_extractor.py64CODE
LOWpython/tvm/s_tir/dlight/benchmark/bench.py155CODE
LOWpython/tvm/backend/cuda/op.py3509CODE
LOWpython/tvm/backend/cuda/op.py3596CODE
LOWpython/tvm/backend/cuda/op.py3659CODE
LOWpython/tvm/backend/cuda/op.py3881CODE
LOWpython/tvm/backend/cuda/op.py3919CODE
LOWpython/tvm/backend/cuda/op.py3955CODE
LOWpython/tvm/backend/cuda/operator/intrinsics/nvshmem.py97CODE
LOWpython/tvm/backend/cuda/operator/intrinsics/nvshmem.py124CODE
LOWpython/tvm/backend/cuda/operator/intrinsics/nvshmem.py154CODE
LOWpython/tvm/script/parser/core/evaluator.py356CODE
LOWpython/tvm/relax/base_py_module.py496CODE
LOWpython/tvm/relax/expr_functor.py275CODE
LOWpython/tvm/relax/expr_functor.py793CODE
LOWpython/tvm/relax/frontend/tflite/tflite_frontend.py1423CODE
LOWpython/tvm/relax/frontend/tflite/tflite_frontend.py1539CODE
LOWpython/tvm/relax/frontend/tflite/tflite_frontend.py1595CODE
LOWpython/tvm/relax/frontend/tflite/tflite_frontend.py3660CODE
LOWpython/tvm/relax/frontend/tflite/tflite_frontend.py3696CODE
LOWpython/tvm/relax/frontend/tflite/tflite_frontend.py3809CODE
LOWpython/tvm/relax/frontend/tflite/tflite_frontend.py3832CODE
LOWpython/tvm/relax/frontend/tflite/tflite_frontend.py3845CODE
LOWpython/tvm/relax/frontend/tflite/tflite_frontend.py3855CODE
208 more matches not shown…
Excessive Try-Catch Wrapping135 hits · 152 pts
SeverityFileLineSnippetContext
LOWpython/tvm/ir/instrument.py338 except Exception: # pylint: disable=broad-exception-caughtCODE
LOWpython/tvm/ir/base.py37 except Exception:CODE
LOWpython/tvm/runtime/_tensor.py114 except Exception:CODE
LOWpython/tvm/s_tir/schedule/_type_checker.py350 except Exception:CODE
LOW…hon/tvm/s_tir/meta_schedule/post_optimization/space.py237 except Exception: # pylint: disable=broad-except, invalid-nameCODE
LOW…hon/tvm/s_tir/meta_schedule/post_optimization/space.py251 except Exception: # pylint: disable=broad-except, invalid-nameCODE
LOWpython/tvm/s_tir/meta_schedule/runner/local_runner.py310 except Exception as exception: # pylint: disable=broad-exceptCODE
LOWpython/tvm/s_tir/meta_schedule/runner/rpc_runner.py127 except Exception as exception: # pylint: disable=broad-exceptCODE
MEDIUMpython/tvm/s_tir/meta_schedule/runner/rpc_runner.py119def result(self) -> RunnerResult:CODE
LOW…n/tvm/s_tir/meta_schedule/testing/validate_database.py769 except Exception as e: # pylint: disable=broad-except, invalid-nameCODE
LOWpython/tvm/s_tir/meta_schedule/testing/tune_utils.py107 except Exception as exc: # pylint: disable=broad-exceptCODE
LOWpython/tvm/s_tir/dlight/adreno/pool.py91 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/tvm/s_tir/dlight/adreno/fallback.py82 except Exception: # pylint: disable=broad-exception-caughtCODE
LOWpython/tvm/s_tir/dlight/adreno/fallback.py94 except Exception: # pylint: disable=broad-exception-caughtCODE
LOWpython/tvm/s_tir/dlight/analysis/common_analysis.py295 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/tvm/s_tir/dlight/analysis/common_analysis.py398 except Exception:CODE
LOWpython/tvm/backend/_autoload_backends.py87 except Exception as e: # pylint: disable=broad-exceptCODE
LOWpython/tvm/backend/loader.py171 except Exception:CODE
LOWpython/tvm/backend/metal/target_tags.py30 except Exception: # pylint: disable=broad-exceptCODE
MEDIUMpython/tvm/backend/metal/target_tags.py24def _register_metal_tag(name, max_threads, shared_mem, warp_size, mcpu):CODE
LOW…m/backend/cuda/operator/tile_primitive/layout_utils.py310 except Exception:CODE
LOW…ator/tile_primitive/permute_layout/warp_xor_swizzle.py242 except Exception as e:CODE
LOW…ckend/cuda/operator/tile_primitive/gemm/mma_m16n8k_.py106 except Exception as e: # follower dim layout incompatible with anchor decompositionCODE
LOW…ckend/cuda/operator/tile_primitive/gemm/mma_m16n8k_.py355 except Exception as e: # ICHECK failure -> layout not tileable as shape2dCODE
LOW…ckend/cuda/operator/tile_primitive/gemm/mma_m16n8k_.py368 except Exception as e: # ICHECK failure -> layout not tileable as shape2dCODE
LOW…ckend/cuda/operator/tile_primitive/gemm/mma_m16n8k_.py460 except Exception:CODE
MEDIUM…ckend/cuda/operator/tile_primitive/gemm/mma_m16n8k_.py335def _const(expr, name):CODE
LOW…nd/cuda/operator/tile_primitive/elementwise/_common.py169 except Exception as e: # pylint: disable=broad-exceptCODE
LOW…backend/cuda/operator/tile_primitive/copy_async/tma.py326 except Exception as err:CODE
LOW…backend/cuda/operator/tile_primitive/copy_async/tma.py403 except Exception:CODE
LOW…m/backend/cuda/operator/tile_primitive/copy/_common.py436 except Exception as e:CODE
LOW…m/backend/cuda/operator/tile_primitive/copy/_common.py483 except Exception as e:CODE
LOW…ckend/cuda/operator/tile_primitive/copy/ld_stmatrix.py196 except Exception:CODE
LOW…ckend/cuda/operator/tile_primitive/copy/ld_stmatrix.py268 except Exception:CODE
LOWpython/tvm/contrib/download.py123 except Exception as err:CODE
LOWpython/tvm/script/parser/core/parser.py337 except Exception as err: # pylint: disable=broad-exceptCODE
LOWpython/tvm/script/parser/core/parser.py628 except Exception as diag_err:CODE
LOWpython/tvm/script/parser/core/parser.py666 except Exception as err: # pylint: disable=broad-exceptCODE
MEDIUMpython/tvm/script/parser/core/parser.py58def context():CODE
LOWpython/tvm/script/parser/core/entry.py143 except Exception as err: # pylint: disable=broad-exception-caughtCODE
LOWpython/tvm/script/parser/core/entry.py173 except Exception as error:CODE
MEDIUMpython/tvm/script/parser/core/entry.py174 print(f"Error calling Python function {pyfunc.__name__}: {error}")CODE
LOWpython/tvm/script/parser/core/evaluator.py268 except Exception as err: # pylint: disable=broad-exceptCODE
LOWpython/tvm/script/parser/core/evaluator.py287 except Exception as err: # pylint: disable=broad-exceptCODE
LOWpython/tvm/script/parser/core/evaluator.py496 except Exception as err: # pylint: disable=broad-exceptCODE
LOWpython/tvm/script/parser/ir/entry.py105 except Exception: # pylint: disable=broad-exception-caughtCODE
LOWpython/tvm/testing/env.py94 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/tvm/testing/env.py110 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/tvm/testing/env.py130 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/tvm/testing/env.py144 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/tvm/testing/env.py257 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/tvm/testing/env.py272 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/tvm/testing/env.py299 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/tvm/testing/env.py318 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/tvm/testing/env.py334 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/tvm/testing/env.py351 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/tvm/testing/env.py367 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/tvm/testing/env.py380 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/tvm/testing/env.py402 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/tvm/support/popen_pool.py440 except Exception as exception:CODE
75 more matches not shown…
Self-Referential Comments51 hits · 134 pts
SeverityFileLineSnippetContext
MEDIUMpython/tvm/topi/testing/poolnd_python.py163 # Create a padded array, and a boolean mask showing which values are padded valuesCOMMENT
MEDIUMpython/tvm/te/operation.py179 # The following code is equivalent to numpy.cumsumSTRING
MEDIUM…/backend/trn/operator/tile_primitive/binary/default.py74 # Define the implementation functionCOMMENT
MEDIUMpython/tvm/support/nvcc.py514 # Define the vector-deprecation silencing macros as no-ops for every NVRTCSTRING
MEDIUMpython/tvm/relax/base_py_module.py479 # Create a wrapper that handles both instance methods and static functionsCOMMENT
MEDIUMpython/tvm/relax/relax_to_pyfunc_converter.py87 # Create a copy of the current IRModuleCOMMENT
MEDIUMpython/tvm/relax/relax_to_pyfunc_converter.py128 # Create the Python functionCOMMENT
MEDIUMpython/tvm/relax/frontend/tflite/tflite_frontend.py8904 # Define a tf.Module containing a tf.function with network definitionSTRING
MEDIUMpython/tvm/relax/frontend/nn/core.py359 """This method provides an iterator over module parameters,STRING
MEDIUMpython/tvm/relax/frontend/nn/core.py376 """This method provides an iterator over module parameters,STRING
MEDIUMpython/tvm/relax/frontend/onnx/onnx_frontend.py4013 # Create a tensor of zeros then scatter our data through it.COMMENT
MEDIUM…n/tvm/relax/frontend/torch/base_fx_graph_translator.py1486 # Create a placeholder for indices (empty tensor with same shape as output)COMMENT
MEDIUM…n/tvm/relax/frontend/torch/base_fx_graph_translator.py1502 # Create a placeholder for indices (empty tensor with same shape as output)COMMENT
MEDIUM…n/tvm/relax/frontend/torch/base_fx_graph_translator.py1518 # Create a placeholder for indices (empty tensor with same shape as output)COMMENT
MEDIUMpython/tvm/relax/frontend/torch/fx_translator.py1231 # Define the moduleSTRING
MEDIUM…vm/relax/frontend/torch/exported_program_translator.py190 # This method is called for batch_norm in training modeCOMMENT
MEDIUM…vm/relax/frontend/torch/exported_program_translator.py2346 # Define the moduleSTRING
MEDIUMpython/tvm/relax/testing/nn.py228 # Define a linear layerSTRING
MEDIUMpython/tvm/relax/transform/transform.py1115 # Define the pass input IRModuleSTRING
MEDIUMpython/tvm/relax/transform/transform.py1126 # Define the customized legalization function for "relax.add"STRING
MEDIUMpython/tvm/tirx/stmt_functor.py506 # Create the data_or_idx parameter based on what's availableCOMMENT
MEDIUMpython/tvm/tirx/expr.py325 # This class is not manipulated by C++. So use python's identity check function is sufficientCOMMENT
MEDIUMpython/tvm/tirx/expr.py369 # This class is not manipulated by C++. So use python's identity check function is sufficientCOMMENT
MEDIUMtests/python/driver/test_compile.py63 # Define a simple Relax programCOMMENT
MEDIUMtests/python/tirx-base/test_tir_expr_functor.py815 # Create a simple expressionCOMMENT
MEDIUMtests/python/tirx-base/test_tir_expr_functor.py818 # Create a mutator that replaces 'n' with a constantCOMMENT
MEDIUMtests/python/tirx-base/test_tir_stmt_functor.py994 # Create a new IntImm with negated valueCOMMENT
MEDIUMtests/python/runtime/test_executable.py107 # Create a temporary directory for the libraryCOMMENT
MEDIUMtests/python/runtime/test_executable.py181 # Create an executableCOMMENT
MEDIUMtests/python/runtime/test_executable.py237 # Create an executableCOMMENT
MEDIUMtests/python/s_tir/dlight/test_gpu_fallback.py203 # This function is identical, except that it is explicitlyCOMMENT
MEDIUMtests/python/codegen/test_target_codegen_llvm.py90 # Create an intrinsic that returns void.COMMENT
MEDIUMtests/python/tirx-transform/test_tir_functor.py266 # Create a simple for loopCOMMENT
MEDIUMtests/python/tirx-transform/test_tir_functor.py298 # Create an evaluate statement with an expressionCOMMENT
MEDIUMtests/python/support/test_util.py77 # Creating a new TempDirectory should fail nowCOMMENT
MEDIUM…/tirx-analysis/test_tir_analysis_verify_well_formed.py446 # Create an undeclared buffer using an explicit data pointer that is NOTCOMMENT
MEDIUM…ime_builtin_paged_attention_kv_cache_mla_flashinfer.py449 # Create a mask similar to np.tril and np.triu.COMMENT
MEDIUMtests/python/relax/test_pytorch_integration.py164 # Define a custom functionCOMMENT
MEDIUMtests/python/relax/test_base_py_module.py121 # Create a simple IRModule without TIR functions for GPU testingCOMMENT
MEDIUMtests/python/relax/test_dlpack_integration.py221 # Create a simple IRModuleCOMMENT
MEDIUM…st_runtime_builtin_paged_attention_kv_cache_mla_tir.py379 # Create a mask similar to np.tril and np.triu.COMMENT
MEDIUMtests/python/tirx/transform/test_tirx_expr_functor.py815 # Create a simple expressionCOMMENT
MEDIUMtests/python/tirx/transform/test_tirx_expr_functor.py818 # Create a mutator that replaces 'n' with a constantCOMMENT
MEDIUMtests/python/tirx/transform/test_stmt_functor.py1008 # Create a new IntImm with negated valueCOMMENT
MEDIUMtests/scripts/task_config_build_gpu_other.sh19# This file is a compiler test to ensure that runtimes can compileCOMMENT
MEDIUMdocs/conf.py23# This file is execfile()d with the current directory set to itsCOMMENT
MEDIUMdocs/how_to/tutorials/cross_compilation_and_rpc.py411# The following function shows how we run an OpenCL kernel remotelyCOMMENT
MEDIUMdocs/how_to/tutorials/customize_opt.py121# Define a new pass for CUBLAS dispatchCOMMENT
MEDIUMdocs/how_to/tutorials/import_model.py307 # Define a simple TF module and convert to TFLite.COMMENT
MEDIUMdocs/how_to/tutorials/optimize_llm.py530# Create the KVCacheCOMMENT
MEDIUMdocs/get_started/tutorials/ir_module.py57# Create a dummy modelCOMMENT
Verbosity Indicators67 hits · 123 pts
SeverityFileLineSnippetContext
LOWpython/tvm/topi/vision/nms.py220 # Step 1: Reorder data by sorted scoreCOMMENT
LOWpython/tvm/topi/vision/nms.py241 # Step 2: Apply NMS - greedy suppressionCOMMENT
LOWpython/tvm/ir/transform.py295 The following code block decorates a module pass class.STRING
LOWpython/tvm/s_tir/meta_schedule/runner/local_runner.py146 # Step 1: create the local runtime moduleCOMMENT
LOWpython/tvm/s_tir/meta_schedule/runner/local_runner.py149 # Step 2: Allocate input argumentsCOMMENT
LOWpython/tvm/s_tir/meta_schedule/runner/local_runner.py157 # Step 3: Run time_evaluatorCOMMENT
LOWpython/tvm/s_tir/meta_schedule/runner/rpc_runner.py394 # Step 3: Allocate input argumentsCOMMENT
LOWpython/tvm/s_tir/meta_schedule/runner/rpc_runner.py402 # Step 4: Run time_evaluatorCOMMENT
LOW…ackend/cuda/operator/tile_primitive/elementwise/reg.py292 # Step 1: slice + permute (region offset absorbed into op_p.offset; per-iterCOMMENT
LOW…ackend/cuda/operator/tile_primitive/elementwise/reg.py297 # Step 2: post-align thread-equality check. ``align`` is supposed toCOMMENT
LOW…ackend/cuda/operator/tile_primitive/elementwise/reg.py309 # Step 3: drop thread iters; from here on operands have mem-only layouts.COMMENT
LOW…ackend/cuda/operator/tile_primitive/elementwise/reg.py314 # Step 4: enumerate spec.vec_impls widest-first; try carve tail for eachCOMMENT
LOW…ackend/cuda/operator/tile_primitive/elementwise/reg.py319 # Step 5: totals + emit. per_thread_total = ∏ extents of (carved) memCOMMENT
LOW…ckend/cuda/operator/tile_primitive/copy/ld_stmatrix.py82 # Step 1: identify reg / smem sides and pull their tensor shape + layout.COMMENT
LOW…ckend/cuda/operator/tile_primitive/copy/ld_stmatrix.py126 # Step 3: ldstmatrix doesn't broadcast — require zero replica on both sides.COMMENT
LOW…ckend/cuda/operator/tile_primitive/copy/ld_stmatrix.py132 # Step 4: R must have exactly one kind of lane axis from the valid set.COMMENT
LOW…ckend/cuda/operator/tile_primitive/copy/ld_stmatrix.py140 # Step 5: group S by R's iter extents (one S group per R iter, outer→inner).COMMENT
LOW…ckend/cuda/operator/tile_primitive/copy/ld_stmatrix.py144 # Step 6: permute R so thread iters come first (stride-desc), then memoryCOMMENT
LOW…ckend/cuda/operator/tile_primitive/copy/ld_stmatrix.py149 # Step 7: apply R's perm to S in group units (1-to-1 with R's iters), andCOMMENT
LOW…ckend/cuda/operator/tile_primitive/copy/ld_stmatrix.py290 # Step 10: emit one ldmatrix/stmatrix per mm, per warp.COMMENT
LOWpython/tvm/script/parser/ir/parser.py54 # Step 1: Check if this class inherits from BasePyModuleCOMMENT
LOWpython/tvm/script/parser/ir/parser.py147 # We need to check if we're in a class that inherits from BasePyModuleCOMMENT
LOWpython/tvm/relax/transform/transform.py1686 The following code block decorates a function pass class.STRING
LOWpython/tvm/relax/transform/transform.py1830 The following code block decorates a dataflowblock pass class.STRING
LOWpython/tvm/tirx/build.py183 # Step 0: Determine the target in environmentCOMMENT
LOWpython/tvm/tirx/build.py191 # Step 1: Determine the target to search for tirx pipelineCOMMENT
LOWpython/tvm/tirx/build.py202 # Step 2: Determine the host targetCOMMENT
LOWpython/tvm/tirx/build.py214 # Step 3: Bind the target to the input moduleCOMMENT
LOWpython/tvm/tirx/build.py217 # Step 4: Apply the tirx pipelineCOMMENT
LOWpython/tvm/tirx/build.py229 # Step 5: Get host and device modulesCOMMENT
LOWpython/tvm/tirx/build.py232 # Step 6: Apply finalization passesCOMMENT
LOWpython/tvm/tirx/transform/function_pass.py110 The following code block decorates a function pass class.STRING
LOWinclude/tvm/topi/nn/pooling.h577 // In the case of ceil_mode=True, we need to check if the last pooling window is valid.COMMENT
LOWinclude/tvm/ir/config_schema.h125 // Step 1: validate/coerce and materialize options in declaration orderCOMMENT
LOWinclude/tvm/ir/config_schema.h140 // Step 2: unknown-key policyCOMMENT
LOWinclude/tvm/ir/config_schema.h157 // Step 3: whole-object canonicalization (last)COMMENT
LOWtests/python/relax/test_pytorch_integration.py287 # Step 1: TIR matmulCOMMENT
LOWtests/python/relax/test_pytorch_integration.py292 # Step 2: ReLUCOMMENT
LOWtests/python/relax/test_pytorch_integration.py297 # Step 3: Softmax via call_dps_packedCOMMENT
LOWtests/python/relax/test_pytorch_integration.py302 # Step 4: Identity functionCOMMENT
LOWtests/python/relax/test_base_py_module_printer.py435 # We need to check if they exist in the IRModule's pyfuncsCOMMENT
LOWdocs/how_to/tutorials/cross_compilation_and_rpc.py496 # Step 1: Define and Export PyTorch ModelCOMMENT
LOWdocs/how_to/tutorials/cross_compilation_and_rpc.py522 # Step 2: Convert to Relax and Prepare for CompilationCOMMENT
LOWdocs/how_to/tutorials/cross_compilation_and_rpc.py534 # Step 3: Cross-Compile for Target DeviceCOMMENT
LOWdocs/how_to/tutorials/cross_compilation_and_rpc.py588 # Step 4: Deploy to Remote Device via RPCCOMMENT
LOWdocs/how_to/tutorials/cross_compilation_and_rpc.py651 # Step 5: Run Inference on Remote DeviceCOMMENT
LOWdocs/how_to/tutorials/cross_compilation_and_rpc.py690 # Step 6: Performance Evaluation (Optional)COMMENT
LOW…s/how_to/tutorials/mix_python_and_tvm_with_pymodule.py72# Step 1: Your First Hybrid ModuleCOMMENT
LOW…s/how_to/tutorials/mix_python_and_tvm_with_pymodule.py123# Step 2: Debugging — The Main Selling PointCOMMENT
LOW…s/how_to/tutorials/mix_python_and_tvm_with_pymodule.py187# Step 3: A Realistic Pipeline — Python, TIR, and Packed FunctionsCOMMENT
LOW…s/how_to/tutorials/mix_python_and_tvm_with_pymodule.py260# Step 4: Relax-to-Python Converter — Verify at Any Compilation StageCOMMENT
LOW…s/how_to/tutorials/mix_python_and_tvm_with_pymodule.py332# Step 5: R.call_py_func — Python Callbacks in Compiled IRCOMMENT
LOW…s/how_to/tutorials/mix_python_and_tvm_with_pymodule.py383# Step 6: Cross-Level Calls and Symbolic ShapesCOMMENT
LOWdocs/how_to/tutorials/bring_your_own_codegen.py70# Step 1: Import the backends to register their patternsCOMMENT
LOWdocs/how_to/tutorials/bring_your_own_codegen.py103# Step 2: Define the modelCOMMENT
LOWdocs/how_to/tutorials/bring_your_own_codegen.py125# Step 3: Partition for the example NPUCOMMENT
LOWdocs/how_to/tutorials/bring_your_own_codegen.py153# Step 4: Codegen, build and run on the example NPUCOMMENT
LOWdocs/how_to/tutorials/export_and_load_executable.py247# # Step 1: Load the compiled libraryCOMMENT
LOWdocs/how_to/tutorials/export_and_load_executable.py250# # Step 2: Create Virtual MachineCOMMENT
LOWdocs/how_to/tutorials/export_and_load_executable.py254# # Step 3: Load parameters from the .npz fileCOMMENT
7 more matches not shown…
Structural Annotation Overuse61 hits · 115 pts
SeverityFileLineSnippetContext
LOWpython/tvm/topi/vision/nms.py220 # Step 1: Reorder data by sorted scoreCOMMENT
LOWpython/tvm/topi/vision/nms.py241 # Step 2: Apply NMS - greedy suppressionCOMMENT
LOWpython/tvm/s_tir/meta_schedule/runner/local_runner.py146 # Step 1: create the local runtime moduleCOMMENT
LOWpython/tvm/s_tir/meta_schedule/runner/local_runner.py149 # Step 2: Allocate input argumentsCOMMENT
LOWpython/tvm/s_tir/meta_schedule/runner/local_runner.py157 # Step 3: Run time_evaluatorCOMMENT
LOWpython/tvm/s_tir/meta_schedule/runner/rpc_runner.py394 # Step 3: Allocate input argumentsCOMMENT
LOWpython/tvm/s_tir/meta_schedule/runner/rpc_runner.py402 # Step 4: Run time_evaluatorCOMMENT
LOW…ackend/cuda/operator/tile_primitive/elementwise/reg.py292 # Step 1: slice + permute (region offset absorbed into op_p.offset; per-iterCOMMENT
LOW…ackend/cuda/operator/tile_primitive/elementwise/reg.py297 # Step 2: post-align thread-equality check. ``align`` is supposed toCOMMENT
LOW…ackend/cuda/operator/tile_primitive/elementwise/reg.py309 # Step 3: drop thread iters; from here on operands have mem-only layouts.COMMENT
LOW…ackend/cuda/operator/tile_primitive/elementwise/reg.py314 # Step 4: enumerate spec.vec_impls widest-first; try carve tail for eachCOMMENT
LOW…ackend/cuda/operator/tile_primitive/elementwise/reg.py319 # Step 5: totals + emit. per_thread_total = ∏ extents of (carved) memCOMMENT
LOW…ckend/cuda/operator/tile_primitive/copy/ld_stmatrix.py82 # Step 1: identify reg / smem sides and pull their tensor shape + layout.COMMENT
LOW…ckend/cuda/operator/tile_primitive/copy/ld_stmatrix.py126 # Step 3: ldstmatrix doesn't broadcast — require zero replica on both sides.COMMENT
LOW…ckend/cuda/operator/tile_primitive/copy/ld_stmatrix.py132 # Step 4: R must have exactly one kind of lane axis from the valid set.COMMENT
LOW…ckend/cuda/operator/tile_primitive/copy/ld_stmatrix.py140 # Step 5: group S by R's iter extents (one S group per R iter, outer→inner).COMMENT
LOW…ckend/cuda/operator/tile_primitive/copy/ld_stmatrix.py144 # Step 6: permute R so thread iters come first (stride-desc), then memoryCOMMENT
LOW…ckend/cuda/operator/tile_primitive/copy/ld_stmatrix.py149 # Step 7: apply R's perm to S in group units (1-to-1 with R's iters), andCOMMENT
LOW…ckend/cuda/operator/tile_primitive/copy/ld_stmatrix.py290 # Step 10: emit one ldmatrix/stmatrix per mm, per warp.COMMENT
LOWpython/tvm/script/parser/ir/parser.py54 # Step 1: Check if this class inherits from BasePyModuleCOMMENT
LOWpython/tvm/relax/backend/cuda/flashinfer.py325 # NOTE: This function is still under development,COMMENT
LOWpython/tvm/tirx/build.py183 # Step 0: Determine the target in environmentCOMMENT
LOWpython/tvm/tirx/build.py191 # Step 1: Determine the target to search for tirx pipelineCOMMENT
LOWpython/tvm/tirx/build.py202 # Step 2: Determine the host targetCOMMENT
LOWpython/tvm/tirx/build.py214 # Step 3: Bind the target to the input moduleCOMMENT
LOWpython/tvm/tirx/build.py217 # Step 4: Apply the tirx pipelineCOMMENT
LOWpython/tvm/tirx/build.py229 # Step 5: Get host and device modulesCOMMENT
LOWpython/tvm/tirx/build.py232 # Step 6: Apply finalization passesCOMMENT
LOWinclude/tvm/ir/config_schema.h125 // Step 1: validate/coerce and materialize options in declaration orderCOMMENT
LOWinclude/tvm/ir/config_schema.h140 // Step 2: unknown-key policyCOMMENT
LOWinclude/tvm/ir/config_schema.h157 // Step 3: whole-object canonicalization (last)COMMENT
LOWtests/python/relax/test_pytorch_integration.py287 # Step 1: TIR matmulCOMMENT
LOWtests/python/relax/test_pytorch_integration.py292 # Step 2: ReLUCOMMENT
LOWtests/python/relax/test_pytorch_integration.py297 # Step 3: Softmax via call_dps_packedCOMMENT
LOWtests/python/relax/test_pytorch_integration.py302 # Step 4: Identity functionCOMMENT
LOWdocs/how_to/tutorials/cross_compilation_and_rpc.py496 # Step 1: Define and Export PyTorch ModelCOMMENT
LOWdocs/how_to/tutorials/cross_compilation_and_rpc.py522 # Step 2: Convert to Relax and Prepare for CompilationCOMMENT
LOWdocs/how_to/tutorials/cross_compilation_and_rpc.py534 # Step 3: Cross-Compile for Target DeviceCOMMENT
LOWdocs/how_to/tutorials/cross_compilation_and_rpc.py588 # Step 4: Deploy to Remote Device via RPCCOMMENT
LOWdocs/how_to/tutorials/cross_compilation_and_rpc.py651 # Step 5: Run Inference on Remote DeviceCOMMENT
LOWdocs/how_to/tutorials/cross_compilation_and_rpc.py690 # Step 6: Performance Evaluation (Optional)COMMENT
LOW…s/how_to/tutorials/mix_python_and_tvm_with_pymodule.py72# Step 1: Your First Hybrid ModuleCOMMENT
LOW…s/how_to/tutorials/mix_python_and_tvm_with_pymodule.py123# Step 2: Debugging — The Main Selling PointCOMMENT
LOW…s/how_to/tutorials/mix_python_and_tvm_with_pymodule.py187# Step 3: A Realistic Pipeline — Python, TIR, and Packed FunctionsCOMMENT
LOW…s/how_to/tutorials/mix_python_and_tvm_with_pymodule.py260# Step 4: Relax-to-Python Converter — Verify at Any Compilation StageCOMMENT
LOW…s/how_to/tutorials/mix_python_and_tvm_with_pymodule.py332# Step 5: R.call_py_func — Python Callbacks in Compiled IRCOMMENT
LOW…s/how_to/tutorials/mix_python_and_tvm_with_pymodule.py383# Step 6: Cross-Level Calls and Symbolic ShapesCOMMENT
LOWdocs/how_to/tutorials/bring_your_own_codegen.py70# Step 1: Import the backends to register their patternsCOMMENT
LOWdocs/how_to/tutorials/bring_your_own_codegen.py103# Step 2: Define the modelCOMMENT
LOWdocs/how_to/tutorials/bring_your_own_codegen.py125# Step 3: Partition for the example NPUCOMMENT
LOWdocs/how_to/tutorials/bring_your_own_codegen.py153# Step 4: Codegen, build and run on the example NPUCOMMENT
LOWdocs/how_to/tutorials/export_and_load_executable.py247# # Step 1: Load the compiled libraryCOMMENT
LOWdocs/how_to/tutorials/export_and_load_executable.py250# # Step 2: Create Virtual MachineCOMMENT
LOWdocs/how_to/tutorials/export_and_load_executable.py254# # Step 3: Load parameters from the .npz fileCOMMENT
LOWdocs/how_to/tutorials/export_and_load_executable.py259# # Step 4: Prepare input dataCOMMENT
LOWdocs/how_to/tutorials/export_and_load_executable.py263# # Step 5: Run inference (pass input followed by all parameters)COMMENT
LOWdocs/how_to/tutorials/export_and_load_executable.py266# # Step 6: Extract result (output may be tuple or single Tensor)COMMENT
LOWdocs/how_to/tutorials/export_and_load_executable.py342# # Step 1: Cross-compile for ARM target (on local machine)COMMENT
LOWdocs/how_to/tutorials/export_and_load_executable.py347# # Step 2: Connect to remote device RPC serverCOMMENT
LOWdocs/how_to/tutorials/export_and_load_executable.py350# # Step 3: Upload the compiled library and parametersCOMMENT
1 more matches not shown…
Redundant / Tautological Comments48 hits · 77 pts
SeverityFileLineSnippetContext
LOWpython/tvm/topi/sparse_reshape.py134 # Check if prev_shape and new_shape are equalCOMMENT
LOW…n/tvm/backend/trn/operator/tile_primitive/dim_utils.py225 # Check if there is a direct mappingCOMMENT
LOWpython/tvm/backend/cuda/lang/tile_scheduler.py377 # Check if we're in the full block regionCOMMENT
LOWpython/tvm/script/parser/ir/parser.py146 # Check if Python functions are allowed in this contextCOMMENT
LOWpython/tvm/relax/relax_to_pyfunc_converter.py419 # Check if it's a function parameterCOMMENT
LOWpython/tvm/relax/relax_to_pyfunc_converter.py424 # Check if it's a bound variableCOMMENT
LOWpython/tvm/relax/frontend/tflite/tflite_frontend.py1081 # Check if the tensors are quantized. Parse if yes.COMMENT
LOWpython/tvm/relax/frontend/tflite/tflite_frontend.py3813 # Check if the input tensor is quantized, call QNN opCOMMENT
LOW…n/tvm/relax/frontend/torch/base_fx_graph_translator.py174 # Check if this is a null_value expressionCOMMENT
LOW…n/tvm/relax/frontend/torch/base_fx_graph_translator.py2056 # Check if all indices can be squeezed to 1D for sequential takeCOMMENT
LOWpython/tvm/relax/frontend/torch/fx_translator.py105 # Check if input is integer type and convert to float32 if neededCOMMENT
LOWpython/tvm/relax/frontend/torch/fx_translator.py115 # Check if input is integer type and convert to float32 if neededCOMMENT
LOW…vm/relax/frontend/torch/exported_program_translator.py109 # Check if input is integer type and convert to float32 if neededCOMMENT
LOW…vm/relax/frontend/torch/exported_program_translator.py119 # Check if input is integer type and convert to float32 if neededCOMMENT
LOWpython/tvm/relax/backend/cuda/cutlass.py137 # Check if any dimensions are symbolic.COMMENT
LOWpython/tvm/relax/backend/cuda/cudnn.py55 # Check if the data types of input and weights are supported by cuDNN BYOCCOMMENT
LOWpython/tvm/relax/script/parser/parser.py139 # Check if it calls into a funcCOMMENT
LOWpython/tvm/relax/script/parser/parser.py163 # Check if it is a recursive functionCOMMENT
LOWpython/tvm/tirx/stmt_functor.py750 # Check if anything changedCOMMENT
LOWpython/tvm/tirx/buffer.py359 # Check if all positional args are integers/PrimExprs with dtype int32 or int64 (the shape) # noqa: E501COMMENT
LOWpython/tvm/tirx/script/builder/external_kernel.py162 # Check if NVSHMEM is used - requires cubin output for device library linkingCOMMENT
LOWtests/lint/check_asf_header.py308 # Check if file should be skippedCOMMENT
LOWtests/lint/check_asf_header.py312 # Check if this file type is supportedCOMMENT
LOWtests/python/contrib/test_example_npu.py98# Check if the example NPU runtime is availableCOMMENT
LOWtests/python/codegen/test_target_codegen_aarch64.py634 # Check if the vscale_range() attribute existsCOMMENT
LOWtests/python/tvmscript/test_tvmscript_ir_builder_tir.py471 # Check if the generated ir is expectedCOMMENT
LOWtests/python/tvmscript/test_tvmscript_ir_builder_tir.py50 # Check if the generated ir is expectedCOMMENT
LOWtests/python/tvmscript/test_tvmscript_ir_builder_tir.py97 # Check if the generated ir is expectedCOMMENT
LOWtests/python/tvmscript/test_tvmscript_ir_builder_tir.py126 # Check if the generated ir is expectedCOMMENT
LOWtests/python/tvmscript/test_tvmscript_ir_builder_tir.py176 # Check if the generated ir is expectedCOMMENT
LOWtests/python/tvmscript/test_tvmscript_ir_builder_tir.py220 # Check if the generated ir is expectedCOMMENT
LOWtests/python/tvmscript/test_tvmscript_ir_builder_tir.py276 # Check if the generated ir is expectedCOMMENT
LOWtests/python/tvmscript/test_tvmscript_ir_builder_tir.py296 # Check if the generated ir is expectedCOMMENT
LOWtests/python/tvmscript/test_tvmscript_ir_builder_tir.py319 # Check if the generated ir is expectedCOMMENT
LOWtests/python/tvmscript/test_tvmscript_ir_builder_tir.py333 # Check if the generated ir is expectedCOMMENT
LOWtests/python/tvmscript/test_tvmscript_ir_builder_tir.py354 # Check if the generated ir is expectedCOMMENT
LOWtests/python/tvmscript/test_tvmscript_ir_builder_tir.py388 # Check if the generated ir is expectedCOMMENT
LOWtests/python/tvmscript/test_tvmscript_ir_builder_tir.py410 # Check if the generated ir is expectedCOMMENT
LOWtests/python/tvmscript/test_tvmscript_ir_builder_tir.py426 # Check if the generated ir is expectedCOMMENT
LOWtests/python/tvmscript/test_tvmscript_ir_builder_tir.py444 # Check if the generated ir is expectedCOMMENT
LOWtests/python/tvmscript/test_tvmscript_ir_builder_tir.py505 # Check if the generated ir is expectedCOMMENT
LOWtests/python/relax/test_tvmscript_pyfunc.py145 # Check if functions attribute existsCOMMENT
LOWtests/python/relax/test_tvmscript_pyfunc.py157 # Check if script method existsCOMMENT
LOWtests/python/relax/test_tvmscript_pyfunc.py169 # Check if inheritance flag exists (this might not be set in all implementations)COMMENT
LOWtests/python/relax/test_tvmscript_pyfunc.py176 # Check if original class is preserved (this might not be set in all implementations)COMMENT
LOWtests/python/relax/test_base_py_module.py75 # Check if target contains "cuda" instead of exact matchCOMMENT
LOWtests/scripts/ci.py552 # Check if it should be a flagCOMMENT
LOWdocs/how_to/tutorials/customize_opt.py125 # Check if CUBLAS is enabledCOMMENT
Modern Structural Boilerplate63 hits · 64 pts
SeverityFileLineSnippetContext
LOWpython/tvm/target/tag.py21__all__ = ["list_tags", "register_tag"]CODE
LOWpython/tvm/runtime/vm.py90 def _setup_device(self, dev: Device, memory_cfg: str | dict[Device, str]) -> None:CODE
LOWpython/tvm/runtime/vm.py250 def set_input(self, func_name: str, *args: Any, **kwargs: Any) -> None:CODE
LOWpython/tvm/runtime/vm.py325 def set_instrument(self, instrument: Function) -> None:CODE
LOWpython/tvm/s_tir/dlight/analysis/common_analysis.py33logger = logging.getLogger(__name__) # pylint: disable=invalid-nameCODE
LOWpython/tvm/s_tir/tensor_intrin/riscv_cpu.py31logger = logging.getLogger(__name__)CODE
LOWpython/tvm/backend/__init__.py27__all__ = ["is_loaded", "load"]CODE
LOWpython/tvm/backend/loader.py117def _set_module_alias(alias: str, module, *, direct: bool = False) -> None:CODE
LOWpython/tvm/backend/loader.py187__all__ = ["is_loaded", "load"]CODE
LOWpython/tvm/backend/adreno/__init__.py39__all__ = ["register_backend", "target_tags"]CODE
LOWpython/tvm/backend/trn/layout.py123__all__ = ["is_trainium_layout", "to_psum_layout", "trainium_layout"]CODE
LOWpython/tvm/backend/trn/__init__.py57__all__ = [CODE
LOWpython/tvm/backend/trn/op.py136__all__ = [CODE
LOWpython/tvm/backend/trn/pipeline.py58__all__ = ["finalize_device_passes_trn", "trn_pipeline"]CODE
LOWpython/tvm/backend/trn/script.py58__all__ = ["NKINamespace", "OpWrapper"]CODE
LOWpython/tvm/backend/trn/transform/__init__.py53__all__ = ["LowerTIRx", "LowerTrainiumLayout", "TrnNaiveAllocator", "TrnPrivateBufferAlloc"]CODE
LOWpython/tvm/backend/trn/operator/__init__.py22__all__ = ["tile_primitive"]CODE
LOWpython/tvm/backend/metal/__init__.py82__all__ = [CODE
LOWpython/tvm/backend/metal/op.py79__all__ = [CODE
LOWpython/tvm/backend/metal/script.py55__all__ = ["MetalNamespace"]CODE
LOWpython/tvm/backend/cuda/__init__.py94__all__ = [CODE
LOWpython/tvm/backend/cuda/script.py573__all__ = ["CUDANamespace", "NVSHMEMNamespace", "PTXNamespace"]CODE
LOWpython/tvm/backend/cuda/lang/__init__.py21__all__ = [CODE
LOWpython/tvm/backend/cuda/operator/__init__.py19__all__ = ["intrinsics", "tile_primitive"]CODE
LOWpython/tvm/backend/cuda/operator/intrinsics/__init__.py42__all__ = [CODE
LOW…ator/tile_primitive/permute_layout/warp_xor_swizzle.py423__all__ = [CODE
LOW…nd/cuda/operator/tile_primitive/elementwise/_common.py392__all__ = [CODE
LOW…da/operator/tile_primitive/elementwise/ops/__init__.py121__all__ = ["ALL_OPS", "OpSpec", "Plan", "SrcSpec", "VecImpl"]CODE
LOW…ckend/cuda/operator/tile_primitive/copy/ld_stmatrix.py450__all__ = ["copy_schedule_ldstmatrix"]CODE
LOWpython/tvm/backend/webgpu/__init__.py25__all__ = ["register_backend"]CODE
LOWpython/tvm/backend/hexagon/__init__.py51__all__ = ["register_backend", "target_tags"]CODE
LOWpython/tvm/backend/opencl/__init__.py58__all__ = ["register_backend"]CODE
LOWpython/tvm/backend/vulkan/__init__.py69__all__ = ["register_backend"]CODE
LOWpython/tvm/backend/rocm/__init__.py59__all__ = ["register_backend"]CODE
LOWpython/tvm/contrib/hexagon/hexagon_unary_ops.py25logger = logging.getLogger(__name__)CODE
LOWpython/tvm/script/parser/core/doc_core.py954__all__ = [CODE
LOWpython/tvm/script/parser/ir/__init__.py26__all__ = [CODE
LOWpython/tvm/arith/analyzer.py165 def set_z3_timeout_ms(self, timeout_ms: int) -> None:CODE
LOWpython/tvm/arith/analyzer.py181 def set_z3_rlimit(self, rlimit: int) -> None:CODE
LOWpython/tvm/arith/analyzer.py375 def set_maximum_rewrite_steps(self, maximum: int) -> None:CODE
LOWpython/tvm/testing/env.py54__all__ = [CODE
LOWpython/tvm/relax/expr_functor.py1455 def set_var_remap(self, old_var: Var, new_var: Var) -> None:CODE
LOWpython/tvm/relax/block_builder.py738 def update_func(self, gv: GlobalVar, updated_func: BaseFunc) -> None:CODE
LOWpython/tvm/relax/expr.py883def _update_type(expr: Expr, ty: Type | None) -> None:CODE
LOWpython/tvm/relax/frontend/tflite/tflite_frontend.py36__all__ = ["from_tflite"]CODE
LOWpython/tvm/relax/frontend/nn/core.py78def set_default_dtype(dtype: str) -> None:CODE
LOWpython/tvm/relax/frontend/nn/core.py342 def set_state(self, state_vars: list[rx.Var]) -> None:CODE
LOWpython/tvm/relax/frontend/nn/modules.py49 def set_state(self, state_vars: list[rx.Var]) -> None:CODE
LOWpython/tvm/relax/frontend/nn/modules.py838 def set_state(self, state_vars: list[rx.Var]) -> None:CODE
LOWpython/tvm/relax/frontend/nn/llm/kv_cache.py85__all__ = [CODE
LOWpython/tvm/relax/training/optimizer.py140 def _set_params_and_dtype(self, params: list[Var]) -> None:CODE
LOW…thon/tvm/relax/backend/contrib/example_npu/__init__.py31__all__ = ["patterns"]CODE
LOWpython/tvm/relax/script/parser/dist.py106__all__ = ["DTensor", "device_mesh"]CODE
LOWpython/tvm/relax/script/builder/ir.py800__all__ = [CODE
LOWpython/tvm/tirx/script/tile.py110__all__ = [CODE
LOWpython/tvm/tirx/script/builder/ir.py3254__all__ = [CODE
LOWpython/tvm/tirx/script/builder/tirx.py1631__all__ = [CODE
LOWpython/tvm/tirx/operator/__init__.py41__all__ = ["get_tirx_op"]CODE
LOWpython/tvm/tirx/operator/tile_primitive/__init__.py30__all__ = ["DispatchContext", "fail", "list_registered_schedules", "predicate", "register_dispatch"]CODE
LOWtests/python/relax/test_vm_build.py1009def set_input_attempt_stateless(vm: relax.VirtualMachine, device: tvm.runtime.Device) -> None:CODE
3 more matches not shown…
Cross-Language Confusion12 hits · 60 pts
SeverityFileLineSnippetContext
HIGHpython/tvm/backend/cuda/operator/intrinsics/header.py643 GmmaDescriptor(GmmaDescriptor && t) noexcept : desc_(t.desc_) {}CODE
HIGHpython/tvm/backend/cuda/operator/intrinsics/header.py652 GmmaDescriptor& operator=(GmmaDescriptor && t) noexcept {CODE
HIGHpython/tvm/contrib/cutlass/gemm_profiler.py170 for (int i = 1; i < argc && i < 4; ++i) {STRING
HIGHpython/tvm/relax/frontend/tflite/tflite_flexbuffer.py87 # Keys are strings here. The format is all strings separated by null, followed by backCOMMENT
HIGH…ython/s_tir/meta_schedule/test_meta_schedule_runner.py626 global repeated_args_before # pylint: disable=global-variable-undefined, invalid-nameCODE
HIGH…ython/s_tir/meta_schedule/test_meta_schedule_runner.py640 global repeated_args_before # pylint: disable=global-variable-undefined, invalid-nameCODE
HIGH…ython/s_tir/meta_schedule/test_meta_schedule_runner.py734 global repeated_args_before # pylint: disable=global-variable-undefined, invalid-nameCODE
HIGH…ython/s_tir/meta_schedule/test_meta_schedule_runner.py753 global repeated_args_before # pylint: disable=global-variable-undefined, invalid-nameCODE
HIGH…ython/s_tir/meta_schedule/test_meta_schedule_runner.py846 global repeated_args_before # pylint: disable=global-variable-undefined, invalid-nameCODE
HIGH…ython/s_tir/meta_schedule/test_meta_schedule_runner.py859 global repeated_args_before # pylint: disable=global-variable-undefined, invalid-nameCODE
HIGHtests/python/arith/test_arith_z3.py631 # i.e. EnterConstraint's solver.push()/pop() must be balanced.COMMENT
HIGH…s/python/tirx-transform/test_tir_transform_simplify.py377 simplification that ``!(x || y) == !x && !y``.STRING
AI Slop Vocabulary24 hits · 50 pts
SeverityFileLineSnippetContext
LOWpython/tvm/topi/nn/qnn.py67 # When disabled, just pass through the input values.COMMENT
LOWpython/tvm/topi/nn/qnn.py157 # When disabled simply return the input tensor.COMMENT
MEDIUM…ackend/cuda/operator/tile_primitive/elementwise/reg.py288 # trivial / identity layouts are fine — the algorithm is robust toCOMMENT
LOW…d/cuda/operator/tile_primitive/elementwise/ops/cast.py39 # Schedule wraps with Tx.cast(..., dst.dtype) — just pass through.COMMENT
LOWpython/tvm/script/parser/core/diagnostics.py87 # Since `findsource` is an internal API of inspect, we just use itCOMMENT
LOWpython/tvm/relax/relax_to_pyfunc_converter.py642 # Simple fallback: just add the tensorsCOMMENT
LOWpython/tvm/relax/frontend/onnx/onnx_frontend.py2111 # from other frameworks and not actually used in TVM. We'll just useCOMMENT
LOW…n/tvm/relax/frontend/torch/base_fx_graph_translator.py2395 # by the translator, and therefore we just return a copy of the input.COMMENT
LOW…vm/relax/frontend/torch/exported_program_translator.py1986 "bernoulli.p": lambda node: self.env[node.args[0]], # Dropout: just return inputCODE
LOWpython/tvm/relax/training/loss.py364 # In other cases where ignore_index is not needed, just use the simpe product.STRING
LOWpython/tvm/tirx/op.py2841 # mode 2, simply use it with multiple Exprs:COMMENT
LOWtests/python/tirx-transform/test_tir_functor.py164 # For demonstration, just return the original for nowCOMMENT
MEDIUMtests/python/relax/test_relax_to_pyfunc_converter.py354 """Test that operator mapping is comprehensive."""STRING
MEDIUMtests/python/relax/test_base_py_module_printer.py357 """Test comprehensive error handling and validation."""STRING
MEDIUMtests/python/relax/test_base_py_module_printer.py361 """Robust data processing with comprehensive error handling."""STRING
MEDIUMdocs/how_to/tutorials/e2e_opt_model.py97# leverage MetaSchedule to tune the model and store the tuning logs to the database. We alsoCOMMENT
MEDIUMdocs/how_to/tutorials/export_and_load_executable.py327# for a comprehensive guide on:COMMENT
MEDIUMdocs/how_to/tutorials/optimize_llm.py169# - QKV projection: We leverage the horizontal fusion on QKV projection and fuse them into oneCOMMENT
MEDIUMdocs/how_to/tutorials/optimize_llm.py171# - Attention: We leverage the horizontal fusion on attention and fuse the QKV projection andCOMMENT
MEDIUMdocs/deep_dive/tensor_ir/tutorials/tir_creation.py263# The aforementioned lambda expression encapsulates the computation:COMMENT
MEDIUM…cs/deep_dive/tensor_ir/tutorials/tir_transformation.py175# Alternatively, we can output the IRModule in conjunction with the historical trace.COMMENT
MEDIUMdocs/get_started/tutorials/quick_start.py113# Apache TVM leverage ``pipeline`` to transform and optimize program.COMMENT
MEDIUMdocs/get_started/tutorials/quick_start.py125# In this tutorial we only demonstrate the overall flow, by leverage ``zero`` optimizationCOMMENT
LOWapps/ios_rpc/tests/ios_rpc_test.py59 # If we don't want to do metal and only use cpu, just set target to be targetCOMMENT
Docstring Block Structure4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHpython/tvm/topi/nn/pad.py28 Calculates the output shape of a tensor after applying padding. Args: data (tvm.te.Tensor): The input STRING
HIGHpython/tvm/backend/cuda/operator/intrinsics/utils.py40Validate that cta_group is 1 or 2 and return it as int. Args: cta_group: The cta_group value (can be int orSTRING
HIGHpython/tvm/backend/cuda/operator/intrinsics/utils.py62Validate that value is within range and is a power of two. Args: value: The value to validate min_vSTRING
HIGH…end/cuda/operator/tile_primitive/gemm_async/tcgen05.py339Schedule an asynchronous GEMM operation using tcgen05.mma (Blackwell Tensor Core). Computes C = A @ B (with optionaSTRING
Slop Phrases3 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMpython/tvm/relax/frontend/tflite/tflite_frontend.py8922 # Alternatively you can use tensorflow.keras.application wrapped arounf a tf.functionSTRING
MEDIUMinclude/tvm/s_tir/transform.h201 * which is the three blocks as discussed above.COMMENT
MEDIUMdocs/how_to/tutorials/export_and_load_executable.py319# you can use TVM's RPC mechanism to cross-compile, upload, and run the modelCOMMENT
Fake / Example Data7 hits · 7 pts
SeverityFileLineSnippetContext
LOWpython/tvm/te/operation.py37def placeholder(shape, dtype=None, name="placeholder"):CODE
LOWpython/tvm/relax/frontend/torch/fx_translator.py1114 if node.op == "placeholder":CODE
LOWpython/tvm/relax/frontend/torch/dynamo.py86 if node.op != "placeholder":CODE
LOW…vm/relax/frontend/torch/exported_program_translator.py1517 if node.op == "placeholder":CODE
LOW…vm/relax/frontend/torch/exported_program_translator.py1613 placeholders = [n for n in nodes if n.op == "placeholder"]CODE
LOW…vm/relax/frontend/torch/exported_program_translator.py2126 for node in exported_program.graph.find_nodes(op="placeholder", target=spec.target):CODE
LOWinclude/tvm/te/operation.h334 std::string name = "placeholder");CODE
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtests/python/relax/test_tvmscript_printer_relax.py40def test_function():CODE
LOWtests/python/relax/test_expr_functor.py549def test_function():CODE
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMtests/python/relax/test_tvmscript_parser.py748CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOW.agents/scripts/monitor_gpu.sh7# Usage:COMMENT