reminisce commented on issue #17810: GraphExecutor + Numpy + Dynamic shape crash URL: https://github.com/apache/incubator-mxnet/issues/17810#issuecomment-597917475 This is because unknown shape `NDArray`s are assigned with default `storage_shape=(0,)` https://github.com/apache/incubator-mxnet/blob/713d962359cfe5b014ca24c0f9b3676d86b28569/include/mxnet/ndarray.h#L115-L120 and dynamic shape workflow used this information as a condition for checking whether the ndarray has been allocated or not before NumPy shape semantics was added, https://github.com/apache/incubator-mxnet/blob/713d962359cfe5b014ca24c0f9b3676d86b28569/src/ndarray/ndarray.cc#L116-L121 while in NumPy shape semantics, `(0,)` is treated as a known shape and thus leads to shape mismatch failure downstream. https://github.com/apache/incubator-mxnet/blob/713d962359cfe5b014ca24c0f9b3676d86b28569/src/executor/graph_executor.cc#L148-L152
---------------------------------------------------------------- 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] With regards, Apache Git Services
