jjjjjjjjj58 2021-03-01 12:10 采纳率: 0%
浏览 88

pytorch 转换为 tensorflow 中的 image resize

这是我要转的pytorch

c3 = F.interpolate(c3, (x.size(2), x.size(3)), mode='bilinear', align_corners=False)

这是我转后的

c5=tf.image.resize(c4,(x.shape.as_list()[2],x.shape.as_list()[3]),method='bilinear')

可是报错:'size' must be a 1-D int32 Tensor

  • 写回答

1条回答 默认 最新

  • jjjjjjjjj58 2021-03-01 12:11
    关注

    可是报错:'size' must be a 1-D int32 Tensor

    评论

报告相同问题?