[GitHub] zhanghang1989 commented on issue #10249: Custom interpolation layer. Gluon.
zhanghang1989 commented on issue #10249: Custom interpolation layer. Gluon. URL: https://github.com/apache/incubator-mxnet/issues/10249#issuecomment-379896540 ```python class BilinearInterp(Block): def __init__(self, factor, target_height, target_width, **kwargs): super(BilinearInterp, self).__init__(**kwargs) self.height = target_height self.width = target_height def forward(self, x): return mx.nd.contrib.BilinearResize2D(x, self.height, self.width) ``` This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] zhanghang1989 commented on issue #10249: Custom interpolation layer. Gluon.
zhanghang1989 commented on issue #10249: Custom interpolation layer. Gluon. URL: https://github.com/apache/incubator-mxnet/issues/10249#issuecomment-379896540 ```python class BilinearInterp(Block): def __init__(self, factor, target_height, target_width, **kwargs): super(BilinearInterp, self).__init__(**kwargs) self.height = target_height self.width = target_height def forward(self, x): return mx.nd. BilinearResize2D(x, self.height, self.width) ``` This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] zhanghang1989 commented on issue #10249: Custom interpolation layer. Gluon.
zhanghang1989 commented on issue #10249: Custom interpolation layer. Gluon. URL: https://github.com/apache/incubator-mxnet/issues/10249#issuecomment-379858573 I guess this is what you are looking for https://github.com/apache/incubator-mxnet/pull/9688 ```python import mxnet as mx x1 = mx.nd.ones(shape=(2,3,4,4)) y1 = mx.nd.contrib.BilinearResize2D(x1, out_height=5, out_width=5) ``` @szha This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] zhanghang1989 commented on issue #10249: Custom interpolation layer. Gluon.
zhanghang1989 commented on issue #10249: Custom interpolation layer. Gluon. URL: https://github.com/apache/incubator-mxnet/issues/10249#issuecomment-379858573 I guess this is what you are looking for https://github.com/apache/incubator-mxnet/pull/9688 ```python import mxnet as mx x1 = mx.nd.ones(shape=(2,3,4,4)) y1 = mx.nd.contrib.BilinearResize2D(x1, out_height=5, out_width=5) ``` This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services