报错: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

posted @ 2022-04-13 17:21  TheBigSeven  阅读(1652)  评论(0)    收藏  举报