assertion 'dim[0] > 0 && dim[1] == 1' failed #4510
Unanswered
alex-bronia
asked this question in
Q&A
Replies: 2 comments
-
Okay update: I figured out it my last idea was correct and |
Beta Was this translation helpful? Give feedback.
0 replies
-
@niley7464 It is probably related with the rank-limit updates, which allowed (N, 1) == (N, 0). Please take a look. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I have a model that outputs a tensor with shape
(2,)
(Softmax probabilities of two classes). Its output is fed to atensor_decoder mode=image_labeling option1={LABEL_TEXT_FILE}
. I get those errors:What does
tensor_decode
expect exactly? Or is the error somewhere else, for example intensor_filter framework=tensorflow2-lite model={MODEL_PATH}
? I can't seem to understand solely by log messages + documentation.If
tensor_decode
expects a shape of(batch, 2)
instead, how can i reshape the tensor, adding a dummy first dimension?Beta Was this translation helpful? Give feedback.
All reactions