Sorry for the late reply! I am in the middle of moving to another country, and I put this project aside for the moment. Thank you for the answer!
loss_train[epoch] += loss

How can I check that this also saves the computational graph? If I simply print out my loss_train I simply see an np.array with numbers.
Best,
PIF