import torch


def is_batch_all_silence(m):

    """Takes as input batch of mels m (batch, num_mel_bins, num_frames)
    and returns True if all of the batch elements are entirely silence"""

    return torch.allclose(m, torch.zeros(1))