def load_priors(file_descr, graph):
    try:
        collect_until_token(file_descr, b'<Priors>')
    except Error:
        return
    if (graph.graph['cmd_params'].counts is not None):
        graph.graph['priors'] = read_binary_vector(file_descr)
    else:
        log.error('Model contains Prior values, if you want to embed them into the generated IR add option --counts="" to command line', extra={'is_warning': True})
def load_priors(file_descr, graph):
    try:
        collect_until_token(file_descr, b'<Priors>')
    except Error:
        return
    if (graph.graph['cmd_params'].counts is not None):
        graph.graph['priors'] = read_binary_vector(file_descr)
    else:
        log.error('Model contains Prior values, if you want to embed them into the generated IR add option --counts= to command line', extra={'is_warning': True})