reminisce commented on a change in pull request #14612: [Numpy] Misc fix
URL: https://github.com/apache/incubator-mxnet/pull/14612#discussion_r271953512
 
 

 ##########
 File path: src/ndarray/ndarray.cc
 ##########
 @@ -1711,7 +1711,7 @@ bool NDArray::Load(dmlc::Stream *strm) {
   // load shape
   mxnet::TShape shape;
   if (!shape.Load(strm)) return false;
-  if (shape.ndim() == 0) {
+  if (mxnet::op::shape_is_none(shape)) {
 
 Review comment:
   We may need to check whether the current mode is numpy compatible. If not, 
we need to conver `shape` to numpy shape first and then call 
`shape_is_none/shape_is_known`.

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

Reply via email to