def get_index_from_tensor_name(tensor_name):
    """
    Get the index of the tensor of a certain op.

    Args:
        tensor_name (str): The tensor name

    Returns:
        int: The index of the tensor
    """
    return int(tensor_name.split(':')[1])