import torch from torch import nn class Linear(nn.Module): #繼承nn. ... __init__(self) ,推薦使用第一種用法,儘管第二種寫法更直觀。
確定! 回上一頁