Pytorch :Trying to backward through the graph a second time, but the buffers have already been freed
运行原理
stackoverflow.com/questions/47120126/how-to-calculate-loss-over-a-number-of-images-and-then-back-propagate-the-averag
blog.csdn.net/qq_42907161/article/details/109549812
解决方案
blog.csdn.net/Mundane_World/article/details/81038274?depth_1-
blog.prince2015.club/2018/09/02/pytorch-twice-backward/