src/transformers/models/speecht5/modeling_speecht5.py/shift_spectrograms_right
def shift_spectrograms_right(input_values: torch.Tensor):
    """
    Shift input spectrograms one timestep to the right.
    """
    shifted_input_values = input_values.new_zeros(input_values.shape)
    shifted_input_values[:, 1:] = input_values[:, :-1].clone()
    return shifted_input_values