Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

mx.np.outer does not support integer inputs #17083

Closed
haojin2 opened this issue Dec 16, 2019 · 2 comments
Closed

mx.np.outer does not support integer inputs #17083

haojin2 opened this issue Dec 16, 2019 · 2 comments

Comments

@haojin2
Copy link
Contributor

haojin2 commented Dec 16, 2019

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

from mxnet import np,npx
npx.set_np()

a = np.random.uniform(-128, 128, size=(100,)).astype(np.int64)
b = np.outer(a, a)
@yzhliu
Copy link
Member

yzhliu commented Jun 3, 2020

(Tentatively) @AntiZpvoh will be helping once he has finished ongoing tasks.

@Yiyan66
Copy link
Contributor

Yiyan66 commented Jun 19, 2020

fixed by #17510

@yzhliu yzhliu closed this as completed Jun 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants