You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mxnet.apache.org by GitBox <gi...@apache.org> on 2021/01/14 21:14:05 UTC

[GitHub] [incubator-mxnet] OliverColeman opened a new issue #19752: Allow Symbol arguments for BilinearResize2D width, height, scale_*

OliverColeman opened a new issue #19752:
URL: https://github.com/apache/incubator-mxnet/issues/19752


   ## Description
   `ndarray.contrib.BilinearResize2D` expects the  `width`, `height`,  `scale_width` and `scale_height` parameters to be scalar ints or floats. The request here is to allow passing a Symbol for these parameters. The Symbol values could come from, for example, the `nd.shape_array()` function. This would allow, for example, specifying the output size of the Bilinear operation based on the dynamic shape of previous input or stages in both imperative and symbolic mode in a hybridized model:
   
   ```
   def hybrid_forward(self, F, x):
           original_size = x.shape_array()[2:]
           ...
           x = F.contrib.BilinearResize2D(x, height=original_size[0], width=original_size[1])
           return x
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org