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/22 19:18:12 UTC

[GitHub] [incubator-mxnet] leezu opened a new issue #18770: NumPy byteorder incompatibility

leezu opened a new issue #18770:
URL: https://github.com/apache/incubator-mxnet/issues/18770


   MXNet ignores the byte-order of numpy data-types and always uses native byte-order.
   
   ```
   >>> import mxnet as mx
   >>> import numpy as np
   >>> print(mx.np.arange(10, dtype=np.dtype('<i4')).dtype.byteorder)
   =
   >>> print(mx.np.arange(10, dtype=np.dtype('>i4')).dtype.byteorder)
   =
   >>> print(np.arange(10, dtype=np.dtype('>i4')).dtype.byteorder)
   >
   >>> print(np.arange(10, dtype=np.dtype('<i4')).dtype.byteorder)
   =
   ```


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