-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Bug with arange inside a foreach #14983
Comments
Hey, this is the MXNet Label Bot. |
Thanks for raising this! I am not super familiar with the arange operator, but through the error message, I saw its attributes like "start = 0, infer_range = true". I got a little bit confused so would love to confirm with you...Is it indicating that it is trying to generate [0, 0)? Thank you so much! |
Thanks for answering. |
I see. A known limitation for dynamic shape operators is that it does not support reverse shape inference, and control flow operators are now assumed to be dynamic shape operators. |
Ok, so is this to be considered a bug or a feature no more supported? In case it's something intended to work, can you give a time estimate for the fix to happen? Thanks |
You may be able to use the following workaround to work around the lack of reverse shape inference zeros = F.zeros_like(inputs)
arange = F.arange(start=0, repeat=1, step=1, infer_range=True, dtype='int32')
arange = F.elemwise_add(arange, zeros) |
symbol.zip
Download+extract the attached json and run this script:
It fails with the following error:
This example stopped working at this commit: 83d2c2d
Before that, it was producing the expected result:
@sbodenstein
The text was updated successfully, but these errors were encountered: