摘要:
批量归一化层BatchNorm 一.手写BatchNorm(用于理解) import torch from d2l import torch as d2l from torch import nn def batch_norm(X,gamma,beta,moving_mean,moving_val, 阅读全文
摘要:
GoogleNet 一.手写GoogleNet架构 import torch from d2l import torch as d2l from torch import nn from torch.nn import functional as F #1.Inception块 class Ince 阅读全文
摘要:
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. 阅读全文