You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2020/01/10 16:56:09 UTC

[GitHub] [incubator-mxnet] SunDoge commented on issue #16376: [RFC] Deferred compute in imperative interface to unify imperative and symbolic interface

SunDoge commented on issue #16376:  [RFC] Deferred compute in imperative interface to unify imperative and symbolic interface
URL: https://github.com/apache/incubator-mxnet/issues/16376#issuecomment-573116971
 
 
   Is there any progress? I really like the `static_shape` part. Currently, the symbol has no `shape` attribute which makes it hard to use some ops in HybridBlock, for example
   
   ```python
   def hybrid_forward(self, F, feat):
       _B, C, H, W = feat.shape
       x = F.linspace(-1, 1, H)
   ```
   even if I know the C, H, W will never change and I will never access the batch size B. I only need the shape once and the shape should be cached. This RFC may fix it.
   

----------------------------------------------------------------
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


With regards,
Apache Git Services