Skip to content

The size of tensor a (6300) must match the size of tensor b (6810)? #3012

Answered by zachgk
StefanOltmann asked this question in Q&A
Discussion options

You must be logged in to vote

It means that in some NDArray operation, you are using NDArrays of incompatible shapes. For example, you can't add an array of Shape(3) to one of Shape(5). The shapes have to be equal or broadcastable to each other. The stack trace or more of the error message should give you some hints as to which operation is wrong

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@StefanOltmann
Comment options

Answer selected by StefanOltmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants