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 2017/12/10 06:17:11 UTC

[GitHub] reminisce commented on issue #9007: float16 argmax breaks on negative inputs

reminisce commented on issue #9007: float16 argmax breaks on negative inputs
URL: https://github.com/apache/incubator-mxnet/issues/9007#issuecomment-350527843
 
 
   Looks like a bug of the `argmax` operator itself, not about `simple_bind`, because the following test on `maximum` op could generate correct result. Will dig deeper.
   ```python
   data1 = mx.sym.Variable('data1')
   data2 = mx.sym.Variable('data2')
   sym = mx.sym.maximum(data1, data2)
   exe = sym.simple_bind(ctx=mx.cpu(), data1=(1,), type_dict={'data1': np.float16, 'data2': np.float16})
   exe.forward(is_train=True, data1=np.array([-3], dtype=np.float16), data2=np.array([-4], dtype=np.float16))
   print(exe.arg_dict['data1'].dtype)
   print(exe.arg_dict['data2'].dtype)
   print(exe.outputs[0])
   ```

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