UserWarning: nn.functional.upsample is deprecated. Use nn.functional.interpolate instead

UserWarning: nn.functional.upsample is deprecated. Use nn.functional.interpolate instead

在这里插入图片描述
版本问题导致的
import torch.nn.functional as F
把F.upsample换成F.interpolate就行

猜你喜欢

转载自blog.csdn.net/weixin_39536859/article/details/104776878