About dimension of NDList when input to model #1377
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@freesia-sherry Your model doesn't support batch, but your Translator returns When you return |
Beta Was this translation helpful? Give feedback.
-
@freesia-sherry Usually the first dimension is batch dimension, if the batchsize is 2, the input shape should be 2 x 1, not 1 x 2. But in any case, you can always manually batch your inputs and use |
Beta Was this translation helpful? Give feedback.
@freesia-sherry Usually the first dimension is batch dimension, if the batchsize is 2, the input shape should be 2 x 1, not 1 x 2.
But in any case, you can always manually batch your inputs and use
NoBatchifyTranslator
so DJL won't try to auto batch for you.