Hi,
This kind of error AttributeError: module 'torch' has no attribute '_foreach_add' where you’re missing a cpp API usually means that your python code for your install is not the same version as the bianry install.
That happens if you do setup.py develop and then update your local repo.
You might want to clean up your install here.