help to understand data structure behind add_seq_to_ubatch #10465
CharlesJu1
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am having a difficult time trying to understand the code of add_seq_to_ubatch. From the comments, it sounds like ubatch can only accept equal length batch. However, when I step through the code, the ubatch.equal_seqs is false and it goes to the "simple split" case, which handles "unknown number of sequences of unequal lengths" according to the comments. And later, there is a concept of "virtual sequences for simple splits", which increments the ubatch.n_seqs by "length".
Could someone help outline the logic behind add_seq_to_ubatch? The relationship between seq,ubatch, "virtual sequence"?
Beta Was this translation helpful? Give feedback.
All reactions