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 2019/10/27 18:23:15 UTC
[GitHub] [incubator-mxnet] sxjscience opened a new issue #16646:
[Bug][Numpy] zeros_like, ones_like does not respect dtype flag
sxjscience opened a new issue #16646: [Bug][Numpy] zeros_like, ones_like does not respect dtype flag
URL: https://github.com/apache/incubator-mxnet/issues/16646
```python
import mxnet as mx
mx.npx.set_np()
a = mx.np.ones((10,10), dtype=mx.np.float32)
b = mx.np.zeros_like(a, dtype=mx.np.int32)
print(b.dtype)
```
Returns
```
float32
```
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services