import torch


def batch_first2time_first(inputs):
    """
    Convert input from batch_first to time_first:
    [B * T * D] -> [T * B * D]

    :param inputs:
    :return:
    """
    return torch.transpose(inputs, 0, 1)