This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Mismatched Shapes in Value Error #12676
Labels
Comments
@mxnet-label-bot [NDArray] |
@mxnet-label-bot [Bug] |
8 tasks
Fix in PR #12678 (Ref: #12677 (comment)) |
3 tasks
@ChaiBapchya can this be closed as well? |
Um, the PR doesn't address it and the question is still unanswered. I personally think it's mismatched. But wanted to confirm it. In that case, it's a simple change for PR. |
Yep, the order is wrong, could you open a PR to fix it, since the last conversation is closed. @ChaiBapchya |
Merged
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
Shapes given in the Value error seem to be mismatched between expected and got
Python
Compiler: visual studio
MXNet commit hash: 769165b
Error Message:
Minimum reproducible example
mx.nd.array(1)
Correct way of initialization right now is to feed a list,
Shape of such an NDarray is
Meaning, it expects (1,)
However, when we feed ()
It should give error
ValueError: Shape inconsistent: expected (1,) vs got ()
The text was updated successfully, but these errors were encountered: