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/05/17 13:48:11 UTC
[GitHub] [incubator-mxnet] matteosal opened a new issue #14983: Bug with
arange inside a foreach
matteosal opened a new issue #14983: Bug with arange inside a foreach
URL: https://github.com/apache/incubator-mxnet/issues/14983
[symbol.zip](https://github.com/apache/incubator-mxnet/files/3191699/symbol.zip)
Download+extract the attached json and run this script:
```
import mxnet as mx
sym = mx.symbol.load('/path/to/symbol.json')
args = {
".Inputs.Input": mx.nd.zeros([1, 1, 2]),
".States.Element": mx.nd.zeros([1]),
"zeroarray0": mx.nd.zeros([1]),
".Inputs.Position": mx.nd.zeros([1, 1]),
"fixedarray:.Parameters.Net.Nodes.2:Limit": mx.nd.zeros([1]),
}
ex = sym.bind(mx.cpu(), args=args)
outputs = ex.forward()
print(outputs)
```
It fails with the following error:
```
mxnet.base.MXNetError: [15:37:57] src/imperative/./imperative_utils.h:145: Operator _arange inferring shapes failed.
input shapes:
output shapes:
None
operator attributes:
start : 0
dtype : float32
infer_range : true
```
This example stopped working at this commit: https://github.com/apache/incubator-mxnet/commit/83d2c2d0e0edeb7d85471437601efcf8bebf070e
Before that, it was producing the expected result:
```
[
[[0.]]
<NDArray 1x1 @cpu(0)>,
[0.]
<NDArray 1 @cpu(0)>]
```
@sbodenstein
----------------------------------------------------------------
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