When oneflow.permute is used for the same dimension operation, there is no crash, but the wrong result is returned. Checks of the same dimension should be added.
Code to reproduce bug
import oneflow as flow
x = flow.tensor([[1, 2, 3],[4, 5, 6]],dtype=flow.float32)
output = flow.permute(x, (0, 0))
print(output)
Summary
When oneflow.permute is used for the same dimension operation, there is no crash, but the wrong result is returned. Checks of the same dimension should be added.
Code to reproduce bug
System Information