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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to