You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In following code, I want to generate an input. However, when the input shape contains a negative integer, the code wont throw errors. It just prints Input('Input3', [#], [1 x ? x 1]). This behaviour is quite different from other deep learning libraries. I think it would be better if there is input shape checking.
repo code:
x = C.input_variable((1, -1, 1), needs_gradient=True)
print(x)
The text was updated successfully, but these errors were encountered:
The issue you're encountering might be related to how CNTK handles negative integers in input shapes. In CNTK, the negative dimension is often used as a placeholder for sequences or variable-length dimensions. While other deep learning libraries might raise an error when encountering negative integers, CNTK might interpret it differently.
In your case, the shape (1, -1, 1) is likely interpreted as a sequence of vectors with one element, where the second dimension can vary in size (variable-length sequence), and each element has one value. This is a valid usage in CNTK for dealing with sequences.
In following code, I want to generate an input. However, when the input shape contains a negative integer, the code wont throw errors. It just prints
Input('Input3', [#], [1 x ? x 1])
. This behaviour is quite different from other deep learning libraries. I think it would be better if there is input shape checking.repo code:
The text was updated successfully, but these errors were encountered: