深度学习与Pytorch入门实战(十二)实现ResNet-18并在Cifar-10数据集上进行验证
ResNet图解nn.Module详解1.Pytorch上搭建ResNet-181.1ResNetblock子模块importtorchfromtorchimportnnfromtorch.nnimportfunctionalasFclassResBlk(nn.Module):"""ResNetblock子模块"""def__init__(self,ch_in,ch_out,stride=1):#