[Bugfix][XPU] Add MoTRMSNorm.forward_xpu delegating to forward_native (#5568)

Signed-off-by: Joshna Medisetty <joshna.medisetty@intel.com>
Signed-off-by: Joshna-Medisetty <joshna.medisetty@intel.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Joshna-MedisettyandCursor authored and GitHub committed 2026-09-02 23:06:17 -05:00
1 parent 48ae412a2f
commit 24c49cf392
7 files changed
+58 -41

No files matched your search

+3 -1
View File
@@ -48,7 +48,9 @@ class CustomOp(nn.Module):
raise NotImplementedError
def forward_xpu(self, *args, **kwargs):
raise NotImplementedError
# By default, we assume that XPU ops are compatible with the
# PyTorch-native implementation.
return self.forward_native(*args, **kwargs)
def forward_hip(self, *args, **kwargs):
# By default, we assume that HIP ops are compatible with CUDA ops.