Use forward_cuda to execute custom op for hip platform (#3305)
Co-authored-by: wunhuang <wunhuang@amd.com>
This commit is contained in:
1 parent
c2723a42a5
commit
4885b90802
1 file changed
+1
-1
@@ -20,7 +20,7 @@ class CustomOp(nn.Module):
|
||||
raise NotImplementedError
|
||||
|
||||
def forward_hip(self, *args, **kwargs):
|
||||
return self.forward_native(*args, **kwargs)
|
||||
return self.forward_cuda(*args, **kwargs)
|
||||
|
||||
def forward_xpu(self, *args, **kwargs):
|
||||
return self.forward_native(*args, **kwargs)
|
||||
|
||||
Reference in new issue
Block a user