softmax2 = nn.Softmax(dim=2) #三维数据的最后一维y=torch.rand(3,2,4)yOut[190]: tensor([[[0.4634, 0.1223, 0.8533, 0.5247], & ... ,科学网.
確定! 回上一頁