class ResNet18(nn. ... x = torch.randn(2, 3, 32, 32) model = ResNet18() out = model(x) print("ResNet:", out.shape). 结果报错了,错误信息如下.
確定! 回上一頁