You won’t be able to locally change a C++ source file and see the changes without rebuilding it.
To apply changes to the PixelShuffle implementation, use this guide to build PyTorch from source, manipulate the file, and rebuild it.
This Contributing README might also be useful for incremental builds.