torch.nn.functional.upsample_nearest(input, size=None, scale_factor=None)
This function is deprecated in favor of torch.nn.functional.interpolate(). This is equivalent with nn.functional.interpolate(…, mode=‘nearest’).
最近邻法上采样到特定尺寸
torch.nn.functional.upsample_nearest(input, size=None, scale_factor=None)
This function is deprecated in favor of torch.nn.functional.interpolate(). This is equivalent with nn.functional.interpolate(…, mode=‘nearest’).
最近邻法上采样到特定尺寸