pytorch中的Linear Layer(线性层)

LINEAR LAYERS Linear Examples:html >>> m = nn.Linear(20, 30) >>> input = torch.randn(128, 20) >>> output = m(input) >>> print(output.size()) torch.Size([128, 30]) 查看源码后发现U指的是均匀分布,即weight权重(A的转置)是取自输入尺
相关文章
相关标签/搜索