- 就是遍历每一个参数,把大小加起来
import torch
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
paras=torch.load('weights.pth', map_location=device)
count =
import torch
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
paras=torch.load('weights.pth', map_location=device)
count =
975
3万+
1978

被折叠的 条评论
为什么被折叠?