Only register rocm_aiter_ops if aiter is found (#28428)
Signed-off-by: mgoin <mgoin64@gmail.com>
This commit is contained in:
@@ -938,4 +938,5 @@ class rocm_aiter_ops:
|
||||
return tuple(shuffle_weight(tensor, layout=layout) for tensor in tensors)
|
||||
|
||||
|
||||
rocm_aiter_ops.register_ops_once()
|
||||
if IS_AITER_FOUND:
|
||||
rocm_aiter_ops.register_ops_once()
|
||||
|
||||
Reference in New Issue
Block a user