def __call__()

in augment/effects.py [0:0]


    def __call__(self, x, src_info, dst_info):
        if self.max_frames is None:
            max_frames = int(src_info['rate'] * self.max_seconds)
        else:
            max_frames = self.max_frames

        length = np.random.randint(0, max_frames)

        start = np.random.randint(0, x.size(1) - length)
        end = start + length

        x[:, start:end, ...].zero_()
        return x, src_info, dst_info