torch.nn 与 torch.nn.functional 的区别 torch.nn可以理解为类,torch.nn.functional可以理解为函数,它们在使用上有一些区别 2020-12-02 PyTorch 转载 PyTorch