这是一个笔记,写给自己看的。 基本框架 1234567891011 import torchimport torch.nn as nnimport torch.nn.functional as Fclass (nn.module): def __init__(self, args): self.arg = args; def forward(self, input_): '''define the model''' def initNNcell(self): '''if necessary''' 赞微海报分享
近期评论