报错:UserWarning: nn.functional.tanh is deprecated. Use torch.tanh instead


将报错的 sigmoid 、tanh ··· 改为 torch.tanh or torch.sigmoid

参考了:https://blog.csdn.net/dagewoshiwusong/article/details/108306325

相关