Location of aten files in conda installed pytorch

I would like to modify the Normalization.cpp file in the aten submodule of pytorch (which I had installed via conda). However, I can’t seem to find it. So how do I modify it and rebuild the dependencies.

If you’ve installed the PyTorch binaries via conda, you should fine some files in your conda directory, e.g.:


However, modifying them won’t have any effect.
Instead, you should build PyTorch from source as described here.
Also, the Contributing guidelines might be helpful.
If you change some files in the source folder and rebuild, you will be able to see the changes.

1 Like