Open wujijians opened 1 year ago
File path: \Python39\site-packages\torch\nn\modules\upsampling.py
Find the file in the path written above and modify the code as below.
def forward(self, input: Tensor) -> Tensor:
# recompute_scale_factor=self.recompute_scale_factor) return F.interpolate(input, self.size, self.scale_factor, self.mode, self.align_corners)
为 return F.interpolate(input, self.size, self.scale_factor, self.mode, self.align_corners)
File path: \Python39\site-packages\torch\nn\modules\upsampling.py
Find the file in the path written above and modify the code as below.
def forward(self, input: Tensor) -> Tensor:
return F.interpolate(input, self.size, self.scale_factor, self.mode, self.align_corners,