使用Pytorch手动搭建Alexnet网络
首先贴一个Alexnet网络结构的示意图然后按照上图编写Alexnet网络,一一对应即可:import torchimport torch.nn as nn#import torchvisionclass Alexnet(nn.Module): def __init__(self, class_num = 1000): super(Alexnet, self).__init__() self.featureExtraction = nn.Sequenti