Skip to content
⌘K

Apache TVM

Open Machine Learning Compiler Framework.

health 96contrib 5014k

Overview & architecture

C++ standard
–
Build systems
cmake
License
Apache-2.0
Languages
Python
Last release
v0.27.0.post1 · Sep 29, 2026

Repository activity

snapshot Nov 22, 2026
GitHub stars
latest
14k▲ 122
Merged PRs (30d)
latest
27▼ 9
Contributors (90d)
latest
25▲ 17
Issue first response p50
–
No snapshots yet.
338 open issues183 open PRs10 releases / year27 commits (30d)0 good first issues0 help wanted

Recent notable activity

  • Merged PR
    [Perf][Relax] Skip future KV tiles in causal ragged prefill

    The generic TIR ragged prefill kernel traverses the full KV range even when causal masking makes later tiles invisible to every query in the current tile. These iterations still load K/V and compute QK, online softmax, and PV. Bound the KV…

    #20903 · by dotcom07
  • Merged PR
    refactor(op-dispatch)!: dispatch tile ops through Op attributes

    TileDispatch currently identifies tile Calls through TIRxOpCategory and invokes fixed Python dispatcher and scope globals. Register FTileOpDispatch(Call, DispatchContext) -> Function on each Op and use that attribute for both tile…

    #20671 · by spectrometerHBH
  • Merged PR
    refactor(op)!: consolidate TIRx helper ownership

    Backend-specific helpers remain exposed through tvm.tirx.lang and tvm.tirx.operator, while effective layout inference lives in tile utilities even though it depends on tensor type information. Move these definitions to their owning type or…

    #20668 · by spectrometerHBH
  • Merged PR
    refactor(op)!: isolate TIRx tile and backend layout namespaces

    Tile dispatch currently mixes generic tensor layout IR with backend instruction implementations, hardware axes, and CUDA execution analysis. This change gives tile operations a dedicated namespace and keeps backend-specific layout and…

    #20663 · by spectrometerHBH
  • Merged PR
    refactor(infra)!: pass backend configuration through Target

    CUDA backend configuration already travels through Target attributes. Remove the parallel backend_config keyword from tvm.compile, tvm.tirx.build, tvm.relax.build, and IketProfiler.compile; compilation now resolves its defaults from the…

    #20651 · by spectrometerHBH
  • Merged PR
    refactor(infra)!: unify CUDA backend configuration

    CUDA compiler settings need to be consistent across build defaults, target presets, and individual device entries without maintaining a Python field for every native compiler flag. Introduce a lightweight per-backend mapping accepted…

    #20645 · by spectrometerHBH
  • Merged PR
    refactor(lower-tirx)!: separate CUDA launch configuration from index bindings

    TIRx currently derives CUDA launch dimensions from scope-index declarations, while CUDA modules and cuda_host exports maintain separate launch configuration plumbing. This change removes ScopeIdDef and makes launch geometry independent of…

    #20639 · by spectrometerHBH
  • Merged PR
    refactor(op)!: replace tile statements with tensor instruction calls

    Replace the dedicated tile statement and generic tile dispatcher with opaque, void Call expressions wrapped in Evaluate. Runtime operands, including predicates, barriers, remote CTA IDs, gather coordinates, descriptor selectors, cache…

    #20632 · by spectrometerHBH
  • Release
    Apache TVM v0.27.0.post1

    What's Changed [FIX][TIRx][CUDA] Support low-precision, tensor-map and cluster kernels in CUDA-host bundles by @spectrometerHBH in Full Changelog:

    MasterJH5574v0.27.0.post1
  • Release
    Apache TVM v0.27.0

    What's Changed [Web] Bump tvmjs version to 0.27.0-dev0 on main by @MasterJH5574 in [Fix][Relax][ONNX] Handle Split initializer with keep_params_in_input by @hahalfx in [Fix][Arith] Isolate Z3 contexts and make memoization deterministic by @tlopex in [Fix][TIRx] Fix MSVC build of IndexDataTypeNormalizer by…

    MasterJH5574v0.27.0
  • RFC / tracking
    [RFC] Expanding ONNX operator coverage in the Relax frontend

    Context The Relax ONNX frontend currently implements ~160 operators from the ONNX spec. Comparing against the current operator list ( a number of ops are not yet supported. Before opening PRs, I'd like to check on priorities/approach with…

    #20124 · by OmarAzizi
  • Release
    Apache TVM v0.26.0

    What's Changed [Relax][PyTorch] Cast non-bool inputs to bool in logical_and converter by @javierdejesusda in [CI] Remove PyPI-only tag ref guard from wheel publishing by @tlopex in [CI] Target apache-tvm for PyPI wheel publishing by @tlopex in [Web] Bump tvmjs version to 0.25.0-dev1 by @akaashrp in [Fix] CommReduce…

    MasterJH5574v0.26.0

Stories

Major changeFor you

Apache TVM: [Perf][Relax] Skip future KV tiles in causal ragged prefill

The generic TIR ragged prefill kernel traverses the full KV range even when causal masking makes later tiles invisible to every query in the current tile. These iterations still load K/V and compute QK, online softmax, and PV. Bound the KV…

Why it matters: Apache TVM is in AI & Accelerated Computing (one of your focus areas).

Major changeFor you6 items

Apache TVM: 6 notable changes in the week of Oct 5

refactor(op)!: replace tile statements with tensor instruction calls; refactor(lower-tirx)!: separate CUDA launch configuration from index bindings; refactor(infra)!: unify CUDA backend configuration; refactor(infra)!: pass backend configuration through Target; refactor(op)!: isolate TIRx tile and…

Why it matters: Apache TVM is in AI & Accelerated Computing (one of your focus areas).

ReleaseFor you

Apache TVM v0.27.0.post1 released

What's Changed [FIX][TIRx][CUDA] Support low-precision, tensor-map and cluster kernels in CUDA-host bundles by @spectrometerHBH in Full Changelog:

Why it matters: Apache TVM is in AI & Accelerated Computing (one of your focus areas).

ReleaseFor you

Apache TVM v0.27.0 released

What's Changed [Web] Bump tvmjs version to 0.27.0-dev0 on main by @MasterJH5574 in [Fix][Relax][ONNX] Handle Split initializer with keep_params_in_input by @hahalfx in [Fix][Arith] Isolate Z3 contexts and make memoization deterministic by @tlopex in [Fix][TIRx] Fix MSVC build of…

Why it matters: Apache TVM is in AI & Accelerated Computing (one of your focus areas).

Major changeFor you

Apache TVM: [RFC] Expanding ONNX operator coverage in the Relax frontend

Context The Relax ONNX frontend currently implements ~160 operators from the ONNX spec. Comparing against the current operator list ( a number of ops are not yet supported. Before opening PRs, I'd like to check on priorities/approach with…

Why it matters: An open RFC/proposal that is still up for discussion. Apache TVM is in AI & Accelerated Computing (one of your focus areas).

Maintainers & organizations

every claim links to its source

Maintainers

Top contributors

Releases & changelog

  • Apache TVM v0.27.0.post1major

    What's Changed [FIX][TIRx][CUDA] Support low-precision, tensor-map and cluster kernels in CUDA-host bundles by @spectrometerHBH in Full Changelog:

  • Apache TVM v0.27.0major

    What's Changed [Web] Bump tvmjs version to 0.27.0-dev0 on main by @MasterJH5574 in [Fix][Relax][ONNX] Handle Split initializer with keep_params_in_input by @hahalfx in [Fix][Arith] Isolate Z3 contexts and make memoization deterministic by @tlopex in [Fix][TIRx] Fix MSVC build of IndexDataTypeNormalizer by…

  • Apache TVM v0.27.0.rc1pre-release / patch

    What's Changed [Web] Bump tvmjs version to 0.27.0-dev0 on main by @MasterJH5574 in [Fix][Relax][ONNX] Handle Split initializer with keep_params_in_input by @hahalfx in [Fix][Arith] Isolate Z3 contexts and make memoization deterministic by @tlopex in [Fix][TIRx] Fix MSVC build of IndexDataTypeNormalizer by…

  • Apache TVM v0.27.0.rc0pre-release / patch

    What's Changed [Web] Bump tvmjs version to 0.27.0-dev0 on main by @MasterJH5574 in [Fix][Relax][ONNX] Handle Split initializer with keep_params_in_input by @hahalfx in [Fix][Arith] Isolate Z3 contexts and make memoization deterministic by @tlopex in [Fix][TIRx] Fix MSVC build of IndexDataTypeNormalizer by…

  • Apache TVM v0.26.0major

    What's Changed [Relax][PyTorch] Cast non-bool inputs to bool in logical_and converter by @javierdejesusda in [CI] Remove PyPI-only tag ref guard from wheel publishing by @tlopex in [CI] Target apache-tvm for PyPI wheel publishing by @tlopex in [Web] Bump tvmjs version to 0.25.0-dev1 by @akaashrp in [Fix] CommReduce…

  • Apache TVM v0.26.0.rc0pre-release / patch

    What's Changed [release][Dont Squash] Update version to 0.24.0 and 0.25.0.dev on main branch by @ysh329 in [Relax][Frontend] Add ParameterList and ParameterDict containers by @mshr-h in [Relax][Frontend][TFLite] Add segment operator mappings by @Aharrypotter in [BUGFIX][TIR] Skip bool-typed expressions in CSE by…

  • Apache TVM v0.25.0major

    Introduction The TVM community has worked since the last release to deliver the following new exciting improvements! The main tags are below (bold text is with lots of progress): Relax, Frontend, TIR, Runtime, etc. Please visit the full listing of commits for a complete view: v0.24.0...v0.25.0. Community None. RFCs…

  • Apache TVM v0.25.0.rc1pre-release / patch

    What's Changed [CI] Merge PR against its target branch instead of main (#19712) by @MasterJH5574 in [RELEASE] Backport main to prepare v0.25.0.rc1 by @MasterJH5574 in [v0.25.0] Backport recent main to prepare v0.25.0.rc1 by @MasterJH5574 in [CMAKE] Revert build baseline to C++17 by @MasterJH5574 in [Fix] Revert…

  • Apache TVM v0.25.0.rc0pre-release / patch

    What's Changed [release][Dont Squash] Update version to 0.24.0 and 0.25.0.dev on main branch by @ysh329 in [Relax][Frontend] Add ParameterList and ParameterDict containers by @mshr-h in [Relax][Frontend][TFLite] Add segment operator mappings by @Aharrypotter in [BUGFIX][TIR] Skip bool-typed expressions in CSE by…

  • Apache TVM v0.24.0major

    Introduction The TVM community has worked since the last release to deliver the following new exciting improvements! The main tags are below (bold text is with lots of progress): Relax etc. Please visit the full listing of commits for a complete view: v0.24.dev0...v0.24.0.rc0. Community None. RFCs None. Adreno #18867…

Contribution opportunities

0 published

No published opportunities

Cards are published only for real, open, unassigned issues with maintainer engagement.
30 more candidates below the publish threshold
LabelleduntouchedstaleMatches your profileTensor Runtimes & ML Frameworks

If branch tensor constants lose metadata in script round-trip

Expected behavior A well-formed Relax If module printed with show_meta=True should parse back with its branch constants preserved. Actual behavior Both branches execute correctly on CPU. Scalar branch constants round-trip successfully, but vector constants produce references to missing metadata: text NameError: name 'metadata' is not defined Environment TVM 0.28.dev0 (local CPU build; build commit unavailable), LLVM 18.1.3, Python 3.12.3, NumPy 2.5.4, Linux x86_64. Steps to reproduce Run with python repro.py: python import numpy as np import tvm from tvm import relax for vector in [False,…

45score
cpp20linux
  • Demand 25% × 0.00 = 00 reactions, 0 comments
  • Technical fit 30% × 0.75 = 22Apache TVM is in AI & Accelerated Computing (a focus area); issue needs cpp20, linux, which you listed
  • Maintainer engagement 25% × 0.45 = 11no maintainer comment yet; labelled (triaged); project responsiveness 100%
  • Feasibility 20% × 0.55 = 11clear scope; has reproduction steps; has code; project onboarding 50%
Evidence
Suggested first step

Reproduce the bug on the latest main branch of Apache TVM, reduce it to a minimal example, and post your findings on the issue before opening a PR.

Rule-generated · updated 12d ago
LabelleduntouchedcandidateMatches your profileTensor Runtimes & ML Frameworks

Relax.build with batch_norm on CUDA fails with 'buffer v_red occurred before its declaration' for specific input shape

Expected behavior relax.build(mod, target="cuda") should compile successfully for any valid Relax IR module, including relax.op.nn.batch_norm with any valid input shape. The compiled module should execute and produce correct batch normalization results. Actual behavior relax.build crashes with an InternalError during CUDA codegen: tvm.error.InternalError: Check failed: (it != info_map_.end()) is false: Load/Store of buffer v_red (0x9c5db70) occurred before its declaration. Environment OS: Linux (x86_64) GPU: NVIDIA GeForce RTX 3080 Ti (12GB VRAM) CUDA driver: 580.76.05 TVM version:…

45score
compilerscpp20cudalinux
  • Demand 25% × 0.00 = 00 reactions, 0 comments
  • Technical fit 30% × 0.75 = 22Apache TVM is in AI & Accelerated Computing (a focus area); issue needs cpp20, linux, which you listed
  • Maintainer engagement 25% × 0.45 = 11no maintainer comment yet; labelled (triaged); project responsiveness 100%
  • Feasibility 20% × 0.55 = 11clear scope; has reproduction steps; has code; project onboarding 50%
Evidence
Suggested first step

Reproduce the build problem in a clean environment (container or CI matrix), then propose the smallest change to the build scripts.

Rule-generated · updated 22d ago
LabelledstaleMatches your profileTensor Runtimes & ML Frameworks

`relax.build` crashes with an `AttributeError` during the dlight GPU scheduling pass

Expected behavior relax.build(mod, target="cuda") should compile successfully for any valid Relax IR module containing relax.op.nn.conv2d. The compiled module should execute and produce correct convolution results. Actual behavior relax.build crashes with an AttributeError during the dlight GPU scheduling pass: AttributeError: 'FloorDiv' object has no attribute 'value' Environment OS: Linux (x86_64, conda environment) GPU: NVIDIA GeForce RTX 3080 Ti (12GB VRAM) CUDA driver: 580.76.05 TVM version: 0.25.0.post1 (installed via pip) Target: cuda (GPU compilation) Python: 3.12 Steps to reproduce…

45score
cpp20cudalinux
  • Demand 25% × 0.00 = 00 reactions, 3 comments (not counted alone)
  • Technical fit 30% × 0.75 = 22Apache TVM is in AI & Accelerated Computing (a focus area); issue needs cpp20, linux, which you listed
  • Maintainer engagement 25% × 0.45 = 11no maintainer comment yet; labelled (triaged); project responsiveness 100%
  • Feasibility 20% × 0.55 = 11clear scope; has reproduction steps; has code; project onboarding 50%
Evidence
Suggested first step

Reproduce the build problem in a clean environment (container or CI matrix), then propose the smallest change to the build scripts.

Rule-generated · updated Oct 8, 2026
LabelleduntouchedcandidateMatches your profileTensor Runtimes & ML Frameworks

CUDA Check failed: block_realize == old_block_realize_.get() (0x88a32c0 vs. 0x88cd340)

Expected behavior relax.build(mod, target="cuda") should compile successfully for any valid Relax IR module. The compiled module should execute and produce correct results. Actual behavior relax.build crashes with an InternalError during the CUDA dLight scheduling pass: tvm.error.InternalError: Check failed: block_realize == old_block_realize_.get() (0x9a04a00 vs. 0x99fa0f0) : Environment OS: Linux (x86_64, conda environment) GPU: NVIDIA GeForce RTX 3080 Ti (12GB VRAM, CUDA 580.76.05) TVM version: 0.25.0.post1 Target: cuda (GPU compilation) Python: 3.12 Steps to reproduce python import tvm…

42score
cpp20cudalinux
  • Demand 25% × 0.00 = 00 reactions, 0 comments
  • Technical fit 30% × 0.75 = 22Apache TVM is in AI & Accelerated Computing (a focus area); issue needs cpp20, linux, which you listed
  • Maintainer engagement 25% × 0.45 = 11no maintainer comment yet; labelled (triaged); project responsiveness 100%
  • Feasibility 20% × 0.40 = 8has reproduction steps; has code; project onboarding 50%
Evidence
Suggested first step

Reproduce the bug on the latest main branch of Apache TVM, reduce it to a minimal example, and post your findings on the issue before opening a PR.

Rule-generated · updated 22d ago
LabelleduntouchedstaleMatches your profileTensor Runtimes & ML Frameworks

Fusing MaxPool with Add increases latency by 5.53x

Expected behavior Fusing a 2x2 MaxPool with its elementwise Add consumer should retain an efficient schedule for the small reduction. In this case, one thread can compute an output using four input values and then apply the Add. Actual behavior Enabling FuseOps and FuseTIR increases end-to-end VM latency from 45.68 us to 251.70 us on an RTX A6000. Keeping the upstream Add/Concat operations fused while separating Pool from Add takes 13.00 us. The graph was extracted from the official pass-test corpus for AnnotateTIROpPattern/FuseOps and adapted to the TIRx API. Its input is float32…

42score
concurrencycudaperformancetesting
  • Demand 25% × 0.00 = 00 reactions, 2 comments (not counted alone)
  • Technical fit 30% × 0.75 = 22Apache TVM is in AI & Accelerated Computing (a focus area); issue needs concurrency, performance, which you listed
  • Maintainer engagement 25% × 0.45 = 11no maintainer comment yet; labelled (triaged); project responsiveness 100%
  • Feasibility 20% × 0.40 = 8has reproduction steps; has code; project onboarding 50%
Evidence
Suggested first step

Reproduce the benchmark or slow path, profile it (perf, VTune or Tracy), and share the numbers on the issue before proposing a change.

Rule-generated · updated Oct 20, 2026
LabelleduntouchedcandidateMatches your profileTensor Runtimes & ML Frameworks

Gradient computes invalid output_padding for dilated conv2d, causing Conv2dTranspose construction to fail

Expected behavior Applying relax.transform.Gradient("main") to a well-formed 2-line Relax IRModule containing R.nn.conv2d(..., strides=(1, 1), padding=(2, 2), dilation=(2, 2)) should generate a valid adjoint function, just as it does for dilation=(1, 1). Actual behavior Forward compilation (tvm.compile(Module, target="llvm")) succeeds cleanly, and dilation=(1, 1) passes relax.transform.Gradient("main"). With dilation=(2, 2) (even with groups=1), relax.transform.Gradient("main") computes an invalid output_padding=(2, 2) for conv2d_transpose (ignoring dilation > 1) and crashes with: text…

41score
cpp20
  • Demand 25% × 0.00 = 00 reactions, 0 comments
  • Technical fit 30% × 0.61 = 18Apache TVM is in AI & Accelerated Computing (a focus area); issue needs cpp20, which you listed
  • Maintainer engagement 25% × 0.45 = 11no maintainer comment yet; labelled (triaged); project responsiveness 100%
  • Feasibility 20% × 0.55 = 11clear scope; has reproduction steps; has code; project onboarding 50%
Evidence
Suggested first step

Reproduce the bug on the latest main branch of Apache TVM, reduce it to a minimal example, and post your findings on the issue before opening a PR.

Rule-generated · updated 19h ago
LabelleduntouchedcandidateMatches your profileTensor Runtimes & ML Frameworks

RewriteCUDAGraph illegally captures dynamic-shape relax.run.nonzero and crashes with cudaErrorStreamCaptureImplicit (906)

Expected behavior Compiling a Relax IRModule containing R.nonzero with PassContext(config={"relax.backend.use_cuda_graph": True}) should exclude relax.run.nonzero (a data-dependent, dynamic-shape packed call that uses the legacy stream / host-device synchronization) from CUDA Graph capture regions, and execute identically to use_cuda_graph=False. Actual behavior With use_cuda_graph=False, the module compiles and executes cleanly on CUDA. With use_cuda_graph=True, relax.transform.RewriteCUDAGraph lifts R.call_packed("relax.run.nonzero", a) directly into main_cuda_graph_capture, even though its…

41score
cpp20cuda
  • Demand 25% × 0.00 = 00 reactions, 0 comments
  • Technical fit 30% × 0.61 = 18Apache TVM is in AI & Accelerated Computing (a focus area); issue needs cpp20, which you listed
  • Maintainer engagement 25% × 0.45 = 11no maintainer comment yet; labelled (triaged); project responsiveness 100%
  • Feasibility 20% × 0.55 = 11clear scope; has reproduction steps; has code; project onboarding 50%
Evidence
Suggested first step

Reproduce the bug on the latest main branch of Apache TVM, reduce it to a minimal example, and post your findings on the issue before opening a PR.

Rule-generated · updated 19h ago
LabelleduntouchedstaleMatches your profileTensor Runtimes & ML Frameworks

Float8 Cast drops saturate and merges distinct programs

Expected behavior Cast-19 distinguishes saturate=0 and 1 for FLOAT8E4M3FN overflow. Casting 1000 and casting back should give NaN and 448, respectively. Actual behavior Full ONNX checking and ReferenceEvaluator distinguish both models, while from_onnx produces structurally identical Relax IR. The Cast converter never reads saturate. This demonstrates semantic information loss during conversion; it does not attribute every Float8 backend difference to this attribute or claim a native Float8 kernel was executed. Environment TVM 0.28.dev0, LLVM 18.1.3, Linux x86_64; Python 3.12.3, NumPy 2.5.4,…

41score
linux
  • Demand 25% × 0.00 = 00 reactions, 0 comments
  • Technical fit 30% × 0.61 = 18Apache TVM is in AI & Accelerated Computing (a focus area); issue needs linux, which you listed
  • Maintainer engagement 25% × 0.45 = 11no maintainer comment yet; labelled (triaged); project responsiveness 100%
  • Feasibility 20% × 0.55 = 11clear scope; has reproduction steps; has code; project onboarding 50%
Evidence
Suggested first step

Reproduce the bug on the latest main branch of Apache TVM, reduce it to a minimal example, and post your findings on the issue before opening a PR.

Rule-generated · updated 19h ago
LabelleduntouchedcandidateMatches your profileTensor Runtimes & ML Frameworks

MaxUnpool calls tolist on its output_shape expression

Expected behavior Providing the optional constant output_shape=[1, 1, 2, 2] should preserve the result of the equivalent two-input MaxUnpool. Actual behavior The two-input model imports. Adding the same explicit output shape passes ONNX full checking and reference evaluation, then fails during import: text AttributeError: 'GenericConst' object has no attribute 'tolist' The converter assigns inputs[2] to total_output_shape and calls .tolist() on that Relax expression. Environment TVM 0.28.dev0 (local build; build commit unavailable), Python 3.12.3, Linux x86_64; ONNX 1.22.0, NumPy 2.5.4. Steps…

41score
linux
  • Demand 25% × 0.00 = 00 reactions, 0 comments
  • Technical fit 30% × 0.61 = 18Apache TVM is in AI & Accelerated Computing (a focus area); issue needs linux, which you listed
  • Maintainer engagement 25% × 0.45 = 11no maintainer comment yet; labelled (triaged); project responsiveness 100%
  • Feasibility 20% × 0.55 = 11clear scope; has reproduction steps; has code; project onboarding 50%
Evidence
Suggested first step

Reproduce the bug on the latest main branch of Apache TVM, reduce it to a minimal example, and post your findings on the issue before opening a PR.

Rule-generated · updated 19h ago
LabelleduntouchedstaleMatches your profileTensor Runtimes & ML Frameworks

Torch.prod with reduction dimension fails in from_exported_program: "AssertionError: Unsupported function types ['prod.dim_int']"

Expected behavior Calling torch.prod(x, dim=...) in a PyTorch module should be successfully imported into Relax via from_exported_program. The underlying translator already has an implementation in base_fx_graph_translator.py (_prod) that supports dim and keepdim. Actual behavior When translating an ExportedProgram that uses torch.prod with a reduction axis, from_exported_program fails with an AssertionError: Traceback (most recent call last): File "repro.py", line 11, in mod = from_exported_program(ep) File "python/tvm/relax/frontend/torch/exported_program_translator.py", line 2454, in…

41score
compilerscpp20
  • Demand 25% × 0.00 = 00 reactions, 0 comments
  • Technical fit 30% × 0.61 = 18Apache TVM is in AI & Accelerated Computing (a focus area); issue needs cpp20, which you listed
  • Maintainer engagement 25% × 0.45 = 11no maintainer comment yet; labelled (triaged); project responsiveness 100%
  • Feasibility 20% × 0.55 = 11clear scope; has reproduction steps; has code; project onboarding 50%
Evidence
Suggested first step

Reproduce the bug on the latest main branch of Apache TVM, reduce it to a minimal example, and post your findings on the issue before opening a PR.

Rule-generated · updated 3d ago
LabelleduntouchedstaleMatches your profileTensor Runtimes & ML Frameworks

Shape output cannot feed an ordinary Add

Expected behavior Shape produces an INT64 tensor. Shape(x)+[1,1], for x of shape (2,3), should return [3,4]. Actual behavior Using the equivalent INT64 initializer succeeds. Using Shape instead raises ValueError: Node cannot handle ShapeExpr inputs. The importer rejects the shape representation before Add conversion. Unlike #20065/#20123, this is a whole shape vector consumed as a tensor, not shape-derived symbolic scalars. Environment TVM 0.28.dev0, LLVM 18.1.3, Linux x86_64; Python 3.12.3, NumPy 2.5.4, ONNX 1.22.0. Installed binary build revision is unknown. Current main was inspected…

41score
linux
  • Demand 25% × 0.00 = 00 reactions, 0 comments
  • Technical fit 30% × 0.61 = 18Apache TVM is in AI & Accelerated Computing (a focus area); issue needs linux, which you listed
  • Maintainer engagement 25% × 0.45 = 11no maintainer comment yet; labelled (triaged); project responsiveness 100%
  • Feasibility 20% × 0.55 = 11clear scope; has reproduction steps; has code; project onboarding 50%
Evidence
Suggested first step

Reproduce the bug on the latest main branch of Apache TVM, reduce it to a minimal example, and post your findings on the issue before opening a PR.

Rule-generated · updated 3d ago
LabelleduntouchedstaleMatches your profileTensor Runtimes & ML Frameworks

Max and min reductions replace infinities with finite extrema

Expected behavior The maximum of a nonempty all-negative-infinity tensor is -inf; the minimum of an all-positive-infinity tensor is +inf. ONNX ReferenceEvaluator agrees. Actual behavior On LLVM CPU, ReduceMax([-inf,-inf,-inf]) returns -3.4028234663852886e38 and ReduceMin([inf,inf,inf]) returns +3.4028234663852886e38. Finite-value controls return 7 correctly. This concerns nonempty infinity-only inputs, separately from CUDA NaN propagation in #19518 and ArgMin indices in #20866. Environment TVM 0.28.dev0, LLVM 18.1.3, Linux x86_64; Python 3.12.3, NumPy 2.5.4, ONNX 1.22.0. Installed binary…

41score
cudalinux
  • Demand 25% × 0.00 = 00 reactions, 2 comments (not counted alone)
  • Technical fit 30% × 0.61 = 18Apache TVM is in AI & Accelerated Computing (a focus area); issue needs linux, which you listed
  • Maintainer engagement 25% × 0.45 = 11no maintainer comment yet; labelled (triaged); project responsiveness 100%
  • Feasibility 20% × 0.55 = 11clear scope; has reproduction steps; has code; project onboarding 50%
Evidence
Suggested first step

Reproduce the bug on the latest main branch of Apache TVM, reduce it to a minimal example, and post your findings on the issue before opening a PR.

Rule-generated · updated 4d ago
LabelleduntouchedcandidateMatches your profileTensor Runtimes & ML Frameworks

Onnx frontend can import invalid squeeze axis

In squeeze in python/tvm/relax/frontend/nn/op.py: (1) The axis argument accepts int or list of int. (2) The nominal default value of axis is -1 (this is just nominal since TVMScript is not Python code, so the default value is not really stored in module), which means removing all axis of dimensions 1, instead of removing the last dim. In squeeze in python/tvm/relax/op/manipulate.py: (1) If the axis is int, then it is converted to a list of one element. In InferLayoutSqueeze in src/relax/op/tensor/manipulate.cc: (1) The axis attribute is read as-is, and for each value of axis the corresponding…

41score
compilerscpp20
  • Demand 25% × 0.00 = 00 reactions, 2 comments (not counted alone)
  • Technical fit 30% × 0.61 = 18Apache TVM is in AI & Accelerated Computing (a focus area); issue needs cpp20, which you listed
  • Maintainer engagement 25% × 0.45 = 11no maintainer comment yet; labelled (triaged); project responsiveness 100%
  • Feasibility 20% × 0.55 = 11clear scope; has reproduction steps; has code; project onboarding 50%
Evidence
  • #20422 [Bug] Onnx frontend can import invalid squeeze axisissue
    In squeeze in python/tvm/relax/frontend/nn/op.py: (1) The axis argument accepts int or list of int. (2) The nominal default value of axis is -1 (this is just nominal since TVMScript is not Python code, so the default value is not really stored in module), which means removing…
Suggested first step

Reproduce the bug on the latest main branch of Apache TVM, reduce it to a minimal example, and post your findings on the issue before opening a PR.

Rule-generated · updated 5d ago
LabelleduntouchedstaleMatches your profileTensor Runtimes & ML Frameworks

InferLayoutStack does not work with LayoutConvert

Note this is related to but is a different issue. InferLayoutStack returns a layout with S as one of letters, but TransposeLike function in src/relax/transform/infer_layout_utils.cc does not know how to handle such layout (since src and dst does not contain same set of letters). Steps to reproduce from tvm_tirx.script import ir as I from tvm.relax import script as R @I.ir_module class Module: @R.function def main(inp_0: R.Tensor((2, 3), dtype="float32")) -> R.Tuple(R.Tensor((2, 3, 2), dtype="float32")): with R.dataflow(): lv: R.Tensor((2, 3, 2), dtype="float32") = R.stack((inp_0, inp_0),…

41score
cpp20
  • Demand 25% × 0.00 = 00 reactions, 0 comments
  • Technical fit 30% × 0.61 = 18Apache TVM is in AI & Accelerated Computing (a focus area); issue needs cpp20, which you listed
  • Maintainer engagement 25% × 0.45 = 11no maintainer comment yet; labelled (triaged); project responsiveness 100%
  • Feasibility 20% × 0.55 = 11clear scope; has reproduction steps; has code; project onboarding 50%
Evidence
Suggested first step

Reproduce the bug on the latest main branch of Apache TVM, reduce it to a minimal example, and post your findings on the issue before opening a PR.

Rule-generated · updated 5d ago
LabelleduntouchedstaleMatches your profileTensor Runtimes & ML Frameworks

InferLayoutStack does not handle negative axis

trys to convert axis to size_t and insert a character at such position to layout_str. However as described by the axis can be negative. Program will crash if the axis is negative. C++ does check whether the position is valid, and throws errors like tvm.error.InternalError: basic_string::replace: __pos (which is 18446744073709551615) > this->size() (which is 2) Steps to reproduce from tvm_tirx.script import ir as I from tvm.relax import script as R @I.ir_module class Module: @R.function def main(inp_0: R.Tensor((2, 3), dtype="float32")) -> R.Tuple(R.Tensor((2, 3, 2), dtype="float32")): with…

41score
cpp20
  • Demand 25% × 0.00 = 00 reactions, 0 comments
  • Technical fit 30% × 0.61 = 18Apache TVM is in AI & Accelerated Computing (a focus area); issue needs cpp20, which you listed
  • Maintainer engagement 25% × 0.45 = 11no maintainer comment yet; labelled (triaged); project responsiveness 100%
  • Feasibility 20% × 0.55 = 11clear scope; has reproduction steps; has code; project onboarding 50%
Evidence
  • #20902 [Bug] InferLayoutStack does not handle negative axisissue
    trys to convert axis to size_t and insert a character at such position to layout_str. However as described by the axis can be negative. Program will crash if the axis is negative. C++ does check whether the position is valid, and throws errors like tvm.error.InternalError…
Suggested first step

Reproduce the bug on the latest main branch of Apache TVM, reduce it to a minimal example, and post your findings on the issue before opening a PR.

Rule-generated · updated 5d ago
LabelleduntouchedstaleMatches your profileTensor Runtimes & ML Frameworks

layer_norm` Relax/TIR module crashes the process on Windows

[Bug] layer_norm_only_driver.py layer_norm_only_reproducer.py Expected behavior TVM should either: compile and execute the provided Relax/TIR module successfully, or raise a normal Python / TVM exception if the module is unsupported. It should not terminate the whole process with a native crash. Actual behavior TVM terminates the process with a native exit while compiling or executing the module. Observed failure signature: process_error return code: 3221225477 This issue was first found by donor-based differential fuzzing around FuseOps, but it was later isolated to a standalone reproducer…

41score
cpp20testingwindows
  • Demand 25% × 0.00 = 00 reactions, 0 comments
  • Technical fit 30% × 0.61 = 18Apache TVM is in AI & Accelerated Computing (a focus area); issue needs cpp20, which you listed
  • Maintainer engagement 25% × 0.45 = 11comments not checked; labelled (triaged); project responsiveness 100%
  • Feasibility 20% × 0.55 = 11clear scope; has reproduction steps; has code; project onboarding 50%
Evidence
Suggested first step

Reproduce the bug on the latest main branch of Apache TVM, reduce it to a minimal example, and post your findings on the issue before opening a PR.

Rule-generated · updated 5d ago
LabelleduntouchedstaleMatches your profileTensor Runtimes & ML Frameworks

Boolean mask indexing fails in from_exported_program: "TypeError: Take op requires the input indices to have integer dtype. However, the given indices dtype is T.bool"

Expected behavior Translating a PyTorch module that indexes a tensor with a boolean mask (e.g., x[mask]) via from_exported_program should successfully convert the operation to Relax IR. In PyTorch and NumPy semantics, indexing a tensor with a boolean mask selects elements where the mask evaluates to True. Actual behavior When translating an ExportedProgram containing boolean tensor indexing, from_exported_program crashes with a TypeError: Traceback (most recent call last): File "repro.py", line 12, in mod = from_exported_program(ep) File…

41score
cpp20storage
  • Demand 25% × 0.00 = 00 reactions, 0 comments
  • Technical fit 30% × 0.61 = 18Apache TVM is in AI & Accelerated Computing (a focus area); issue needs cpp20, which you listed
  • Maintainer engagement 25% × 0.45 = 11no maintainer comment yet; labelled (triaged); project responsiveness 100%
  • Feasibility 20% × 0.55 = 11clear scope; has reproduction steps; has code; project onboarding 50%
Evidence
Suggested first step

Reproduce the bug on the latest main branch of Apache TVM, reduce it to a minimal example, and post your findings on the issue before opening a PR.

Rule-generated · updated 5d ago
LabelleduntouchedcandidateMatches your profileTensor Runtimes & ML Frameworks

`DataflowUseInplaceCalls` produces CUDA TIR that fails scheduling

Expected behavior Applying relax.transform.DataflowUseInplaceCalls to the valid Relax function below should preserve a compilable program. The untransformed module compiles for CUDA with the same target and pipeline. Actual behavior The untransformed module compiles. After DataflowUseInplaceCalls, compilation raises ScheduleError: text The queried subtree root tirx.For#0 in SRef tree does not have compact dataflow, because its child block tirx.SBlock#1 on SRef tree is neither a local complete block nor a local reduction block. ... No overlap between the buffers the block reads and writes The…

41score
cpp20cuda
  • Demand 25% × 0.00 = 00 reactions, 0 comments
  • Technical fit 30% × 0.61 = 18Apache TVM is in AI & Accelerated Computing (a focus area); issue needs cpp20, which you listed
  • Maintainer engagement 25% × 0.45 = 11no maintainer comment yet; labelled (triaged); project responsiveness 100%
  • Feasibility 20% × 0.55 = 11clear scope; has reproduction steps; has code; project onboarding 50%
Evidence
Suggested first step

Reproduce the bug on the latest main branch of Apache TVM, reduce it to a minimal example, and post your findings on the issue before opening a PR.

Rule-generated · updated 5d ago
LabelleduntouchedstaleMatches your profileTensor Runtimes & ML Frameworks

MergeSharedMemoryAllocations hoists a dynamic allocation above its size binding

Expected behavior s_tir.transform.MergeSharedMemoryAllocations() should preserve the scope and definition order of variables used in the merged buffer extent. The resulting module should be accepted by tirx.transform.SplitHostDevice(). The example below has two dynamic shared-memory buffers. The second buffer uses a local size binding. The input passes both verify_ssa and verify_well_formed. The intended runtime domain is 1 <= n <= 128. Actual behavior The merge pass moves the combined buffer allocation before the definition of size. The transformed IR contains this ordering: python size =…

41score
cpp20cudadocsmemory
  • Demand 25% × 0.00 = 00 reactions, 0 comments
  • Technical fit 30% × 0.61 = 18Apache TVM is in AI & Accelerated Computing (a focus area); issue needs cpp20, which you listed
  • Maintainer engagement 25% × 0.45 = 11no maintainer comment yet; labelled (triaged); project responsiveness 100%
  • Feasibility 20% × 0.55 = 11clear scope; has reproduction steps; has code; project onboarding 50%
Evidence
Suggested first step

Reproduce the bug on the latest main branch of Apache TVM, reduce it to a minimal example, and post your findings on the issue before opening a PR.

Rule-generated · updated 12d ago
LabelleduntouchedcandidateMatches your profileTensor Runtimes & ML Frameworks

Resize align_corners divides by zero for a unit output extent

Expected behavior Resize-13 maps the coordinate to zero when an align_corners output extent is one. Resizing this input to (1,1,1,3) should return [[[[0,0.5,1]]]]. Actual behavior Output height 3 executes correctly; changing only height to 1 fails while building with Divide by zero. The coordinate calculation divides by output_size-1 without the unit-extent case. This differs from #20877, which concerns the tf_crop_and_resize branch. Environment TVM 0.28.dev0, LLVM 18.1.3, Linux x86_64; Python 3.12.3, NumPy 2.5.4, ONNX 1.22.0. Installed binary build revision is unknown. Current main was…

41score
linux
  • Demand 25% × 0.00 = 00 reactions, 1 comments (not counted alone)
  • Technical fit 30% × 0.61 = 18Apache TVM is in AI & Accelerated Computing (a focus area); issue needs linux, which you listed
  • Maintainer engagement 25% × 0.45 = 11no maintainer comment yet; labelled (triaged); project responsiveness 100%
  • Feasibility 20% × 0.55 = 11clear scope; has reproduction steps; has code; project onboarding 50%
Evidence
Suggested first step

Reproduce the bug on the latest main branch of Apache TVM, reduce it to a minimal example, and post your findings on the issue before opening a PR.

Rule-generated · updated 14d ago
LabelleduntouchedcandidateMatches your profileTensor Runtimes & ML Frameworks

Dropout ignores training_mode and returns unscaled input

Expected behavior For Dropout-13, training_mode=true and ratio=0.5, every output for an input of ones must be either 0 or 2. This contract does not require matching random draws. Actual behavior Inference mode passes. Training mode also returns all ones: 64/64 elements violate the contract. The converter reads ratio but never uses the third input, training_mode. Environment TVM 0.28.dev0, LLVM 18.1.3, Linux x86_64; Python 3.12.3, NumPy 2.5.4, ONNX 1.22.0. Installed binary build revision is unknown. Current main was inspected statically, not rebuilt. Steps to reproduce python import numpy as…

41score
linux
  • Demand 25% × 0.00 = 00 reactions, 0 comments
  • Technical fit 30% × 0.61 = 18Apache TVM is in AI & Accelerated Computing (a focus area); issue needs linux, which you listed
  • Maintainer engagement 25% × 0.45 = 11no maintainer comment yet; labelled (triaged); project responsiveness 100%
  • Feasibility 20% × 0.55 = 11clear scope; has reproduction steps; has code; project onboarding 50%
Evidence
Suggested first step

Reproduce the bug on the latest main branch of Apache TVM, reduce it to a minimal example, and post your findings on the issue before opening a PR.

Rule-generated · updated 14d ago
LabelleduntouchedstaleMatches your profileTensor Runtimes & ML Frameworks

`R.median` legalizes to the CPU `tvm.contrib.sort.argsort` extern, which ends up inside a device kernel: `Unresolved call tirx.call_packed` (cuda) / `unknown intrinsic tirx.call_packed` (nvptx)

The following code: python import tvm from tvm.script import ir as I from tvm.script import relax as R @I.ir_module class Module: @R.function def main(x: R.Tensor((8,), "float32")) -> R.Tensor((), "float32"): with R.dataflow(): gv = R.median(x, axis=None, keepdims=False) R.output(gv) return gv tvm.compile(Module, target="llvm") print("llvm: OK") for target in ({"kind": "cuda", "arch": "sm_80"}, {"kind": "nvptx", "mcpu": "sm_80"}): try: tvm.compile(Module, target=tvm.target.Target(target)) print(target["kind"], ": OK") except tvm.error.InternalError as e: print(target["kind"], ":",…

41score
cpp20cuda
  • Demand 25% × 0.00 = 00 reactions, 0 comments
  • Technical fit 30% × 0.61 = 18Apache TVM is in AI & Accelerated Computing (a focus area); issue needs cpp20, which you listed
  • Maintainer engagement 25% × 0.45 = 11no maintainer comment yet; labelled (triaged); project responsiveness 100%
  • Feasibility 20% × 0.55 = 11clear scope; has reproduction steps; has code; project onboarding 50%
Evidence
Suggested first step

Reproduce the bug on the latest main branch of Apache TVM, reduce it to a minimal example, and post your findings on the issue before opening a PR.

Rule-generated · updated 17d ago
LabelleduntouchedstaleMatches your profileTensor Runtimes & ML Frameworks

OneHot does not convert floating-point depth to int64

Expected behavior OneHot-11 permits floating-point depth and requires converting it to int64 before use. Depth 3.0 should behave like int64 3. Actual behavior The int64-depth control executes correctly. Changing only depth to float32 fails during conversion: text TypeError: Cannot convert from type float to int The converter passes the result of depth.value.numpy().tolist() directly as num_classes. The final Cast keeps the output dtype explicit. Environment TVM 0.28.dev0, LLVM 18.1.3, Linux x86_64; Python 3.12.3, NumPy 2.5.4, ONNX 1.22.0, ORT 1.29.0. The installed binary build revision is…

41score
linuxnumerics
  • Demand 25% × 0.00 = 00 reactions, 0 comments
  • Technical fit 30% × 0.61 = 18Apache TVM is in AI & Accelerated Computing (a focus area); issue needs linux, which you listed
  • Maintainer engagement 25% × 0.45 = 11no maintainer comment yet; labelled (triaged); project responsiveness 100%
  • Feasibility 20% × 0.55 = 11clear scope; has reproduction steps; has code; project onboarding 50%
Evidence
Suggested first step

Reproduce the bug on the latest main branch of Apache TVM, reduce it to a minimal example, and post your findings on the issue before opening a PR.

Rule-generated · updated 18d ago
LabelleduntouchedcandidateMatches your profileTensor Runtimes & ML Frameworks

SkipLayerNormalization fails when its fourth output is requested

Expected behavior The optional fourth output of com.microsoft.SkipLayerNormalization should contain input + skip + bias; requesting it should preserve the normal output. Actual behavior The one-output control compiles and matches ORT. Requesting only the additional fourth output fails conversion: text AssertionError: Missing outputs during conversion. Expected 4 but Got 3 in SkipLayerNormalization. The converter unconditionally returns three fields. ORT executes both models and the script checks the fourth output against the sum explicitly. Environment TVM 0.28.dev0, LLVM 18.1.3, Linux…

41score
linux
  • Demand 25% × 0.00 = 00 reactions, 0 comments
  • Technical fit 30% × 0.61 = 18Apache TVM is in AI & Accelerated Computing (a focus area); issue needs linux, which you listed
  • Maintainer engagement 25% × 0.45 = 11no maintainer comment yet; labelled (triaged); project responsiveness 100%
  • Feasibility 20% × 0.55 = 11clear scope; has reproduction steps; has code; project onboarding 50%
Evidence
Suggested first step

Reproduce the bug on the latest main branch of Apache TVM, reduce it to a minimal example, and post your findings on the issue before opening a PR.

Rule-generated · updated 19d ago
LabelleduntouchedcandidateMatches your profileTensor Runtimes & ML Frameworks

CPU TopK builds for uint64 but fails in the runtime sort

Expected behavior A legal UINT64 ONNX TopK should return the selected values and indices on CPU, as the equivalent INT64 control does. Actual behavior Both models import and build. INT64 runs correctly, but UINT64 fails only when the VM executes: text InternalError: Unsupported input dtype: uint64 The CPU sort dispatch has an int64 branch but no uint64 branch. The script checks ONNX reference results and uses nonnegative values representable in both types. Environment TVM 0.28.dev0, LLVM 18.1.3, Linux x86_64; Python 3.12.3, NumPy 2.5.4, ONNX 1.22.0, ORT 1.29.0. The installed binary build…

41score
linux
  • Demand 25% × 0.00 = 00 reactions, 0 comments
  • Technical fit 30% × 0.61 = 18Apache TVM is in AI & Accelerated Computing (a focus area); issue needs linux, which you listed
  • Maintainer engagement 25% × 0.45 = 11no maintainer comment yet; labelled (triaged); project responsiveness 100%
  • Feasibility 20% × 0.55 = 11clear scope; has reproduction steps; has code; project onboarding 50%
Evidence
Suggested first step

Reproduce the bug on the latest main branch of Apache TVM, reduce it to a minimal example, and post your findings on the issue before opening a PR.

Rule-generated · updated 19d ago
LabelleduntouchedcandidateMatches your profileTensor Runtimes & ML Frameworks

VectorizeLoop loses a let binding when scalarizing a conditional

Expected behavior The vectorized loop below should compile and produce the same result as its serial equivalent. The first two elements should become A[i] + 3, and the last two should become A[i] + 4. The input passes both tvm.tirx.analysis.verify_ssa and verify_well_formed. Actual behavior Compiling the vectorized version with the default LLVM pipeline fails in MakePackedAPI: text src/tirx/transform/make_packed_api.cc:279 TVM_FFI_ICHECK_EQ(undefined.size(), 0) tvm.error.InternalError: Check failed: undefined.size() == 0 (1 vs. 0) : In PrimFunc main variables (v,) are used, but are not passed…

41score
simd
  • Demand 25% × 0.00 = 00 reactions, 0 comments
  • Technical fit 30% × 0.61 = 18Apache TVM is in AI & Accelerated Computing (a focus area); issue needs simd, which you listed
  • Maintainer engagement 25% × 0.45 = 11no maintainer comment yet; labelled (triaged); project responsiveness 100%
  • Feasibility 20% × 0.55 = 11clear scope; has reproduction steps; has code; project onboarding 50%
Evidence
Suggested first step

Reproduce the bug on the latest main branch of Apache TVM, reduce it to a minimal example, and post your findings on the issue before opening a PR.

Rule-generated · updated 20d ago
LabelleduntouchedstaleMatches your profileTensor Runtimes & ML Frameworks

ConvertLayout changes the flattened order of `conv2d + repeat(axis=None)`

Expected behavior ConvertLayout should preserve the result of the Relax function. In the reproducer below, the module before and after layout conversion should return the same flattened tensor. Actual behavior When a NCHW conv2d is converted to NHWC and its result is passed to repeat(repeats=1, axis=None), the converted module flattens the NHWC representation directly. The original module flattens the logical NCHW result, so the output values appear in a different order. I reduced this from tests/python/relax/test_transform_convert_layout.py::test_conv2d_repeat_flatten. The structural test…

41score
cpp20testing
  • Demand 25% × 0.00 = 00 reactions, 0 comments
  • Technical fit 30% × 0.61 = 18Apache TVM is in AI & Accelerated Computing (a focus area); issue needs cpp20, which you listed
  • Maintainer engagement 25% × 0.45 = 11no maintainer comment yet; labelled (triaged); project responsiveness 100%
  • Feasibility 20% × 0.55 = 11clear scope; has reproduction steps; has code; project onboarding 50%
Evidence
Suggested first step

Reproduce the bug on the latest main branch of Apache TVM, reduce it to a minimal example, and post your findings on the issue before opening a PR.

Rule-generated · updated 21d ago
LabelleduntouchedcandidateMatches your profileTensor Runtimes & ML Frameworks

Generated SPIR-V is rejected by TVM's own validator: Invalid SPIR-V header

Repo: apache/tvm · Commit: 5b4b753 · USE_VULKAN=ON, USE_KHRONOS_SPIRV=/usr (SPIRV-Tools 2022.1), LLVM 18 What happens tvm.error.InternalError: Check failed: res == SPV_SUCCESS (-4 vs. 0) : index=0 error:Invalid SPIR-V header. (src/backend/vulkan/codegen/spirv_utils.cc:100, SPIRVTools::ValidateShader) TVM generates the SPIR-V and hands it to spvValidate, which rejects the header, so the module never reaches a device. No GPU is needed to reproduce. Reproducer spirv_header.py: python import tvm from tvm.script import ir as I from tvm.script import tirx as T from tvm.script import relax as R…

41score
compilerscpp20cudastorage
  • Demand 25% × 0.00 = 00 reactions, 1 comments (not counted alone)
  • Technical fit 30% × 0.61 = 18Apache TVM is in AI & Accelerated Computing (a focus area); issue needs cpp20, which you listed
  • Maintainer engagement 25% × 0.45 = 11no maintainer comment yet; labelled (triaged); project responsiveness 100%
  • Feasibility 20% × 0.55 = 11clear scope; has reproduction steps; has code; project onboarding 50%
Evidence
Suggested first step

Reproduce the bug on the latest main branch of Apache TVM, reduce it to a minimal example, and post your findings on the issue before opening a PR.

Rule-generated · updated 22d ago
LabelleduntouchedcandidateMatches your profileTensor Runtimes & ML Frameworks

CUDA workspace cleanup aborts on Windows at thread/process exit

Returning a CUDA workspace to TVM's pool succeeds on Windows, but the process then aborts in WorkspacePool::~WorkspacePool(). I hit this after successful inference and reduced it to the script below. The pool's thread-local destructor calls CUDA too late. A diagnostic build reports cudaErrorCudartUnloading at process exit and cudaErrorInitializationError at worker-thread exit. The exception escapes the destructor. Catching it stops the crash but leaves GPU memory allocated after each worker exits. I have a local patch that keeps the workspace cache and releases it through a Windows FLS…

41score
concurrencycudamemorywindows
  • Demand 25% × 0.00 = 00 reactions, 0 comments
  • Technical fit 30% × 0.61 = 18Apache TVM is in AI & Accelerated Computing (a focus area); issue needs concurrency, which you listed
  • Maintainer engagement 25% × 0.45 = 11no maintainer comment yet; labelled (triaged); project responsiveness 100%
  • Feasibility 20% × 0.55 = 11clear scope; has reproduction steps; has code; project onboarding 50%
Evidence
Suggested first step

Reproduce the bug on the latest main branch of Apache TVM, reduce it to a minimal example, and post your findings on the issue before opening a PR.

Rule-generated · updated 22d ago
LabelleduntouchedcandidateMatches your profileTensor Runtimes & ML Frameworks

Non-unit-stride masked load emits an invalid LLVM intrinsic

[Bug][TIRx][LLVM] Non-unit-stride masked load emits an invalid LLVM intrinsic Expected behavior A two-lane masked load from indices 0 and 2 of a three-element float32 buffer should compile to verifier-valid LLVM IR. Actual behavior Compilation fails during LLVM module verification. text Call parameter type does not match function signature! splat (i1 true) i1 %3 = call float @llvm.masked.load.f32.p0(ptr align 4 %2, splat (i1 true), float poison) Environment OS/architecture: macOS, arm64 TVM: 0.28.dev0, commit 2d992bb97c076f44f71e6a3042bdd1b330991dfc Python: CPython 3.14.5 Target: LLVM; TIRx…

41score
armcompilerscpp20macos
  • Demand 25% × 0.00 = 00 reactions, 1 comments (not counted alone)
  • Technical fit 30% × 0.61 = 18Apache TVM is in AI & Accelerated Computing (a focus area); issue needs cpp20, which you listed
  • Maintainer engagement 25% × 0.45 = 11no maintainer comment yet; labelled (triaged); project responsiveness 100%
  • Feasibility 20% × 0.55 = 11clear scope; has reproduction steps; has code; project onboarding 50%
Evidence
Suggested first step

Reproduce the bug on the latest main branch of Apache TVM, reduce it to a minimal example, and post your findings on the issue before opening a PR.

Rule-generated · updated 22d ago

Why this score

Health 96Contribution friendliness 50computed 19h ago
  • Activity0.91
    27 merged PRs in 30 days (full marks at 20); 27 commits in 30 days (full marks at 60)health
  • Onboarding0.50
    has mainstream build (CMake/Bazel/Meson), CI; missing contributing guide, docs sitecontrib
  • Entry points0.00
    0 open, unassigned good-first-issue/help-wanted issues without a PR (full marks at 10)contrib
  • Maintainer responsiveness1.00
    median PR merge time 6 h (full marks within 72 h, zero after 60 days)healthcontrib
  • Release cadence1.00
    last release 54 days ago (full marks within 90, zero after 730); 10 releases in 365 days (full marks at 4)health
  • Backlog pressure0.91
    26% of 249 scanned open issues are older than a year (full marks at <= 20%, zero at >= 80%)health
  • Contributor breadth0.96
    25 unique contributors in 90 days (full marks at 25); top contributor has 36% of commits; stars count for at most 5% of this signalhealth

Each signal is normalized to 0–1 with fixed thresholds; scores are weighted sums × 100. Stars are not an input.

Maintain, review, build and signals

other opportunities that concern this project