roywei commented on issue #18165:
URL: 
https://github.com/apache/incubator-mxnet/issues/18165#issuecomment-653226815


   I think it still fails for unknow shape case. The above code works fine for 
0 dim, but use -1 to represent unknown shape still fails:
   ```
   >>> with mx.np_shape(active=True):
   ...     a = mx.sym.Variable("a")
   ...     b = mx.sym.Flatten(a)
   ...     exec = b.simple_bind(ctx=mx.cpu(), a=(-1,10,2))
   ...     exec.forward(a=mx.nd.ones((32,10,2)))
   ...
   Traceback (most recent call last):
     File "<stdin>", line 4, in <module>
     File "//anaconda3/lib/python3.7/site-packages/mxnet/symbol/symbol.py", 
line 1754, in simple_bind
       array('I', provided_arg_shape_data)),
   OverflowError: can't convert negative value to unsigned int
   
   ```


----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to