Permute function has the different values in CPP and python3

Hi there,
I am using tensor.permute({0,2,1,3}); in C++ however, the output value is different from tensor.permute(0,2,1,3) in python3. Are there any ideas on what happends

Double post from here.