make assume_32_bit_indexing configurable (#32044)

Signed-off-by: Laith Sakka <lsakka@meta.com>
This commit is contained in:
Laith Sakka
2026-01-10 23:15:46 -08:00
committed by GitHub
parent 0dd63639be
commit 46eb30f519
2 changed files with 9 additions and 1 deletions

View File

@@ -522,7 +522,9 @@ def _support_torch_compile(
# assume_32bit_indexing is only available in torch 2.10.0.dev+
inductor_config_patches = {}
if is_torch_equal_or_newer("2.10.0.dev"):
inductor_config_patches["assume_32bit_indexing"] = True
inductor_config_patches["assume_32bit_indexing"] = (
self.compilation_config.dynamic_shapes_config.assume_32_bit_indexing
)
with (
patch.object(