(self, length: int, pad_val: int = 0, clip: bool = True)
Instantiating PadSequence class

        Args:
            length (int): the maximum length to pad/clip the sequence
            pad_val (int): the pad value
            clip (bool): whether to clip the length, if sample length is longer than maximum length
Instantiating PadSequence class
Instantiating PadSequence class
def __init__(self, length: int, pad_val: int = 0, clip: bool = True) -> None:
        """Instantiating PadSequence class

        Args:
            length (int): the maximum length to pad/clip the sequence
            pad_val (int): the pad value
            clip (bool): whether to clip the length, if sample length is longer than maximum length
        """
        self._length = length
        self._pad_val = pad_val
        self._clip = clip
def __init__ ( self , length : int , pad_val : int = 0 , clip : bool = True ) -> None : self . _length = length self . _pad_val = pad_val self . _clip = clip