pub fn pad_mask<T: PartialEq>(batch: &[Vec<T>], pad_value: T) -> Vec<Vec<bool>>Notable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
    A: Allocator
Expand description

Create a pad mask based on the values in the batch (batch shape: batch size, seq len)