RuntimeError: [enforce fail at …\c10\core\CPUAllocator.cpp:72] data.DefaultCPUAllocator: not enough memory: you tried to allocate 45924761600 bytes. Buy new RAM!
分析
x = torch.ones((112121,1,40,40))# 第二个是in_channelprint(x)print(x.size())print(x.shape)