haojin2 opened a new issue #17083: `mx.np.outer` does not support integer inputs
URL: https://github.com/apache/incubator-mxnet/issues/17083
 
 
   ## Error
   ```
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
     File "/home/ubuntu/incubator-mxnet/python/mxnet/numpy/multiarray.py", line 
918, in __repr__
       array_str = self.asnumpy().__repr__()
     File "/home/ubuntu/incubator-mxnet/python/mxnet/ndarray/ndarray.py", line 
2552, in asnumpy
       ctypes.c_size_t(data.size)))
     File "/home/ubuntu/incubator-mxnet/python/mxnet/base.py", line 278, in 
check_call
       raise MXNetError(py_str(_LIB.MXGetLastError()))
   mxnet.base.MXNetError: [06:26:13] 
../src/operator/numpy/./np_tensordot_op-inl.h:605: Check failed: out.type_flag_ 
== kFloat32 || out.type_flag_ == kFloat64 || (out.type_flag_ == kFloat16 && 
ctx.run_ctx.ctx.dev_mask() == mshadow::gpu::kDevMask): Tensordot only supports 
float32/float64 for CPU, and float16/float32/float64 for GPU
   ```
   ## Reproduction
   ```python
   from mxnet import np,npx
   npx.set_np()
   
   a = np.random.uniform(-128, 128, size=(100,)).astype(np.int64)
   b = np.outer(a, a)
   ```

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