---
id: pr-pytorch-144248
repo: pytorch/pytorch
pr: 144248
title: '[inductor][cpu] Fix bmm b_index for dynamic expressions in inductor autotuner'
author: pytorchbot
date: '2025-01-10'
url: https://github.com/pytorch/pytorch/pull/144248
source_category: upstream-code
architectures:
- sm100
tags:
- gemm
techniques: []
hardware_features: []
kernel_types:
- gemm
languages:
- python
captured_at: '2026-04-17'
status: merged
merge_sha: be126bccee0b8570ce8b079436e41faf38a8e1eb
inclusion_reason: kernel file changes
changed_paths:
- test/inductor/test_cpu_select_algorithm.py
- torch/_inductor/codegen/cpp_bmm_template.py
- torch/_inductor/codegen/cpp_gemm_template.py
head_ref_oid: fbad17d50295f7070b0b6e10089262d7ba739ae3
artifact_dir: evidence/pull-bundles/pytorch/gh-144248
---
# [inductor][cpu] Fix bmm b_index for dynamic expressions in inductor autotuner

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

## Changed Paths

- `test/inductor/test_cpu_select_algorithm.py`
- `torch/_inductor/codegen/cpp_bmm_template.py`
- `torch/_inductor/codegen/cpp_gemm_template.py`

## Evidence Bundle

`evidence/pull-bundles/pytorch/gh-144248`
