def flush(self):
        """
        Flush remaining audio by padding it with zero. Call this
        when you have no more input and want to get back the last chunk of audio.
        """
        pending_length = self.pending.shape[1]
        padding = th.zeros(
            self.demucs.chin, self.total_length, device=self.pending.device
        )
        out = self.feed(padding)
        return out[:, :pending_length]

        Flush remaining audio by padding it with zero. Call this
        when you have no more input and want to get back the last chunk of audio.
        
understand_icl/fairseq/examples/speech_synthesis/preprocessing/denoiser/demucs.py