因为PyTorch是有缓存区的设置的,意思就是一个Tensor就算被释放了,进程也 ... + 4194304 print(torch.cuda.memory_allocated()) linear2 = torch.nn.
確定! 回上一頁