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/04/20 20:50:38 UTC

[GitHub] [incubator-mxnet] leezu commented on issue #18105: [Gluon] Deferred initialization error of dynamic shape operators

leezu commented on issue #18105:
URL: https://github.com/apache/incubator-mxnet/issues/18105#issuecomment-616801781


   This is expected and one motivation for adding `HybridBlock.forward` based on deferred compute.
   In that case, you can implement `HybridBlock.infer_shape` and work around that by it's very nature, the backend can't do shape inference on dynamic shape operators.
   
   You can also implement `HybridBlock.infer_shape` without using deferred compute interface, but then you'll get a symbol as input to `HybridBlock.infer_shape` and that may not help you to manually set the parameter shape..


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