zhanghang1989 commented on issue #10249: Custom interpolation layer. Gluon. 
   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:

With regards,
Apache Git Services

Reply via email to