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