---
id: pr-flashinfer-1581
repo: flashinfer-ai/flashinfer
pr: 1581
title: 'refactor: Expose calculate_tile_tokens_dim function'
author: amitz-nv
date: '2025-08-27'
url: https://github.com/flashinfer-ai/flashinfer/pull/1581
source_category: upstream-code
architectures:
- sm100
tags:
- kernel-fusion
- moe
techniques:
- kernel-fusion
hardware_features: []
kernel_types:
- moe
languages:
- python
captured_at: '2026-04-27'
status: merged
merge_sha: 9244fb44c17b0b818f5fa7a1538172f0a8a3db7a
inclusion_reason: kernel file changes
changed_paths:
- flashinfer/utils.py
- tests/test_trtllm_gen_fused_moe.py
head_ref_oid: 75310eb0b94e4ada747a45821eb87830ea3483cf
artifact_dir: evidence/pull-bundles/flashinfer/gh-1581
---
# refactor: Expose calculate_tile_tokens_dim function

- Repository: `flashinfer-ai/flashinfer`
- PR: [1581](https://github.com/flashinfer-ai/flashinfer/pull/1581)
- Decision: `kernel file changes`
- Reason: kernel file changes

## Changed Paths

- `flashinfer/utils.py`
- `tests/test_trtllm_gen_fused_moe.py`

## Evidence Bundle

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