pytorch 中torch.nn.dropout和torch.nn.F.dropout区别. ... 所以nn.dropout在模型类的__init__()函数中被定义为一层,而F.dropout在forward()函数中直接使用。
確定! 回上一頁