AttributeError: 'Upsample' object has no attribute 'recompute_scale_factor'
解决方法
点击报错路径,在upsampling.py中修改将原代码(156-157行),修改为:
return F.interpolate(input, self.size, self.scale_factor, self.mode, self.align_corners)
最后:
如果你想要进一步了解更多的相关知识,可以关注下面公众号联系~会不定期发布相关设计内容包括但不限于如下内容:信号处理、通信仿真、算法设计、matlab appdesigner,gui设计、simulink仿真......希望能帮到你!