userwarning: default upsampling behavior when mode=bilinear is changed to align_corners=false since 0.4.0. please specify align_corners=true if the old behavior is desired. see the documentation of nn.upsample for details. warnings.warn(
时间: 2023-04-30 13:07:07 浏览: 374
从0.4.0版本开始,当mode=bilinear时,默认的上采样行为已更改为align_corners=false。如果需要旧行为,请指定align_corners=true。有关详细信息,请参阅nn.upsample的文档。该警告是为了提醒开发者注意这一更改。
阅读全文