import torch


def create_init_scores(prev_tokens, tensor):
    """
    Create init scores in search algorithms

    Args:
        prev_tokens: previous token
        tensor: a type tensor

    Returns:
        - initial scores as zeros
    """
    batch_size = prev_tokens.size(0)
    prev_scores = torch.zeros(batch_size).type_as(tensor)
    return prev_scores