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 2018/06/07 15:24:05 UTC

[GitHub] dwSun commented on issue #10809: Check failed: format != mkl_mem_->GetFormat() (5 vs. 5)

dwSun commented on issue #10809: Check failed: format != mkl_mem_->GetFormat() (5 vs. 5)
URL: https://github.com/apache/incubator-mxnet/issues/10809#issuecomment-395461362
 
 
   tested with mxnet-cu91mkl (1.2.0) from pypi, fashion.py in this issue works well.
   But with mxnet-mkl 1.2.0, I got this error:
   ```sh
   [23:18:18] src/operator/nn/mkldnn/mkldnn_base.cc:60: Allocate 28672 bytes with malloc directly
   [23:18:18] src/operator/nn/mkldnn/mkldnn_base.cc:60: Allocate 4096 bytes with malloc directly
   [23:18:18] src/operator/nn/mkldnn/mkldnn_base.cc:60: Allocate 86016 bytes with malloc directly
   [23:18:19] src/operator/nn/mkldnn/mkldnn_base.cc:60: Allocate 28672 bytes with malloc directly
   [23:18:19] src/operator/nn/mkldnn/mkldnn_base.cc:60: Allocate 4096 bytes with malloc directly
   [23:18:19] src/operator/nn/mkldnn/mkldnn_base.cc:60: Allocate 86016 bytes with malloc directly
   Traceback (most recent call last):
     File "fashion.py", line 71, in <module>
       valid_loss = cumulative_valid_loss.asscalar()/valid_samples
     File "/home/david/.local/lib/python3.6/site-packages/mxnet/ndarray/ndarray.py", line 1894, in asscalar
       return self.asnumpy()[0]
     File "/home/david/.local/lib/python3.6/site-packages/mxnet/ndarray/ndarray.py", line 1876, in asnumpy
       ctypes.c_size_t(data.size)))
     File "/home/david/.local/lib/python3.6/site-packages/mxnet/base.py", line 149, in check_call
       raise MXNetError(py_str(_LIB.MXGetLastError()))
   mxnet.base.MXNetError: [23:18:19] src/ndarray/ndarray.cc:721: Check failed: !IsMKLDNNData() We can't generate TBlob for MKLDNN data. Please use Reorder2Default() to generate a new NDArray first
   
   Stack trace returned 10 entries:
   [bt] (0) /home/david/.local/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x17ec9d) [0x7fcb3104dc9d]
   [bt] (1) /home/david/.local/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x17f068) [0x7fcb3104e068]
   [bt] (2) /home/david/.local/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x293d945) [0x7fcb3380c945]
   [bt] (3) /home/david/.local/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x3e7b73) [0x7fcb312b6b73]
   [bt] (4) /home/david/.local/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x3e9cd8) [0x7fcb312b8cd8]
   [bt] (5) /home/david/.local/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x28174e6) [0x7fcb336e64e6]
   [bt] (6) /home/david/.local/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x27a3ac2) [0x7fcb33672ac2]
   [bt] (7) /home/david/.local/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x27a3ac2) [0x7fcb33672ac2]
   [bt] (8) /home/david/.local/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x27a3ac2) [0x7fcb33672ac2]
   [bt] (9) /home/david/.local/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x27a3ac2) [0x7fcb33672ac2]
   ```
   
   This issue is weird...
   I am totally confused...
   Maybe my script is cursed...
   w(゚Д゚)w

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services