AI Slop Code RIsk Monitor

apache/tvm

Open Machine Learning Compiler Framework

23.6 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for apache/tvm, a Python project with 13,821 GitHub stars. SynthScan examined 738,583 lines of code across 2292 source files, recording 12827 pattern matches distributed across 24 syntactic categories. The legacy adjusted pattern signal is 23.6 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

23.6
Adjusted Signal
23.6
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
13.8K
Stars
Python
Language
738.6K
Lines of Code
2.3K
Files
12.8K
Pattern Hits
2026-10-12
Scan Date
0.29
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 43.1/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 8918 finding(s).

Hallucinated Dependency & Supply Chain Risk 35.7/100 · MEDIUM

Are imports declared and package/API names verified? 3031 finding(s).

Agent Over-Engineering Ratio 39.1/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 6089 finding(s).

PR Review Velocity Impact 72.9/100 · HIGH

Which changes need focused human review? 12827 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 489HIGH 165MEDIUM 628LOW 11545

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 12827 distinct pattern matches across 24 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hallucination Indicators489 hits · 4485 pts
SeverityFileLineSnippetContext
CRITICALpython/tvm/backend/cuda/ptx/engine.py26 such as ``T.ptx.ld.global_.acquire.gpu.b32(addr)`` against the table:STRING
CRITICALpython/tvm/backend/cuda/ptx/engine.py37 ``T.ptx.ld.acquire.gpu.global_.b32(val, ptr)``.STRING
CRITICALpython/tvm/backend/cuda/lang/pipeline.py180 T.ptx.mbarrier.init.shared.b64(self.buf.ptr_to([i]), T.uint32(count))CODE
CRITICALpython/tvm/backend/cuda/lang/pipeline.py216 T.ptx.mbarrier.arrive.shared.b64(CODE
CRITICALpython/tvm/backend/cuda/lang/pipeline.py220 T.ptx.mbarrier.arrive.shared.b64(CODE
CRITICALpython/tvm/backend/cuda/lang/pipeline.py279 T.ptx.mbarrier.arrive.shared.b64(bar, T.uint32(1))CODE
CRITICALpython/tvm/backend/cuda/lang/pipeline.py281 T.ptx.mbarrier.arrive.expect_tx.shared.b64(bar, T.uint32(tx_count))CODE
CRITICAL⚡python/tvm/backend/cuda/lang/clc.py45 T.ptx.clusterlaunchcontrol.query_cancel.is_canceled.pred.b128(canceled, response)CODE
CRITICAL⚡python/tvm/backend/cuda/lang/clc.py47 T.ptx.clusterlaunchcontrol.query_cancel.get_first_ctaid__x.b32.b128(CODE
CRITICAL⚡python/tvm/backend/cuda/lang/clc.py52 T.ptx.fence.proxy.async_.shared__cta()CODE
CRITICALtests/python/tirx-base/test_tir_ptx_mma_sp.py75 T.ptx.mma.sp.sync.aligned.m16n8k16.row.col.f16.f16.f16.f16(CODE
CRITICALtests/python/tirx-base/test_tir_ptx_mma_sp.py121 T.ptx.mma.sp.sync.aligned.m16n8k16.row.col.f32.f16.f16.f32(CODE
CRITICALtests/python/tirx-base/test_tir_ptx_mma_sp.py172 T.ptx.mma.sp.sync.aligned.m16n8k32.row.col.f16.f16.f16.f16(CODE
CRITICALtests/python/tirx-base/test_tir_ptx_mma_sp.py222 T.ptx.mma.sp.sync.aligned.m16n8k32.row.col.f32.f16.f16.f32(CODE
CRITICAL…end/adreno/test_transform_fold_vdevice_scope_change.py32 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
CRITICAL⚡tests/python/tirx/test_roundtrip_namespaces.py31 T.ptx.wgmma.commit_group.sync.aligned()CODE
CRITICAL⚡tests/python/tirx/test_roundtrip_namespaces.py34 T.ptx.fence.proxy.async_.shared__cta()CODE
CRITICAL⚡tests/python/tirx/test_verifier.py131 T.ptx.mbarrier.init.shared.b64(bar.data, T.uint32(1))CODE
CRITICAL⚡tests/python/tirx/test_verifier.py132 T.ptx.fence.proxy.async_.shared__cta()CODE
CRITICAL⚡tests/python/tirx/test_verifier.py134 T.ptx.mbarrier.arrive.expect_tx.shared.b64(bar.data, T.uint32(16*16*4))CODE
CRITICAL⚡tests/python/tirx/codegen/test_codegen_hopper.py461 T.ptx.mbarrier.init.shared.b64(T.address_of(bar), T.uint32(1))CODE
CRITICAL⚡tests/python/tirx/codegen/test_codegen_hopper.py462 T.ptx.fence.proxy.async_.shared__cta()CODE
CRITICAL⚡tests/python/tirx/codegen/test_codegen_hopper.py466 T.ptx.mbarrier.arrive.expect_tx.shared.b64(CODE
CRITICAL⚡tests/python/tirx/codegen/test_codegen_hopper.py473 T.ptx.fence.proxy.async_.shared__cta()CODE
CRITICAL⚡tests/python/tirx/codegen/test_codegen_hopper.py479 T.ptx.cp.async_.bulk.commit_group()CODE
CRITICAL⚡tests/python/tirx/codegen/test_codegen_hopper.py480 T.ptx.cp.async_.bulk.wait_group(0)CODE
CRITICAL⚡tests/python/tirx/codegen/test_codegen_hopper.py663 T.ptx.mbarrier.init.shared.b64(T.address_of(bar), T.uint32(1))CODE
CRITICAL⚡tests/python/tirx/codegen/test_codegen_hopper.py664 T.ptx.fence.proxy.async_.shared__cta()CODE
CRITICAL⚡tests/python/tirx/codegen/test_codegen_hopper.py668 T.ptx.mbarrier.arrive.expect_tx.shared.b64(CODE
CRITICAL⚡tests/python/tirx/codegen/test_codegen_hopper.py675 T.ptx.fence.proxy.async_.shared__cta()CODE
CRITICAL⚡tests/python/tirx/codegen/test_codegen_hopper.py681 T.ptx.cp.async_.bulk.commit_group()CODE
CRITICAL⚡tests/python/tirx/codegen/test_codegen_hopper.py682 T.ptx.cp.async_.bulk.wait_group(0)CODE
CRITICAL⚡tests/python/tirx/codegen/test_codegen_hopper.py767 T.ptx.mbarrier.init.shared.b64(T.address_of(bar), T.uint32(1))CODE
CRITICAL⚡tests/python/tirx/codegen/test_codegen_hopper.py768 T.ptx.fence.proxy.async_.shared__cta()CODE
CRITICAL⚡tests/python/tirx/codegen/test_codegen_hopper.py769 T.ptx.mbarrier.arrive.expect_tx.shared.b64(CODE
CRITICAL⚡tests/python/tirx/codegen/test_codegen_hopper.py787 T.ptx.fence.proxy.async_.shared__cta()CODE
CRITICAL⚡tests/python/tirx/codegen/test_codegen_hopper.py797 T.ptx.cp.async_.bulk.commit_group()CODE
CRITICAL⚡tests/python/tirx/codegen/test_codegen_hopper.py798 T.ptx.cp.async_.bulk.wait_group(0)CODE
CRITICAL⚡tests/python/tirx/codegen/test_codegen_hopper.py878 T.ptx.mbarrier.init.shared.b64(T.address_of(bar), T.uint32(1))CODE
CRITICAL⚡tests/python/tirx/codegen/test_codegen_hopper.py879 T.ptx.fence.proxy.async_.shared__cta()CODE
CRITICAL⚡tests/python/tirx/codegen/test_codegen_hopper.py880 T.ptx.mbarrier.arrive.expect_tx.shared.b64(CODE
CRITICAL⚡tests/python/tirx/codegen/test_codegen_hopper.py995 T.ptx.fence.proxy.async_.shared__cta()CODE
CRITICAL⚡tests/python/tirx/codegen/test_codegen_hopper.py1000 T.ptx.cp.async_.bulk.commit_group()CODE
CRITICAL⚡tests/python/tirx/codegen/test_codegen_hopper.py1001 T.ptx.cp.async_.bulk.wait_group(0)CODE
CRITICAL⚡tests/python/tirx/codegen/test_codegen_hopper.py1094 T.ptx.mbarrier.init.shared.b64(T.address_of(bar), T.uint32(1))CODE
CRITICAL⚡tests/python/tirx/codegen/test_codegen_hopper.py1095 T.ptx.fence.proxy.async_.shared__cta()CODE
CRITICAL⚡tests/python/tirx/codegen/test_codegen_hopper.py1105 T.ptx.mbarrier.arrive.expect_tx.shared.b64(CODE
CRITICAL⚡tests/python/tirx/codegen/test_codegen_hopper.py1275 T.ptx.mbarrier.init.shared.b64(T.address_of(bar), T.uint32(1))CODE
CRITICAL⚡tests/python/tirx/codegen/test_codegen_hopper.py1276 T.ptx.fence.proxy.async_.shared__cta()CODE
CRITICAL⚡tests/python/tirx/codegen/test_codegen_hopper.py1283 T.ptx.mbarrier.arrive.expect_tx.shared.b64(T.address_of(bar), T.uint32(B_bytes))CODE
CRITICAL⚡tests/python/tirx/codegen/test_codegen_hopper.py1298 T.ptx.wgmma.fence.sync.aligned()CODE
CRITICAL⚡tests/python/tirx/codegen/test_codegen_hopper.py1308 T.ptx.wgmma.commit_group.sync.aligned()CODE
CRITICAL⚡tests/python/tirx/codegen/test_codegen_hopper.py1309 T.ptx.wgmma.wait_group.sync.aligned(0)CODE
CRITICALtests/python/tirx/codegen/test_codegen_hopper.py352 T.ptx.fence.mbarrier_init.release.cluster()CODE
CRITICALtests/python/tirx/codegen/test_codegen_hopper.py405 T.ptx.fence.proxy.async_.global_()CODE
CRITICALtests/python/tirx/codegen/test_codegen_hopper.py406 T.ptx.fence.proxy.async_.shared__cta()CODE
CRITICALtests/python/tirx/codegen/test_codegen_hopper.py936 T.ptx.cp.async_.bulk.commit_group()CODE
CRITICALtests/python/tirx/codegen/test_codegen_hopper.py937 T.ptx.cp.async_.bulk.wait_group(0)CODE
429 more matches not shown…
Hyper-Verbose Identifiers4920 hits · 4484 pts
SeverityFileLineSnippetContext
LOWpython/tvm/sym/int_set.py96def estimate_region_lower_bound(region, var_dom, predicate, analyzer=None):CODE
LOWpython/tvm/sym/int_set.py123def estimate_region_strict_bound(region, var_dom, predicate, analyzer=None):CODE
LOWpython/tvm/sym/int_set.py150def estimate_region_upper_bound(region, var_dom, predicate, analyzer=None):CODE
LOWpython/tvm/sym/analyzer.py319 def reset_rewrite_simplify_stats(self):CODE
LOWpython/tvm/sym/analyzer.py376 def set_maximum_rewrite_steps(self, maximum: int) -> None:CODE
LOWpython/tvm/sym/iter_affine_map.py257def normalize_iter_map_to_expr(expr):CODE
LOWpython/tvm/topi/scatter.py27def _verify_scatter_nd_inputs(data, indices, updates):CODE
LOWpython/tvm/topi/gpu/scan.py320def 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.py244def collect_selected_indices_and_scores(CODE
LOWpython/tvm/topi/vision/nms.py1055def _collect_selected_indices_ir(CODE
LOWpython/tvm/topi/vision/nms.py1102def _collect_selected_indices_and_scores_ir(CODE
LOWpython/tvm/topi/vision/nms.py1168def 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/expr.py596 def _normalize_constructor_args(op, args, attrs, ty_args, loc, ty):CODE
LOWpython/tvm/target/detect_target.py49def register_device_target_detector(device_type: str, detector: Callable[[Device], Target]) -> None:CODE
LOWpython/tvm/target/detect_target.py54def 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/__init__.py48def _initialize_script_namespace():CODE
LOWpython/tvm/s_tir/schedule/analysis.py68def get_tensorize_loop_mapping(CODE
LOWpython/tvm/s_tir/schedule/analysis.py96def get_auto_tensorize_mapping_info(CODE
LOWpython/tvm/s_tir/schedule/schedule.py80def _parse_error_render_level(error_render_level: str) -> int:CODE
LOWpython/tvm/s_tir/schedule/schedule.py105def _get_sblock_default_dtype(block: SBlock) -> str:CODE
LOWpython/tvm/s_tir/schedule/schedule.py1053 def matmul_after_reorder_block_iter_var(STRING
LOWpython/tvm/s_tir/schedule/schedule.py1591 def before_reindex_cache_read(A: T.Tensor((128, 128)), B: T.Tensor((128, 128))) -> None:STRING
LOWpython/tvm/s_tir/schedule/schedule.py1691 def before_reindex_cache_write(CODE
LOWpython/tvm/s_tir/schedule/schedule.py2182 def before_reverse_compute_at(CODE
LOWpython/tvm/s_tir/schedule/schedule.py3437 def two_elementwise_transformed_intermediate_buffer(CODE
LOWpython/tvm/s_tir/schedule/schedule.py3522 def before_transform_block_layout(CODE
LOWpython/tvm/s_tir/schedule/schedule.py3544 def after_transform_block_layout(CODE
LOWpython/tvm/s_tir/schedule/schedule.py3852 def unsafe_hide_buffer_access(CODE
LOWpython/tvm/s_tir/schedule/schedule.py3912 def before_annotate_buffer_access(STRING
LOWpython/tvm/s_tir/schedule/schedule.py3941 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/script/ir_builder/parser_protocol.py73def _check_module_well_formed(module):CODE
LOWpython/tvm/s_tir/script/ir_builder/ir.py148def block_name_suffix_context(block_suffix: str):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.py107def 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
4860 more matches not shown…
Over-Commented Block2062 hits · 1954 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.txt621# library is large enough that ld can relax an indirect GOT call (LLVM builtCOMMENT
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/sym/int_set.py1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWpython/tvm/sym/analyzer.py1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWpython/tvm/sym/_ffi_api.py1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWpython/tvm/sym/__init__.py1# isort: skip_fileCOMMENT
LOWpython/tvm/sym/pattern.py1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWpython/tvm/sym/utils.py1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWpython/tvm/sym/iter_affine_map.py1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWpython/tvm/sym/bound.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
2002 more matches not shown…
Unused Imports2518 hits · 1940 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__.py48CODE
LOWpython/tvm/__init__.py51CODE
LOWpython/tvm/__init__.py52CODE
LOWpython/tvm/__init__.py55CODE
LOWpython/tvm/__init__.py58CODE
LOWpython/tvm/__init__.py59CODE
LOWpython/tvm/__init__.py62CODE
LOWpython/tvm/__init__.py65CODE
LOWpython/tvm/__init__.py68CODE
LOWpython/tvm/__init__.py71CODE
LOWpython/tvm/__init__.py74CODE
LOWpython/tvm/__init__.py74CODE
LOWpython/tvm/__init__.py80CODE
LOWpython/tvm/__init__.py133CODE
LOWpython/tvm/libinfo.py19CODE
LOWpython/tvm/sym/__init__.py20CODE
LOWpython/tvm/sym/__init__.py20CODE
LOWpython/tvm/sym/__init__.py20CODE
LOWpython/tvm/sym/__init__.py20CODE
LOWpython/tvm/sym/__init__.py20CODE
LOWpython/tvm/sym/__init__.py20CODE
LOWpython/tvm/sym/__init__.py28CODE
LOWpython/tvm/sym/__init__.py28CODE
LOWpython/tvm/sym/__init__.py28CODE
LOWpython/tvm/sym/__init__.py28CODE
LOWpython/tvm/sym/__init__.py28CODE
LOWpython/tvm/sym/__init__.py28CODE
LOWpython/tvm/sym/__init__.py28CODE
LOWpython/tvm/sym/__init__.py37CODE
LOWpython/tvm/sym/__init__.py38CODE
LOWpython/tvm/sym/__init__.py38CODE
LOWpython/tvm/sym/__init__.py39CODE
LOWpython/tvm/sym/__init__.py39CODE
LOWpython/tvm/sym/__init__.py39CODE
LOWpython/tvm/sym/__init__.py39CODE
LOWpython/tvm/sym/__init__.py40CODE
LOWpython/tvm/sym/__init__.py40CODE
LOWpython/tvm/sym/__init__.py40CODE
LOWpython/tvm/sym/__init__.py40CODE
LOWpython/tvm/sym/__init__.py40CODE
2458 more matches not shown…
Decorative Section Separators556 hits · 1701 pts
SeverityFileLineSnippetContext
MEDIUMpython/tvm/base.py27# ----------------------------COMMENT
MEDIUMpython/tvm/base.py29# ----------------------------COMMENT
MEDIUMpython/tvm/s_tir/script/ir_builder/parser_protocol.py31# --------------------------------------COMMENT
MEDIUMpython/tvm/s_tir/script/ir_builder/parser_protocol.py33# --------------------------------------COMMENT
MEDIUM⚡python/tvm/s_tir/script/ir_builder/parser_protocol.py86# --------------------------------------COMMENT
MEDIUM⚡python/tvm/s_tir/script/ir_builder/parser_protocol.py88# --------------------------------------COMMENT
MEDIUM⚡python/tvm/s_tir/script/ir_builder/parser_protocol.py98# --------------------------------------COMMENT
MEDIUM⚡python/tvm/s_tir/script/ir_builder/parser_protocol.py100# --------------------------------------COMMENT
MEDIUM⚡python/tvm/s_tir/script/ir_builder/parser_protocol.py104# --------------------------------------COMMENT
MEDIUM⚡python/tvm/s_tir/script/ir_builder/parser_protocol.py106# --------------------------------------COMMENT
MEDIUM⚡python/tvm/s_tir/script/ir_builder/parser_protocol.py145# --------------------------------------COMMENT
MEDIUM⚡python/tvm/s_tir/script/ir_builder/parser_protocol.py147# --------------------------------------COMMENT
MEDIUM⚡python/tvm/backend/cuda/target_tags.py122# =====================================================================COMMENT
MEDIUM⚡python/tvm/backend/cuda/target_tags.py124# =====================================================================COMMENT
MEDIUM⚡python/tvm/backend/cuda/target_tags.py133# =====================================================================COMMENT
MEDIUM⚡python/tvm/backend/cuda/target_tags.py135# =====================================================================COMMENT
MEDIUM⚡python/tvm/backend/cuda/target_tags.py171# =====================================================================COMMENT
MEDIUM⚡python/tvm/backend/cuda/target_tags.py173# =====================================================================COMMENT
MEDIUM⚡python/tvm/backend/cuda/target_tags.py182# =====================================================================COMMENT
MEDIUM⚡python/tvm/backend/cuda/target_tags.py184# =====================================================================COMMENT
MEDIUM⚡python/tvm/backend/cuda/target_tags.py187# =====================================================================COMMENT
MEDIUM⚡python/tvm/backend/cuda/target_tags.py189# =====================================================================COMMENT
MEDIUM⚡python/tvm/backend/cuda/target_tags.py192# =====================================================================COMMENT
MEDIUM⚡python/tvm/backend/cuda/target_tags.py194# =====================================================================COMMENT
MEDIUM⚡python/tvm/backend/cuda/target_tags.py203# =====================================================================COMMENT
MEDIUM⚡python/tvm/backend/cuda/target_tags.py205# =====================================================================COMMENT
MEDIUM⚡python/tvm/backend/cuda/target_tags.py212# =====================================================================COMMENT
MEDIUM⚡python/tvm/backend/cuda/target_tags.py214# =====================================================================COMMENT
MEDIUM⚡python/tvm/backend/cuda/target_tags.py360# =====================================================================COMMENT
MEDIUM⚡python/tvm/backend/cuda/target_tags.py362# =====================================================================COMMENT
MEDIUM⚡python/tvm/backend/cuda/target_tags.py368# =====================================================================COMMENT
MEDIUM⚡python/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/ptx/engine.py85# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tvm/backend/cuda/ptx/engine.py87# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tvm/backend/cuda/ptx/engine.py152# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tvm/backend/cuda/ptx/engine.py154# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tvm/backend/cuda/ptx/engine.py318# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tvm/backend/cuda/ptx/engine.py320# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tvm/backend/cuda/ptx/engine.py771# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tvm/backend/cuda/ptx/engine.py773# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tvm/backend/cuda/ptx/table.py5731 # ------------------------------------------------------------------COMMENT
MEDIUMpython/tvm/backend/cuda/ptx/table.py5733 # ------------------------------------------------------------------COMMENT
496 more matches not shown…
Deep Nesting1402 hits · 1170 pts
SeverityFileLineSnippetContext
LOWpython/tvm/topi/signal.py27CODE
LOWpython/tvm/topi/signal.py159CODE
LOWpython/tvm/topi/signal.py71CODE
LOWpython/tvm/topi/signal.py188CODE
LOWpython/tvm/topi/unique.py25CODE
LOWpython/tvm/topi/sparse_reshape.py26CODE
LOWpython/tvm/topi/sparse_reshape.py74CODE
LOWpython/tvm/topi/utils.py153CODE
LOWpython/tvm/topi/scatter.py56CODE
LOWpython/tvm/topi/scatter.py97CODE
LOWpython/tvm/topi/scan.py33CODE
LOWpython/tvm/topi/scan.py118CODE
LOWpython/tvm/topi/scatter_elements.py27CODE
LOWpython/tvm/topi/index_put.py27CODE
LOWpython/tvm/topi/index_put.py91CODE
LOWpython/tvm/topi/gpu/sort.py43CODE
LOWpython/tvm/topi/gpu/sort.py88CODE
LOWpython/tvm/topi/gpu/sort.py197CODE
LOWpython/tvm/topi/gpu/sort.py1166CODE
LOWpython/tvm/topi/gpu/sort.py271CODE
LOWpython/tvm/topi/gpu/sort.py1204CODE
LOWpython/tvm/topi/gpu/scan.py57CODE
LOWpython/tvm/topi/gpu/scan.py320CODE
LOWpython/tvm/topi/gpu/scan.py347CODE
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.py86CODE
LOWpython/tvm/topi/vision/nms_util.py125CODE
LOWpython/tvm/topi/vision/nms_util.py287CODE
LOWpython/tvm/topi/vision/nms.py39CODE
LOWpython/tvm/topi/vision/nms.py185CODE
LOWpython/tvm/topi/vision/nms.py842CODE
LOWpython/tvm/topi/vision/nms.py898CODE
LOWpython/tvm/topi/vision/nms.py981CODE
LOWpython/tvm/topi/vision/nms.py1055CODE
LOWpython/tvm/topi/vision/nms.py1102CODE
LOWpython/tvm/topi/vision/nms.py1168CODE
LOWpython/tvm/topi/vision/nms.py848CODE
LOWpython/tvm/topi/vision/nms.py914CODE
LOWpython/tvm/topi/vision/nms.py984CODE
LOWpython/tvm/topi/vision/nms.py1027CODE
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
LOWpython/tvm/topi/testing/matrix_set_diag.py23CODE
1342 more matches not shown…
Empty Error Handlers86 hits · 430 pts
SeverityFileLineSnippetContext
HIGHpython/tvm/__init__.py134except Exception: # pylint: disable=broad-exception-caughtCODE
HIGHpython/tvm/topi/testing/common.py53except ValueError:CODE
HIGHpython/tvm/topi/testing/conv2d_nchw_python.py106except ValueError:CODE
HIGHpython/tvm/runtime/disco/process_pool.py71except ImportError:CODE
HIGHpython/tvm/runtime/disco/process_pool.py176except psutil.NoSuchProcess:CODE
HIGHpython/tvm/runtime/disco/process_pool.py85except TypeError:CODE
HIGHpython/tvm/runtime/disco/process_pool.py89except OSError:CODE
HIGHpython/tvm/runtime/disco/process_pool.py108except subprocess.TimeoutExpired:CODE
HIGHpython/tvm/s_tir/dlight/adreno/pool.py91except Exception: # pylint: disable=broad-exceptCODE
HIGHpython/tvm/s_tir/dlight/gpu/matmul.py582except: # pylint: disable=bare-exceptCODE
HIGHpython/tvm/backend/_autoload_backends.py60except (OSError, FileNotFoundError, RuntimeError):CODE
HIGHpython/tvm/backend/metal/target_tags.py30except Exception: # pylint: disable=broad-exceptCODE
HIGHpython/tvm/backend/metal/__init__.py58except (OSError, FileNotFoundError, RuntimeError):CODE
HIGHpython/tvm/backend/cuda/__init__.py73except (OSError, FileNotFoundError, RuntimeError):CODE
HIGHpython/tvm/backend/cuda/iket.py448except ProcessLookupError:CODE
HIGHpython/tvm/backend/cuda/iket.py468except subprocess.TimeoutExpired:CODE
HIGHpython/tvm/backend/cuda/iket.py620except OSError:CODE
HIGHpython/tvm/backend/cuda/iket.py429except OSError:CODE
HIGHpython/tvm/backend/cuda/iket.py464except ProcessLookupError:CODE
HIGH…backend/cuda/tile_primitive/copy_async/tcgen05_ldst.py153except (AssertionError, ValueError):CODE
HIGHpython/tvm/backend/hexagon/__init__.py40except (OSError, FileNotFoundError, RuntimeError):CODE
HIGHpython/tvm/backend/opencl/__init__.py52except (OSError, FileNotFoundError, RuntimeError):CODE
HIGHpython/tvm/backend/vulkan/__init__.py63except (OSError, FileNotFoundError, RuntimeError):CODE
HIGHpython/tvm/backend/rocm/__init__.py53except (OSError, FileNotFoundError, RuntimeError):CODE
HIGHpython/tvm/script/parser/inspect_source.py190except ValueError:CODE
HIGHpython/tvm/script/parser/entry.py62except ValueError:CODE
HIGHpython/tvm/testing/utils.py759except TypeError:CODE
HIGHpython/tvm/support/nvcc.py808except FileNotFoundError:CODE
HIGHpython/tvm/support/nvcc.py841except RuntimeError:CODE
HIGHpython/tvm/support/popen_pool.py56except psutil.NoSuchProcess:CODE
HIGHpython/tvm/support/popen_pool.py125except ImportError:CODE
HIGHpython/tvm/support/popen_pool.py261except OSError:CODE
HIGHpython/tvm/support/popen_pool.py139except OSError:CODE
HIGHpython/tvm/support/popen_pool.py143except OSError:CODE
HIGHpython/tvm/support/popen_pool.py148except TypeError:CODE
HIGHpython/tvm/support/popen_pool.py152except OSError:CODE
HIGHpython/tvm/support/popen_pool.py206except subprocess.TimeoutExpired:CODE
HIGHpython/tvm/support/popen_pool.py408except ImportError:CODE
HIGHpython/tvm/exec/disco_worker.py126except (OSError, KeyboardInterrupt):CODE
HIGHpython/tvm/exec/popen_worker.py125except (OSError, KeyboardInterrupt):CODE
HIGHpython/tvm/relax/base_py_module.py88except Exception: # pylint: disable=broad-exceptCODE
HIGHpython/tvm/relax/base_py_module.py433except (AttributeError, ValueError):CODE
HIGHpython/tvm/relax/base_py_module.py482except (AttributeError, ValueError):CODE
HIGHpython/tvm/relax/base_py_module.py426except (AttributeError, ValueError):CODE
HIGHpython/tvm/relax/base_py_module.py370except (ValueError, TypeError):CODE
HIGHpython/tvm/relax/frontend/tflite/tflite_frontend.py600except (ImportError, ModuleNotFoundError):CODE
HIGHpython/tvm/relax/frontend/tflite/tflite_frontend.py690except (ImportError, ModuleNotFoundError):CODE
HIGHpython/tvm/relax/frontend/nn/core.py853except RuntimeError:CODE
HIGHpython/tvm/relax/frontend/torch/dynamo.py222except FileNotFoundError:CODE
HIGHpython/tvm/relax/frontend/torch/dynamo.py238except (FileNotFoundError, subprocess.SubprocessError):CODE
HIGH…vm/relax/frontend/torch/exported_program_translator.py1511except AttributeError:CODE
HIGH…thon/tvm/relax/backend/contrib/example_npu/patterns.py374except (KeyError, AttributeError):CODE
HIGH…thon/tvm/relax/backend/contrib/example_npu/patterns.py507except (KeyError, AttributeError):CODE
HIGH…thon/tvm/relax/backend/contrib/example_npu/patterns.py515except (KeyError, AttributeError):CODE
HIGHpython/tvm/tirx/script/ir_builder/external_kernel.py163except: # pylint: disable=bare-exceptCODE
HIGHpython/tvm/tirx/script/ir_builder/ir.py784except TypeError:CODE
HIGHpython/tvm/rpc/tornado_util.py66except OSError:CODE
HIGHpython/tvm/rpc/server.py170except ImportError:CODE
HIGHpython/tvm/rpc/server.py558except ImportError:CODE
HIGHpython/tvm/rpc/proxy.py663except ImportError:CODE
26 more matches not shown…
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/ir/prim/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
HIGHpython/tvm/backend/cuda/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…or/tile_primitive/cuda/copy_async/test_tcgen05_ldst.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 Patterns291 hits · 238 pts
SeverityFileLineSnippetContext
LOWpython/tvm/topi/sort.py67CODE
LOWpython/tvm/topi/sort.py219CODE
LOWpython/tvm/topi/nn/conv2d.py1280CODE
LOWpython/tvm/topi/nn/conv2d.py1411CODE
LOWpython/tvm/topi/nn/conv1d_transpose.py143CODE
LOWpython/tvm/topi/nn/lstm.py25CODE
LOWpython/tvm/topi/vision/nms.py654CODE
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/ir/expr.py190CODE
LOWpython/tvm/ir/expr.py196CODE
LOWpython/tvm/ir/expr.py202CODE
LOWpython/tvm/ir/expr.py208CODE
LOWpython/tvm/ir/expr.py214CODE
LOWpython/tvm/ir/expr.py220CODE
LOWpython/tvm/ir/expr.py226CODE
LOWpython/tvm/ir/expr.py232CODE
LOWpython/tvm/ir/expr.py238CODE
LOWpython/tvm/ir/expr.py244CODE
LOWpython/tvm/ir/expr.py250CODE
LOWpython/tvm/ir/expr.py256CODE
LOWpython/tvm/ir/expr.py262CODE
LOWpython/tvm/ir/expr.py268CODE
LOWpython/tvm/ir/expr.py274CODE
LOWpython/tvm/ir/expr.py280CODE
LOWpython/tvm/ir/expr.py355CODE
LOWpython/tvm/ir/expr.py361CODE
LOWpython/tvm/ir/expr.py377CODE
LOWpython/tvm/ir/expr.py383CODE
LOWpython/tvm/runtime/module.py325CODE
LOWpython/tvm/te/operation.py439CODE
LOWpython/tvm/s_tir/script/ir_builder/ir.py136CODE
LOWpython/tvm/s_tir/script/ir_builder/ir.py88CODE
LOWpython/tvm/s_tir/script/ir_builder/ir.py237CODE
LOWpython/tvm/s_tir/meta_schedule/relax_integration.py165CODE
LOWpython/tvm/s_tir/meta_schedule/relax_integration.py279CODE
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/cpp/nvshmem.py97CODE
LOWpython/tvm/backend/cuda/cpp/nvshmem.py124CODE
LOWpython/tvm/backend/cuda/cpp/nvshmem.py154CODE
231 more matches not shown…
Verbosity Indicators61 hits · 111 pts
SeverityFileLineSnippetContext
LOWpython/tvm/topi/vision/nms.py214 # Step 1: Reorder data by sorted scoreCOMMENT
LOWpython/tvm/topi/vision/nms.py253 # Step 2: Apply NMS - greedy suppressionCOMMENT
LOW⚡python/tvm/s_tir/meta_schedule/runner/local_runner.py146 # Step 1: create the local runtime moduleCOMMENT
LOW⚡python/tvm/s_tir/meta_schedule/runner/local_runner.py149 # Step 2: Allocate input argumentsCOMMENT
LOW⚡python/tvm/s_tir/meta_schedule/runner/local_runner.py157 # Step 3: Run time_evaluatorCOMMENT
LOW⚡python/tvm/s_tir/meta_schedule/runner/rpc_runner.py394 # Step 3: Allocate input argumentsCOMMENT
LOW⚡python/tvm/s_tir/meta_schedule/runner/rpc_runner.py402 # Step 4: Run time_evaluatorCOMMENT
LOW⚡…hon/tvm/backend/cuda/tile_primitive/elementwise/reg.py294 # Step 1: slice + permute (region offset absorbed into op_p.offset; per-iterCOMMENT
LOW⚡…hon/tvm/backend/cuda/tile_primitive/elementwise/reg.py299 # Step 2: post-align thread-equality check. ``align`` is supposed toCOMMENT
LOW⚡…hon/tvm/backend/cuda/tile_primitive/elementwise/reg.py311 # Step 3: drop thread iters; from here on operands have mem-only layouts.COMMENT
LOW⚡…hon/tvm/backend/cuda/tile_primitive/elementwise/reg.py316 # Step 4: enumerate spec.vec_impls widest-first; try carve tail for eachCOMMENT
LOW⚡…hon/tvm/backend/cuda/tile_primitive/elementwise/reg.py321 # Step 5: totals + emit. per_thread_total = ∏ extents of (carved) memCOMMENT
LOW…on/tvm/backend/cuda/tile_primitive/copy/ld_stmatrix.py78 # Step 1: identify reg / smem sides and pull their tensor shape + layout.COMMENT
LOW⚡…on/tvm/backend/cuda/tile_primitive/copy/ld_stmatrix.py116 # Step 3: ldstmatrix doesn't broadcast — require zero replica on both sides.COMMENT
LOW⚡…on/tvm/backend/cuda/tile_primitive/copy/ld_stmatrix.py122 # Step 4: R must have exactly one kind of lane axis from the valid set.COMMENT
LOW⚡…on/tvm/backend/cuda/tile_primitive/copy/ld_stmatrix.py130 # Step 5: group S by R's iter extents (one S group per R iter, outer→inner).COMMENT
LOW⚡…on/tvm/backend/cuda/tile_primitive/copy/ld_stmatrix.py134 # Step 6: permute R so thread iters come first (stride-desc), then memoryCOMMENT
LOW⚡…on/tvm/backend/cuda/tile_primitive/copy/ld_stmatrix.py139 # Step 7: apply R's perm to S in group units (1-to-1 with R's iters), andCOMMENT
LOW…on/tvm/backend/cuda/tile_primitive/copy/ld_stmatrix.py301 # Step 10: emit one ldmatrix/stmatrix per mm, per warp.COMMENT
LOWpython/tvm/relax/transform/transform.py1656 The following code block decorates a function pass class.STRING
LOWpython/tvm/relax/transform/transform.py1788 The following code block decorates a dataflowblock pass class.STRING
LOW⚡python/tvm/tirx/build.py185 # Step 0: Determine the target in environmentCOMMENT
LOW⚡python/tvm/tirx/build.py193 # Step 1: Determine the target to search for tirx pipelineCOMMENT
LOW⚡python/tvm/tirx/build.py204 # Step 2: Determine the host targetCOMMENT
LOW⚡python/tvm/tirx/build.py214 # Step 3: Bind the target to the input moduleCOMMENT
LOW⚡python/tvm/tirx/build.py217 # Step 4: Apply the tirx pipelineCOMMENT
LOW⚡python/tvm/tirx/build.py229 # Step 5: Get host and device modulesCOMMENT
LOW⚡python/tvm/tirx/build.py232 # Step 6: Apply finalization passesCOMMENT
LOWpython/tvm/tirx/transform/function_pass.py105 The following code block decorates a function pass class.STRING
LOWpython/tvm/transform/core.py473 The following code block decorates a module pass class.STRING
LOWinclude/tvm/topi/nn/pooling.h574 // In the case of ceil_mode=True, we need to check if the last pooling window is valid.COMMENT
LOWinclude/tvm/target/config_schema.h124 // Step 1: validate/coerce and materialize options in declaration orderCOMMENT
LOWinclude/tvm/target/config_schema.h139 // Step 2: unknown-key policyCOMMENT
LOWinclude/tvm/target/config_schema.h156 // Step 3: whole-object canonicalization (last)COMMENT
LOWtests/python/relax/test_base_py_module_printer.py422 # 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.py122# Step 2: Debugging — The Main Selling PointCOMMENT
LOW⚡…s/how_to/tutorials/mix_python_and_tvm_with_pymodule.py186# Step 3: A Realistic Pipeline — Python, TIR, and Packed FunctionsCOMMENT
LOW⚡…s/how_to/tutorials/mix_python_and_tvm_with_pymodule.py259# Step 4: Relax-to-Python Converter — Verify at Any Compilation StageCOMMENT
LOW⚡…s/how_to/tutorials/mix_python_and_tvm_with_pymodule.py331# Step 5: R.call_py_func — Python Callbacks in Compiled IRCOMMENT
LOW⚡…s/how_to/tutorials/mix_python_and_tvm_with_pymodule.py381# Step 6: Cross-Level Calls and Symbolic ShapesCOMMENT
LOW⚡docs/how_to/tutorials/bring_your_own_codegen.py70# Step 1: Import the backends to register their patternsCOMMENT
LOW⚡docs/how_to/tutorials/bring_your_own_codegen.py103# Step 2: Define the modelCOMMENT
LOW⚡docs/how_to/tutorials/bring_your_own_codegen.py125# Step 3: Partition for the example NPUCOMMENT
LOW⚡docs/how_to/tutorials/bring_your_own_codegen.py153# Step 4: Codegen, build and run on the example NPUCOMMENT
LOW⚡docs/how_to/tutorials/export_and_load_executable.py247# # Step 1: Load the compiled libraryCOMMENT
LOW⚡docs/how_to/tutorials/export_and_load_executable.py250# # Step 2: Create Virtual MachineCOMMENT
LOW⚡docs/how_to/tutorials/export_and_load_executable.py254# # Step 3: Load parameters from the .npz fileCOMMENT
LOW⚡docs/how_to/tutorials/export_and_load_executable.py259# # Step 4: Prepare input dataCOMMENT
LOW⚡docs/how_to/tutorials/export_and_load_executable.py263# # Step 5: Run inference (pass input followed by all parameters)COMMENT
LOW⚡docs/how_to/tutorials/export_and_load_executable.py266# # Step 6: Extract result (output may be tuple or single Tensor)COMMENT
LOW⚡docs/how_to/tutorials/export_and_load_executable.py342# # Step 1: Cross-compile for ARM target (on local machine)COMMENT
LOW⚡docs/how_to/tutorials/export_and_load_executable.py347# # Step 2: Connect to remote device RPC serverCOMMENT
LOW⚡docs/how_to/tutorials/export_and_load_executable.py350# # Step 3: Upload the compiled library and parametersCOMMENT
1 more matches not shown…
Excessive Try-Catch Wrapping100 hits · 107 pts
SeverityFileLineSnippetContext
LOWpython/tvm/__init__.py134except Exception: # pylint: disable=broad-exception-caughtCODE
LOWpython/tvm/runtime/_tensor.py119 except Exception:CODE
LOWpython/tvm/s_tir/schedule/_type_checker.py350 except Exception:CODE
LOWpython/tvm/s_tir/script/ir_builder/parser_protocol.py66 except Exception as error: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.py298 except Exception: # pylint: disable=broad-exceptCODE
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
LOWpython/tvm/backend/cuda/tile_primitive/layout_utils.py357 except Exception:CODE
LOW…on/tvm/backend/cuda/tile_primitive/gemm/mma_m16n8k_.py101 except Exception as e: # follower dim layout incompatible with anchor decompositionCODE
LOW…on/tvm/backend/cuda/tile_primitive/gemm/mma_m16n8k_.py340 except Exception as e: # ICHECK failure -> layout not tileable as shape2dCODE
LOW…on/tvm/backend/cuda/tile_primitive/gemm/mma_m16n8k_.py353 except Exception as e: # ICHECK failure -> layout not tileable as shape2dCODE
LOW…on/tvm/backend/cuda/tile_primitive/gemm/mma_m16n8k_.py445 except Exception:CODE
MEDIUM…on/tvm/backend/cuda/tile_primitive/gemm/mma_m16n8k_.py320def _const(expr, name):CODE
LOW…tvm/backend/cuda/tile_primitive/elementwise/_common.py169 except Exception as e: # pylint: disable=broad-exceptCODE
LOWpython/tvm/backend/cuda/tile_primitive/copy/_common.py437 except Exception as e:CODE
LOWpython/tvm/backend/cuda/tile_primitive/copy/_common.py484 except Exception as e:CODE
LOW…on/tvm/backend/cuda/tile_primitive/copy/ld_stmatrix.py186 except Exception:CODE
LOW…on/tvm/backend/cuda/tile_primitive/copy/ld_stmatrix.py256 except Exception:CODE
LOWpython/tvm/contrib/download.py123 except Exception as err:CODE
LOWpython/tvm/script/printer/scriptable.py380 except Exception:CODE
MEDIUMpython/tvm/script/printer/scriptable.py374def _repr(self) -> str:CODE
LOWpython/tvm/testing/env.py96 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/tvm/testing/env.py112 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/tvm/testing/env.py132 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/tvm/testing/env.py146 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/tvm/testing/env.py259 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/tvm/testing/env.py291 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/tvm/testing/env.py309 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/tvm/testing/env.py336 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/tvm/testing/env.py355 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/tvm/testing/env.py371 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/tvm/testing/env.py388 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/tvm/testing/env.py404 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/tvm/testing/env.py417 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/tvm/testing/env.py439 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/tvm/support/popen_pool.py440 except Exception as exception:CODE
MEDIUMpython/tvm/support/popen_pool.py122def __del__(self):CODE
LOWpython/tvm/exec/popen_worker.py108 except Exception as exception:CODE
LOWpython/tvm/relax/base_py_module.py88 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/tvm/relax/base_py_module.py174 except Exception as error:CODE
LOWpython/tvm/relax/base_py_module.py182 except Exception as error:CODE
LOWpython/tvm/relax/base_py_module.py489 except Exception as error:CODE
LOWpython/tvm/relax/frontend/nn/exporter.py40 except Exception as exception:CODE
MEDIUMpython/tvm/relax/frontend/onnx/onnx_frontend.py6550 print(f"Error converting operator {op_name}, with inputs: {inputs}")CODE
MEDIUMpython/tvm/relax/frontend/onnx/onnx_frontend.py687def _impl_v7(cls, bb, inputs, attr, params):CODE
LOWpython/tvm/relax/frontend/onnx/onnx_frontend.py1300 except Exception:CODE
LOWpython/tvm/relax/frontend/onnx/onnx_frontend.py6549 except Exception as err: # pylint: disable=broad-exception-caughtCODE
LOWpython/tvm/relax/frontend/onnx/onnx_frontend.py6768 except Exception as exception: # pylint: disable=c-extension-no-member, broad-exceptCODE
40 more matches not shown…
Structural Annotation Overuse56 hits · 105 pts
SeverityFileLineSnippetContext
LOWpython/tvm/topi/vision/nms.py214 # Step 1: Reorder data by sorted scoreCOMMENT
LOWpython/tvm/topi/vision/nms.py253 # Step 2: Apply NMS - greedy suppressionCOMMENT
LOW⚡python/tvm/s_tir/meta_schedule/runner/local_runner.py146 # Step 1: create the local runtime moduleCOMMENT
LOW⚡python/tvm/s_tir/meta_schedule/runner/local_runner.py149 # Step 2: Allocate input argumentsCOMMENT
LOW⚡python/tvm/s_tir/meta_schedule/runner/local_runner.py157 # Step 3: Run time_evaluatorCOMMENT
LOW⚡python/tvm/s_tir/meta_schedule/runner/rpc_runner.py394 # Step 3: Allocate input argumentsCOMMENT
LOW⚡python/tvm/s_tir/meta_schedule/runner/rpc_runner.py402 # Step 4: Run time_evaluatorCOMMENT
LOW⚡…hon/tvm/backend/cuda/tile_primitive/elementwise/reg.py294 # Step 1: slice + permute (region offset absorbed into op_p.offset; per-iterCOMMENT
LOW⚡…hon/tvm/backend/cuda/tile_primitive/elementwise/reg.py299 # Step 2: post-align thread-equality check. ``align`` is supposed toCOMMENT
LOW⚡…hon/tvm/backend/cuda/tile_primitive/elementwise/reg.py311 # Step 3: drop thread iters; from here on operands have mem-only layouts.COMMENT
LOW⚡…hon/tvm/backend/cuda/tile_primitive/elementwise/reg.py316 # Step 4: enumerate spec.vec_impls widest-first; try carve tail for eachCOMMENT
LOW⚡…hon/tvm/backend/cuda/tile_primitive/elementwise/reg.py321 # Step 5: totals + emit. per_thread_total = ∏ extents of (carved) memCOMMENT
LOW…on/tvm/backend/cuda/tile_primitive/copy/ld_stmatrix.py78 # Step 1: identify reg / smem sides and pull their tensor shape + layout.COMMENT
LOW⚡…on/tvm/backend/cuda/tile_primitive/copy/ld_stmatrix.py116 # Step 3: ldstmatrix doesn't broadcast — require zero replica on both sides.COMMENT
LOW⚡…on/tvm/backend/cuda/tile_primitive/copy/ld_stmatrix.py122 # Step 4: R must have exactly one kind of lane axis from the valid set.COMMENT
LOW⚡…on/tvm/backend/cuda/tile_primitive/copy/ld_stmatrix.py130 # Step 5: group S by R's iter extents (one S group per R iter, outer→inner).COMMENT
LOW⚡…on/tvm/backend/cuda/tile_primitive/copy/ld_stmatrix.py134 # Step 6: permute R so thread iters come first (stride-desc), then memoryCOMMENT
LOW⚡…on/tvm/backend/cuda/tile_primitive/copy/ld_stmatrix.py139 # Step 7: apply R's perm to S in group units (1-to-1 with R's iters), andCOMMENT
LOW…on/tvm/backend/cuda/tile_primitive/copy/ld_stmatrix.py301 # Step 10: emit one ldmatrix/stmatrix per mm, per warp.COMMENT
LOWpython/tvm/relax/backend/cuda/flashinfer.py325 # NOTE: This function is still under development,COMMENT
LOW⚡python/tvm/tirx/build.py185 # Step 0: Determine the target in environmentCOMMENT
LOW⚡python/tvm/tirx/build.py193 # Step 1: Determine the target to search for tirx pipelineCOMMENT
LOW⚡python/tvm/tirx/build.py204 # Step 2: Determine the host targetCOMMENT
LOW⚡python/tvm/tirx/build.py214 # Step 3: Bind the target to the input moduleCOMMENT
LOW⚡python/tvm/tirx/build.py217 # Step 4: Apply the tirx pipelineCOMMENT
LOW⚡python/tvm/tirx/build.py229 # Step 5: Get host and device modulesCOMMENT
LOW⚡python/tvm/tirx/build.py232 # Step 6: Apply finalization passesCOMMENT
LOWinclude/tvm/target/config_schema.h124 // Step 1: validate/coerce and materialize options in declaration orderCOMMENT
LOWinclude/tvm/target/config_schema.h139 // Step 2: unknown-key policyCOMMENT
LOWinclude/tvm/target/config_schema.h156 // Step 3: whole-object canonicalization (last)COMMENT
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.py122# Step 2: Debugging — The Main Selling PointCOMMENT
LOW⚡…s/how_to/tutorials/mix_python_and_tvm_with_pymodule.py186# Step 3: A Realistic Pipeline — Python, TIR, and Packed FunctionsCOMMENT
LOW⚡…s/how_to/tutorials/mix_python_and_tvm_with_pymodule.py259# Step 4: Relax-to-Python Converter — Verify at Any Compilation StageCOMMENT
LOW⚡…s/how_to/tutorials/mix_python_and_tvm_with_pymodule.py331# Step 5: R.call_py_func — Python Callbacks in Compiled IRCOMMENT
LOW⚡…s/how_to/tutorials/mix_python_and_tvm_with_pymodule.py381# Step 6: Cross-Level Calls and Symbolic ShapesCOMMENT
LOW⚡docs/how_to/tutorials/bring_your_own_codegen.py70# Step 1: Import the backends to register their patternsCOMMENT
LOW⚡docs/how_to/tutorials/bring_your_own_codegen.py103# Step 2: Define the modelCOMMENT
LOW⚡docs/how_to/tutorials/bring_your_own_codegen.py125# Step 3: Partition for the example NPUCOMMENT
LOW⚡docs/how_to/tutorials/bring_your_own_codegen.py153# Step 4: Codegen, build and run on the example NPUCOMMENT
LOW⚡docs/how_to/tutorials/export_and_load_executable.py247# # Step 1: Load the compiled libraryCOMMENT
LOW⚡docs/how_to/tutorials/export_and_load_executable.py250# # Step 2: Create Virtual MachineCOMMENT
LOW⚡docs/how_to/tutorials/export_and_load_executable.py254# # Step 3: Load parameters from the .npz fileCOMMENT
LOW⚡docs/how_to/tutorials/export_and_load_executable.py259# # Step 4: Prepare input dataCOMMENT
LOW⚡docs/how_to/tutorials/export_and_load_executable.py263# # Step 5: Run inference (pass input followed by all parameters)COMMENT
LOW⚡docs/how_to/tutorials/export_and_load_executable.py266# # Step 6: Extract result (output may be tuple or single Tensor)COMMENT
LOW⚡docs/how_to/tutorials/export_and_load_executable.py342# # Step 1: Cross-compile for ARM target (on local machine)COMMENT
LOW⚡docs/how_to/tutorials/export_and_load_executable.py347# # Step 2: Connect to remote device RPC serverCOMMENT
LOW⚡docs/how_to/tutorials/export_and_load_executable.py350# # Step 3: Upload the compiled library and parametersCOMMENT
LOW⚡docs/how_to/tutorials/export_and_load_executable.py354# # Step 4: Load and run on remote deviceCOMMENT
Self-Referential Comments41 hits · 102 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/ir/_overload_prim_expr.py267 # This class is not manipulated by C++. So use python's identity check function is sufficientCOMMENT
MEDIUMpython/tvm/ir/_overload_prim_expr.py313 # This class is not manipulated by C++. So use python's identity check function is sufficientCOMMENT
MEDIUMpython/tvm/te/operation.py181 # The following code is equivalent to numpy.cumsumSTRING
MEDIUMpython/tvm/backend/trn/tile_primitive/binary/default.py75 # Define the implementation functionCOMMENT
MEDIUMpython/tvm/support/nvcc.py548 # Define the vector-deprecation silencing macros as no-ops for every NVRTCSTRING
MEDIUMpython/tvm/relax/base_py_module.py521 # 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.py9044 # 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.py4541 # Create a tensor of zeros then scatter our data through it.COMMENT
MEDIUM…n/tvm/relax/frontend/torch/base_fx_graph_translator.py1729 # Create a placeholder for indices (empty tensor with same shape as output)COMMENT
MEDIUM…n/tvm/relax/frontend/torch/base_fx_graph_translator.py1745 # Create a placeholder for indices (empty tensor with same shape as output)COMMENT
MEDIUM…n/tvm/relax/frontend/torch/base_fx_graph_translator.py1761 # Create a placeholder for indices (empty tensor with same shape as output)COMMENT
MEDIUMpython/tvm/relax/frontend/torch/fx_translator.py1245 # 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.py2409 # Define the moduleSTRING
MEDIUMpython/tvm/relax/testing/nn.py228 # Define a linear layerSTRING
MEDIUMpython/tvm/relax/transform/transform.py1105 # Define the pass input IRModuleSTRING
MEDIUMpython/tvm/relax/transform/transform.py1116 # Define the customized legalization function for "relax.add"STRING
MEDIUMpython/tvm/relax/transform/legalize_ops/manipulate.py347 # Create a TIR schedule to apply the layout change.COMMENT
MEDIUMtests/python/driver/test_compile.py64 # Define a simple Relax programCOMMENT
MEDIUMtests/python/runtime/test_executable.py108 # Create a temporary directory for the libraryCOMMENT
MEDIUMtests/python/runtime/test_executable.py182 # Create an executableCOMMENT
MEDIUMtests/python/runtime/test_executable.py238 # Create an executableCOMMENT
MEDIUM…tir/analysis/test_s_tir_analysis_verify_block_scope.py123 # Create an undeclared buffer using an explicit data pointer that is NOTCOMMENT
MEDIUMtests/python/s_tir/dlight/test_gpu_fallback.py215 # This function is identical, except that it is explicitlyCOMMENT
MEDIUMtests/python/codegen/test_target_codegen_llvm.py92 # Create an intrinsic that returns void.COMMENT
MEDIUMtests/python/support/test_util.py77 # Creating a new TempDirectory should fail nowCOMMENT
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_dlpack_integration.py204 # 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/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
Cross-Language Confusion17 hits · 85 pts
SeverityFileLineSnippetContext
HIGHpython/tvm/backend/cuda/launch/generate.py144 " if (values->Int(Field::kPreferredClusterX) == 1 && values->Int(Field::kPreferredClusterY) == 1 && values->IntCODE
HIGHpython/tvm/backend/cuda/codegen/header.py646 GmmaDescriptor(GmmaDescriptor && t) noexcept : desc_(t.desc_) {}CODE
HIGHpython/tvm/backend/cuda/codegen/header.py655 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
HIGHpython/tvm/relax/op/base.py187 null, opaque-pointer, DLTensor-pointer, or object-handle check.STRING
HIGHtests/python/sym/test_sym_z3.py661 # i.e. EnterConstraint's solver.push()/pop() must be balanced.COMMENT
HIGHtests/python/ir/test_node_reflection.py78 {"type": "ir.UnknownLoc", "data": null},CODE
HIGHtests/python/ir/test_node_reflection.py96 {"type": "ir.UnknownLoc", "data": null},CODE
HIGH⚡…tir/analysis/test_s_tir_analysis_verify_block_scope.py32 region = tvm.tirx.BufferRegion(buffer, [tvm.ir.Range.from_min_extent(undefined, 4)])CODE
HIGH…ython/s_tir/meta_schedule/test_meta_schedule_runner.py633 global repeated_args_before # pylint: disable=global-variable-undefined, invalid-nameCODE
HIGH…ython/s_tir/meta_schedule/test_meta_schedule_runner.py647 global repeated_args_before # pylint: disable=global-variable-undefined, invalid-nameCODE
HIGH…ython/s_tir/meta_schedule/test_meta_schedule_runner.py741 global repeated_args_before # pylint: disable=global-variable-undefined, invalid-nameCODE
HIGH…ython/s_tir/meta_schedule/test_meta_schedule_runner.py760 global repeated_args_before # pylint: disable=global-variable-undefined, invalid-nameCODE
HIGH…ython/s_tir/meta_schedule/test_meta_schedule_runner.py853 global repeated_args_before # pylint: disable=global-variable-undefined, invalid-nameCODE
HIGH…ython/s_tir/meta_schedule/test_meta_schedule_runner.py866 global repeated_args_before # pylint: disable=global-variable-undefined, invalid-nameCODE
HIGH…s/python/tirx-transform/test_tir_transform_simplify.py373 simplification that ``!(x || y) == !x && !y``.STRING
Modern Structural Boilerplate77 hits · 79 pts
SeverityFileLineSnippetContext
LOWpython/tvm/sym/analyzer.py166 def set_z3_timeout_ms(self, timeout_ms: int) -> None:CODE
LOWpython/tvm/sym/analyzer.py182 def set_z3_rlimit(self, rlimit: int) -> None:CODE
LOWpython/tvm/sym/analyzer.py376 def set_maximum_rewrite_steps(self, maximum: int) -> None:CODE
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
LOW⚡python/tvm/s_tir/script/ir_builder/parser_protocol.py150__all__ = ["arg_", "bind_", "check_well_formed_", "function", "function_", "init", "sblock"]CODE
LOWpython/tvm/s_tir/script/ir_builder/__init__.py29__all__ = [*_shared_exports, *_ir.__all__, *_protocol.__all__]CODE
LOWpython/tvm/s_tir/script/ir_builder/ir.py481__all__ = [CODE
LOWpython/tvm/s_tir/dlight/analysis/common_analysis.py36logger = 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__.py72__all__ = [CODE
LOWpython/tvm/backend/trn/op.py203__all__ = [CODE
LOWpython/tvm/backend/trn/pipeline.py58__all__ = ["finalize_device_passes_trn", "trn_pipeline"]CODE
LOWpython/tvm/backend/trn/script.py55__all__ = ["NKINamespace"]CODE
LOWpython/tvm/backend/trn/transform/__init__.py53__all__ = ["LowerTIRx", "LowerTrainiumLayout", "TrnNaiveAllocator", "TrnPrivateBufferAlloc"]CODE
LOWpython/tvm/backend/metal/__init__.py84__all__ = [CODE
LOWpython/tvm/backend/metal/op.py124__all__ = [CODE
LOWpython/tvm/backend/metal/script.py45__all__ = ["MetalNamespace"]CODE
LOWpython/tvm/backend/cuda/__init__.py117__all__ = [CODE
LOWpython/tvm/backend/cuda/iket.py831__all__ = [CODE
LOWpython/tvm/backend/cuda/ptx/__init__.py32__all__ = ["TABLE", "PTXNamespace", "register_addr", "register_table"]CODE
LOWpython/tvm/backend/cuda/launch/_generated.py103__all__ = [CODE
LOWpython/tvm/backend/cuda/launch/__init__.py28__all__ = [CODE
LOWpython/tvm/backend/cuda/codegen/__init__.py43__all__ = [CODE
LOWpython/tvm/backend/cuda/lang/__init__.py21__all__ = [CODE
LOWpython/tvm/backend/cuda/transforms/__init__.py41__all__ = ["LowerIket"]CODE
LOWpython/tvm/backend/cuda/cpp/__init__.py41__all__ = []CODE
LOW…tvm/backend/cuda/tile_primitive/elementwise/_common.py392__all__ = [CODE
LOW…ackend/cuda/tile_primitive/elementwise/ops/__init__.py122__all__ = ["ALL_OPS", "OpSpec", "Plan", "SrcSpec", "VecImpl"]CODE
LOW…on/tvm/backend/cuda/tile_primitive/copy/ld_stmatrix.py390__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/ir_builder/__init__.py67__all__ = [CODE
LOWpython/tvm/script/ir_builder/frame.py58 def set_names(self, names: str | Sequence[str] | None) -> None:CODE
LOWpython/tvm/script/parser/__init__.py36__all__ = [*_ENTRY_EXPORTS, "register_namespace", "register_namespace_initializer"]CODE
LOWpython/tvm/script/parser/protocol_registry.py40__all__ = ["register_mutable_decl", "register_scalar_annotation"]CODE
LOWpython/tvm/testing/env.py54__all__ = [CODE
LOWpython/tvm/relax/expr_functor.py1618 def set_var_remap(self, old_var: Var, new_var: Var) -> None:CODE
LOWpython/tvm/relax/block_builder.py749 def update_func(self, gv: GlobalVar, updated_func: BaseFunc) -> None:CODE
LOWpython/tvm/relax/expr.py637def _update_type(expr: Expr, ty: Type | None) -> None:CODE
LOWpython/tvm/relax/frontend/tflite/tflite_frontend.py39__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.py87__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/ir_builder/parser_protocol.py569__all__ = [CODE
17 more matches not shown…
Redundant / Tautological Comments43 hits · 69 pts
SeverityFileLineSnippetContext
LOWpython/tvm/topi/sparse_reshape.py171 # Check if prev_shape and new_shape are equalCOMMENT
LOWpython/tvm/backend/trn/tile_primitive/dim_utils.py225 # Check if there is a direct mappingCOMMENT
LOWpython/tvm/backend/cuda/lang/tile_scheduler.py376 # Check if we're in the full block regionCOMMENT
LOWpython/tvm/relax/relax_to_pyfunc_converter.py418 # Check if it's a function parameterCOMMENT
LOWpython/tvm/relax/relax_to_pyfunc_converter.py423 # Check if it's a bound variableCOMMENT
LOWpython/tvm/relax/frontend/tflite/tflite_frontend.py1089 # Check if the tensors are quantized. Parse if yes.COMMENT
LOWpython/tvm/relax/frontend/tflite/tflite_frontend.py3892 # Check if the input tensor is quantized, call QNN opCOMMENT
LOWpython/tvm/relax/frontend/onnx/onnx_frontend.py2703 # Check if either dimension is symbolic (Expr)COMMENT
LOW…n/tvm/relax/frontend/torch/base_fx_graph_translator.py291 # Check if this is a null_value expressionCOMMENT
LOW…n/tvm/relax/frontend/torch/base_fx_graph_translator.py2339 # 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/tirx/script/ir_builder/external_kernel.py167 # 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
LOW…ts/python/s_tir/script/test_s_tir_script_ir_builder.py57 # Check if the generated ir is expectedCOMMENT
LOW…ts/python/s_tir/script/test_s_tir_script_ir_builder.py111 # Check if the generated ir is expectedCOMMENT
LOW…ts/python/s_tir/script/test_s_tir_script_ir_builder.py140 # Check if the generated ir is expectedCOMMENT
LOW…ts/python/s_tir/script/test_s_tir_script_ir_builder.py190 # Check if the generated ir is expectedCOMMENT
LOW…ts/python/s_tir/script/test_s_tir_script_ir_builder.py234 # Check if the generated ir is expectedCOMMENT
LOW…ts/python/s_tir/script/test_s_tir_script_ir_builder.py258 # Check if the generated ir is expectedCOMMENT
LOWtests/python/contrib/test_example_npu.py98# Check if the example NPU runtime is availableCOMMENT
LOWtests/python/codegen/test_target_codegen_aarch64.py613 # Check if the vscale_range() attribute existsCOMMENT
LOW⚡tests/python/relax/script/test_relax_script_pyfunc.py135 # Check if functions attribute existsCOMMENT
LOW⚡tests/python/relax/script/test_relax_script_pyfunc.py147 # Check if script method existsCOMMENT
LOW⚡tests/python/relax/script/test_relax_script_pyfunc.py159 # Check if inheritance flag exists (this might not be set in all implementations)COMMENT
LOW⚡tests/python/relax/script/test_relax_script_pyfunc.py166 # Check if original class is preserved (this might not be set in all implementations)COMMENT
LOW⚡tests/python/tirx/script/test_tirx_script_ir_builder.py224 # Check if the generated ir is expectedCOMMENT
LOW⚡tests/python/tirx/script/test_tirx_script_ir_builder.py237 # Check if the generated ir is expectedCOMMENT
LOWtests/python/tirx/script/test_tirx_script_ir_builder.py93 # Check if the generated ir is expectedCOMMENT
LOWtests/python/tirx/script/test_tirx_script_ir_builder.py113 # Check if the generated ir is expectedCOMMENT
LOWtests/python/tirx/script/test_tirx_script_ir_builder.py137 # Check if the generated ir is expectedCOMMENT
LOWtests/python/tirx/script/test_tirx_script_ir_builder.py151 # Check if the generated ir is expectedCOMMENT
LOWtests/python/tirx/script/test_tirx_script_ir_builder.py168 # Check if the generated ir is expectedCOMMENT
LOWtests/python/tirx/script/test_tirx_script_ir_builder.py190 # Check if the generated ir is expectedCOMMENT
LOWtests/python/tirx/script/test_tirx_script_ir_builder.py206 # Check if the generated ir is expectedCOMMENT
LOWtests/python/tirx/script/test_tirx_script_ir_builder.py252 # Check if the generated ir is expectedCOMMENT
LOWtests/scripts/ci.py552 # Check if it should be a flagCOMMENT
LOWdocs/how_to/tutorials/customize_opt.py125 # Check if CUBLAS is enabledCOMMENT
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
LOWpython/tvm/te/reduction.py284 # mode 2, simply use it with multiple Exprs:COMMENT
MEDIUM⚡…hon/tvm/backend/cuda/tile_primitive/elementwise/reg.py290 # trivial / identity layouts are fine — the algorithm is robust toCOMMENT
LOW…vm/backend/cuda/tile_primitive/elementwise/ops/cast.py40 # Schedule wraps with Tx.cast(..., dst.dtype) — just pass through.COMMENT
LOWpython/tvm/script/parser/inspect_source.py123 # Since `findsource` is an internal API of inspect, we just use itCOMMENT
LOWpython/tvm/relax/relax_to_pyfunc_converter.py640 # Simple fallback: just add the tensorsCOMMENT
LOWpython/tvm/relax/frontend/onnx/onnx_frontend.py2460 # from other frameworks and not actually used in TVM. We'll just useCOMMENT
LOW…n/tvm/relax/frontend/torch/base_fx_graph_translator.py2686 # by the translator, and therefore we just return a copy of the input.COMMENT
LOW…vm/relax/frontend/torch/exported_program_translator.py2036 "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
MEDIUMtests/python/relax/test_relax_to_pyfunc_converter.py367 """Test that operator mapping is comprehensive."""STRING
MEDIUMtests/python/relax/test_base_py_module_printer.py346 """Test comprehensive error handling and validation."""STRING
MEDIUMtests/python/relax/test_base_py_module_printer.py350 """Robust data processing with comprehensive error handling."""STRING
MEDIUMtests/python/tirx/iket/test_iket_orchestration.py57 pytest.importorskip("triton") # tvm.tirx.bench pulls in the triton harnessCODE
MEDIUMdocs/how_to/tutorials/e2e_opt_model.py97# leverage MetaSchedule to tune the model and store the tuning logs to the database. We alsoCOMMENT
MEDIUM⚡docs/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.py261# The aforementioned lambda expression encapsulates the computation:COMMENT
MEDIUM…cs/deep_dive/tensor_ir/tutorials/tir_transformation.py176# 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.py27 Calculates the output shape of a tensor after applying padding. Args: data (tvm.te.Tensor): The input STRING
HIGHpython/tvm/backend/cuda/codegen/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/codegen/utils.py62Validate that value is within range and is a power of two. Args: value: The value to validate min_vSTRING
HIGH…/tvm/backend/cuda/tile_primitive/gemm_async/tcgen05.py360Schedule 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.py9062 # Alternatively you can use tensorflow.keras.application wrapped arounf a tf.functionSTRING
MEDIUMinclude/tvm/s_tir/transform.h197 * which is the three blocks as discussed above.COMMENT
MEDIUM⚡docs/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.py39def placeholder(shape, dtype=None, name="placeholder"):CODE
LOWpython/tvm/relax/frontend/torch/fx_translator.py1128 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.py1531 if node.op == "placeholder":CODE
LOW…vm/relax/frontend/torch/exported_program_translator.py1627 placeholders = [n for n in nodes if n.op == "placeholder"]CODE
LOW…vm/relax/frontend/torch/exported_program_translator.py2183 for node in exported_program.graph.find_nodes(op="placeholder", target=spec.target):CODE
LOWinclude/tvm/te/operation.h440 std::string name = "placeholder");CODE
Overly Generic Function Names9 hits · 7 pts
SeverityFileLineSnippetContext
LOWtests/python/tirx-base/test_tir_nodes.py301def test_function():CODE
LOWtests/python/s_tir/script/test_s_tir_script_printer.py121def test_function():CODE
LOWtests/python/script/test_basic_usage.py38def test_function(language):CODE
LOWtests/python/script/test_meta_programming.py493 def helper():CODE
LOWtests/python/script/test_meta_programming.py652 def helper():CODE
LOWtests/python/script/test_meta_programming.py710 def helper(value):CODE
LOWtests/python/script/test_meta_programming.py766 def helper():CODE
LOWtests/python/relax/test_expr_functor.py550def test_function():CODE
LOWtests/python/relax/script/test_relax_script_printer.py222def test_function():CODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMtests/python/script/test_parser_entry.py49 # scaffolding.COMMENT
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUM…ython/relax/script/test_relax_script_error_handling.py290CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOW.agents/scripts/monitor_gpu.sh7# Usage:COMMENT