
pytorch
巴啦啦魔仙变!!
这个作者很懒,什么都没留下…
展开
-
当模型多输入时,torchsummary估计参数量
当模型多输入时,torchsummary估计参数量方法方法直接将参数传入即可。如下代码,有三个以上的输入也是以此类推summary(model,first_input,second_input,device='cpu')还有问题可以去这里查看torch-summary原创 2022-03-27 19:35:43 · 8067 阅读 · 9 评论 -
torch 加载他人的ckpt报错
torch 加载他人的ckpt报错第一个错原因第二个错原因第一个错Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.device('cpu') to map your storages to the C原创 2022-03-27 19:25:42 · 1262 阅读 · 0 评论