由於我的pytorch一致安裝不了1.0.0以上的版本,所以一直用的是0.4.0,很多更新的函數.
AttributeError: 'module' object has no attribute 'interpolate'
這個問題上只要把interpolate替換成upsample就可以了.
由於我的pytorch一致安裝不了1.0.0以上的版本,所以一直用的是0.4.0,很多更新的函數.
AttributeError: 'module' object has no attribute 'interpolate'
這個問題上只要把interpolate替換成upsample就可以了.
模塊初始化 class IDE(nn.Module): def __init__(self, num_classes): super(IDE, self).__init__() resn