摘要:
NiN模型 import torch from torch import nn from d2l import torch as d2l def NiN_block(in_chanels,out_chanels,kernel_size,padding,stride):#NiN块 return nn. 阅读全文
posted @ 2025-10-16 23:16
Annaprincess
阅读(6)
评论(0)
推荐(0)
摘要:
VGG使用块的网络 一.手写VGG架构 import torch from torch import nn import d2l #1.VGG块 def VGG_block(nums_conv,in_chanels,out_chanels):#卷积层数,输入通道数,输出通道数 layers=[]#一 阅读全文
posted @ 2025-10-16 20:41
Annaprincess
阅读(7)
评论(0)
推荐(0)
摘要:
AlexNet 一.手写AlexNet架构 import torch from torch import nn import d2l net=nn.Sequential( nn.Conv2d(1,96,11,padding=1,stride=4), nn.ReLU(), nn.MaxPool2d(k 阅读全文
posted @ 2025-10-16 20:08
Annaprincess
阅读(8)
评论(0)
推荐(0)

浙公网安备 33010602011771号