[Platform] Fill in the missing backend parameter for torch.compile (#51781)

Signed-off-by: wangxiyuan <wangxiyuan1007@gmail.com>
This commit is contained in:
wangxiyuan
2026-08-19 10:31:19 +00:00
committed by GitHub
parent eac636a7fa
commit cba06764d7
5 changed files with 15 additions and 9 deletions
+5 -1
View File
@@ -61,7 +61,11 @@ def get_rope_shape_decorate(func):
@get_rope_shape_decorate
@torch.compile(dynamic=True, disable=current_platform.simple_compile_backend == "tpu")
@torch.compile(
dynamic=True,
backend=current_platform.simple_compile_backend,
disable=current_platform.simple_compile_backend == "tpu",
)
def get_rope_shape(org, interpolation_mode, shape):
return (
F.interpolate(