f"Testing Rotary Positional Embedding on {torch_device} with shape:{shape} x_strides:{x_strides} y_strides:{y_strides} and dtype:{dtype} inplace:{inplace}"
)
x=torch.rand(shape,dtype=dtype).to(torch_device)
x=rearrange_if_needed(x,x_strides)
ifinplace==Inplace.INPLACE_X:
y=x
y=x
else:
else:
y=torch.rand(shape,dtype=dtype).to(torch_device)
y=TestTensor(shape,y_strides,dtype,device)
y=rearrange_if_needed(y,y_strides)
print(
f"Testing Rotary Positional Embedding on {InfiniDeviceNames[device]} with shape:{shape} x_strides:{x_strides} y_strides:{y_strides} and dtype:{InfiniDtypeNames[dtype]} inplace:{inplace}"