I think Jupyter caches outputs in a way that adds references to the results.
That said, I have been using Jupyter with pytorch for half a year now and have not run into the things you describe…
Best regards
Thomas