aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/example/ml/model_read.h
blob: df2062d5f71d1fddaf6130de3ac38468cdfb4775 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* SPDX-License-Identifier: BSD-3-Clause
 * Copyright (c) 2023 Nokia
 */

#ifndef ODP_MODEL_READ_H_
#define ODP_MODEL_READ_H_

#ifdef __cplusplus
extern "C" {
#endif

#include <odp_api.h>

/**
 * Read model binaries from model file
 *
 * @param file_name     The name of model file
 * @param model_param   Model parameter where model content and size are read to
 *
 * @retval      0 on success
 * @retval      < 0 on failure
 */
int read_model_from_file(const char *file_name, odp_ml_model_param_t *model_param);

#ifdef __cplusplus
}
#endif

#endif