A thatcher’s yard has notes of three words and notes of three pages next to roof stills. Why must variable-length text or audio be padded or packed before a batched forward pass?
Select an answer to reveal the explanation.
Short Explanation
Batches like neat rows. Short and long notes need padding or packing so they sit in one rectangular batch the network can run together.
Full Explanation
Variable-length text or audio beside roof stills in a thatcher’s yard must be padded or packed so sequences of different lengths can share one batched tensor layout the network expects. Padding does not rewrite every note into the same English sentence. Padding should not permanently delete the longest notes from training; masks or packing preserve real content. Image resolution cannot replace text length as the only batch axis when the language/audio arm still varies. Exam caveat: batching variable sequences needs pad/pack plus masking awareness. Operational check: batch three-word and three-page notes with pad/pack, attach attention masks, and confirm the forward pass accepts the batch without truncating away needed civic content unnoticed. Enable attention masks for padded thatcher notes and audit that pads do not dominate the loss. Pad or pack variable thatcher notes with masks so batched forwards share layout without erasing long content. Enable pad/pack plus attention masks for three-word and three-page thatcher notes, and monitor that pad positions do not dominate the batched loss. Close q116 with a municipal evidence note that records why the correct mechanism fits this civic multimodal scenario, why each of the three distractors fails by a distinct concept, and which operational check was observed in logs or dataset cards before promotion. File that note with the run packet so later maintenance cannot silently revive a rejected framing.