When I ran Unet on VTA, when I imported the Model from Pytorch, I found nn.upsample
translated to image.resize2d
. However, the following two upsampling methods have been discovered under TVM’s Python API:
tvm.relay.nn.upsampling(data, scale_h=1, scale_w=1, layout='NCHW', method='nearest_neighbor', align_corners=False)¶
tvm.relay.image.resize2d(data, size, roi=None, layout='NCHW', method='linear', coordinate_transformation_mode='half_pixel', rounding_method='', cubic_alpha=- 0.5, cubic_exclude=0, extrapolation_value=0.0, out_dtype=None)¶
So I want to ask them what’s the difference? When will it be translated as nn.upsampling
, and when will it be translated as image.resize2d
? Because I currently suspect that this has a lot to do with whether the backdoor can implement graph_pack。
So I want to ask them what’s the difference? When will it be translated as Nn. upsampling, and when will it be translated as image.resize2d? Because I currently suspect that this has a lot to do with whether the backdoor can implement graph_pack?Thanks。