[MM] Keep device input normalization fused when encoder compilation is enabled (#59195)

Signed-off-by: Jakub Zakrzewski <jzakrzewski@nvidia.com>
Co-authored-by: Codex <codex@openai.com>
This commit is contained in:
Jakub Zakrzewski
2026-09-30 11:08:24 +00:00
committed by GitHub
co-authored by Codex
parent 5225f1bacb
commit 5a4351ab09
2 changed files with 23 additions and 0 deletions
@@ -246,6 +246,10 @@ class FusedMMInputNorm(CustomOp):
self.register_buffer("weight", (rescale_factor / std).to(device))
self.register_buffer("bias", (-mean / std).to(device))
@classmethod
def enabled(cls) -> bool:
return True
@property
def input_dtype(self) -> torch.dtype | None:
return torch.uint8