Python function
batch_padded_tokens_and_mask
batch_padded_tokens_and_mask()
max.pipelines.modeling.dataprocessing.batch_padded_tokens_and_mask(start_pos, tokens)
Batches input tokens and computes a batched attention mask.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!