---
id: pr-flashinfer-1652
repo: flashinfer-ai/flashinfer
pr: 1652
title: 'fix: add _check_tensor_params to check correct sampling parameters and dtype validation in decode.py'
author: raayandhar
date: '2025-09-26'
url: https://github.com/flashinfer-ai/flashinfer/pull/1652
source_category: upstream-code
architectures:
- sm100
tags: []
techniques: []
hardware_features: []
kernel_types: []
languages: []
captured_at: '2026-05-16'
status: merged
merge_sha: aca1e4178b5525e6e64ffbfa1298e8dc4407fe09
inclusion_reason: include
changed_paths:
- flashinfer/decode.py
- flashinfer/sampling.py
- tests/test_sampling.py
artifact_dir: evidence/pull-bundles/flashinfer/gh-1652
head_ref_oid: a8b6e2dec9f26ab27e2118ccf2e3eef31e9c3644
---
# fix: add _check_tensor_params to check correct sampling parameters and dtype validation in decode.py

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

## Changed Paths

- `flashinfer/decode.py`
- `flashinfer/sampling.py`
- `tests/test_sampling.py`

## Evidence Bundle

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