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/07 17:59:33 UTC

[GitHub] [incubator-mxnet] leezu commented on issue #18667: Error: include/mxnet/./tuple.h:354: Check failed: ndim >= -1

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


   The Intel x86 and AMD64 / x86-64 series of processors use the little-endian format whereas s390x architecture uses big-endian format. Current MXNet parameter serialization format is just a memory dump and can't be loaded on a system with different endianness.
   
   For MXNet 2, we're switching to using the numpy serialization format which will prevent such issues (https://numpy.org/devdocs/reference/generated/numpy.lib.format.html) 
   
   For now, you can't use the pretrained models directly on s390x architecture but you'd need some workaround where you load the parameter on a x86 machine, call `asnumpy`, save via numpy and finally load the parameters on s390x machine using numpy and convert them to mxnet. Would that work for you?


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