def tensor_to_array(input_data):
    """ torch.tensor -> np.array
    Parameters
    ----------
    input_data : torch.Tensor
        torch.Tensor data
    Returns
    -------
    output_data : np.ndarray
        input_data converted to array type
    """
    output_data = input_data.to('cpu').detach().numpy().copy()
    return output_data