Skip to content

About dimension of NDList when input to model #1377

Answered by frankfliu
freesia-sherry asked this question in Q&A
Discussion options

You must be logged in to vote

@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.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@freesia-sherry
Comment options

Comment options

You must be logged in to vote
1 reply
@freesia-sherry
Comment options

Answer selected by freesia-sherry
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