bgawrych commented on issue #20066:
URL: 
https://github.com/apache/incubator-mxnet/issues/20066#issuecomment-805883552


   Looks like there is no support for int16 in NDArray interface. @szha is this 
known issue?
   ```
   >>> mx.nd.ones((3,2), dtype='int16')
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
     File "/home/bg/incubator-mxnet/python/mxnet/ndarray/ndarray.py", line 
3301, in ones
       return _internal._ones(shape=shape, ctx=ctx, dtype=dtype, **kwargs)
     File "<string>", line 39, in _ones
     File "/home/bg/incubator-mxnet/python/mxnet/_ctypes/ndarray.py", line 82, 
in _imperative_invoke
       check_call(_LIB.MXImperativeInvokeEx(
     File "/home/bg/incubator-mxnet/python/mxnet/base.py", line 246, in 
check_call
       raise get_last_ffi_error()
   mxnet.base.MXNetError: MXNetError: Invalid Input: 'int16', valid values are: 
{'bfloat16', 'bool', 'float16', 'float32', 'float64', 'int32', 'int64', 'int8', 
'uint8'}, in operator _ones(name="", dtype="int16", ctx="cpu(0)", shape="(3, 
2)")
   ```


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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to