---
id: pr-flashinfer-2160
repo: flashinfer-ai/flashinfer
pr: 2160
title: 'feat: C++ side tensor validation'
author: raayandhar
date: '2025-12-03'
url: https://github.com/flashinfer-ai/flashinfer/pull/2160
source_category: upstream-code
architectures:
- sm100
tags: []
techniques: []
hardware_features: []
kernel_types: []
languages: []
captured_at: '2026-05-16'
status: merged
merge_sha: 9ac59e5c5438b01e0059c5f3a51819799170f698
inclusion_reason: defer
changed_paths:
- csrc/batch_decode.cu
- csrc/batch_decode_mla_plan.cu
- csrc/batch_decode_mla_run.cu
- csrc/batch_mla_plan.cu
- csrc/batch_mla_run.cu
- csrc/renorm.cu
- csrc/sampling.cu
- csrc/sampling_utils.h
- csrc/tvm_ffi_utils.h
- flashinfer/decode.py
- flashinfer/mla.py
- flashinfer/sampling.py
- tests/utils/test_sampling.py
artifact_dir: evidence/pull-bundles/flashinfer/gh-2160
head_ref_oid: a36238460097fd1f7a86f1088bb20e9ab60ad657
---
# feat: C++ side tensor validation

- Repository: `flashinfer-ai/flashinfer`
- PR: [2160](https://github.com/flashinfer-ai/flashinfer/pull/2160)
- Decision: `defer`
- Reason: defer

## Changed Paths

- `csrc/batch_decode.cu`
- `csrc/batch_decode_mla_plan.cu`
- `csrc/batch_decode_mla_run.cu`
- `csrc/batch_mla_plan.cu`
- `csrc/batch_mla_run.cu`
- `csrc/renorm.cu`
- `csrc/sampling.cu`
- `csrc/sampling_utils.h`
- `csrc/tvm_ffi_utils.h`
- `flashinfer/decode.py`
- `flashinfer/mla.py`
- `flashinfer/sampling.py`
- `tests/utils/test_sampling.py`

## Evidence Bundle

`evidence/pull-bundles/flashinfer/gh-2160`
