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/07/17 20:15:46 UTC

[GitHub] [incubator-mxnet] leezu edited a comment on pull request #18690: [WIP] optimize graph in presence of dynamic shape ops

leezu edited a comment on pull request #18690:
URL: https://github.com/apache/incubator-mxnet/pull/18690#issuecomment-660317004


   This isn't working yet. You can try the following slight extension of the `test_dynamic_shape.py`:
   
   ``` diff
   modified   tests/python/unittest/test_dynamic_shape.py
   @@ -33,7 +33,7 @@ def test_dynamic_shape():
                super(_TestBlock, self).__init__()
    
            def hybrid_forward(self, F, data, index):
   -            return F.contrib.boolean_mask(data, index)
   +            return F.contrib.boolean_mask(data, index).reshape((-1, ))
    
        block = _TestBlock()
        block.hybridize()
   ```
   
   For your convenience, I add a commit to this PR to add the extra `reshape` statement.


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