146extern int rte_ml_dev_logtype;
147#define RTE_LOGTYPE_MLDEV rte_ml_dev_logtype
149#define RTE_MLDEV_LOG(level, ...) \
150 RTE_LOG_LINE_PREFIX(level, MLDEV, "%s(): ", __func__, __VA_ARGS__)
152#define RTE_ML_STR_MAX 128
155#define RTE_MLDEV_DEFAULT_MAX 32
729 const uint16_t stat_ids[], uint64_t values[], uint16_t nb_ids);
752 const uint16_t stat_ids[], uint16_t nb_ids);
#define __rte_cache_aligned
__rte_experimental int rte_ml_io_float32_to_bfloat16(const void *fp32, void *bf16, uint64_t nb_elements)
__rte_experimental int rte_ml_io_float32_to_float16(const void *fp32, void *fp16, uint64_t nb_elements)
__rte_experimental int rte_ml_io_quantize(int16_t dev_id, uint16_t model_id, struct rte_ml_buff_seg **dbuffer, struct rte_ml_buff_seg **qbuffer)
__rte_experimental int rte_ml_io_uint8_to_float32(const void *ui8, void *fp32, uint64_t nb_elements, float scale, uint8_t zero_point)
__rte_experimental int rte_ml_dev_init(size_t dev_max)
__rte_experimental int rte_ml_io_uint64_to_float32(const void *ui64, void *fp32, uint64_t nb_elements, float scale, uint64_t zero_point)
__rte_experimental int rte_ml_model_start(int16_t dev_id, uint16_t model_id)
__rte_experimental struct rte_mempool * rte_ml_op_pool_create(const char *name, unsigned int nb_elts, unsigned int cache_size, uint16_t user_size, int socket_id)
__rte_experimental int rte_ml_io_float32_to_int8(const void *fp32, void *i8, uint64_t nb_elements, float scale, int8_t zero_point)
__rte_experimental int rte_ml_model_info_get(int16_t dev_id, uint16_t model_id, struct rte_ml_model_info *model_info)
@ RTE_ML_IO_LAYOUT_PACKED
__rte_experimental int rte_ml_io_float16_to_float32(const void *fp16, void *fp32, uint64_t nb_elements)
__rte_experimental int rte_ml_dev_close(int16_t dev_id)
__rte_experimental int rte_ml_dev_start(int16_t dev_id)
__rte_experimental void rte_ml_op_pool_free(struct rte_mempool *mempool)
__rte_experimental int rte_ml_dev_socket_id(int16_t dev_id)
__rte_experimental int rte_ml_dev_stats_get(int16_t dev_id, struct rte_ml_dev_stats *stats)
__rte_experimental int rte_ml_io_uint32_to_float32(const void *ui32, void *fp32, uint64_t nb_elements, float scale, uint32_t zero_point)
__rte_experimental int rte_ml_io_float32_to_int64(const void *fp32, void *i64, uint64_t nb_elements, float scale, int64_t zero_point)
__rte_experimental int rte_ml_dev_dump(int16_t dev_id, FILE *fd)
__rte_experimental void rte_ml_dev_stats_reset(int16_t dev_id)
__rte_experimental int rte_ml_io_dequantize(int16_t dev_id, uint16_t model_id, struct rte_ml_buff_seg **qbuffer, struct rte_ml_buff_seg **dbuffer)
__rte_experimental int rte_ml_io_int8_to_float32(const void *i8, void *fp32, uint64_t nb_elements, float scale, int8_t zero_point)
__rte_experimental int rte_ml_dev_is_valid_dev(int16_t dev_id)
__rte_experimental int rte_ml_dev_stop(int16_t dev_id)
__rte_experimental uint16_t rte_ml_enqueue_burst(int16_t dev_id, uint16_t qp_id, struct rte_ml_op **ops, uint16_t nb_ops)
__rte_experimental int rte_ml_dev_xstats_reset(int16_t dev_id, enum rte_ml_dev_xstats_mode mode, int32_t model_id, const uint16_t stat_ids[], uint16_t nb_ids)
__rte_experimental int rte_ml_io_float32_to_uint64(const void *fp32, void *ui64, uint64_t nb_elements, float scale, uint64_t zero_point)
__rte_experimental int rte_ml_dev_xstats_get(int16_t dev_id, enum rte_ml_dev_xstats_mode mode, int32_t model_id, const uint16_t stat_ids[], uint64_t values[], uint16_t nb_ids)
__rte_experimental int rte_ml_io_float32_to_uint8(const void *fp32, void *ui8, uint64_t nb_elements, float scale, uint8_t zero_point)
__rte_experimental uint16_t rte_ml_dev_count(void)
__rte_experimental int rte_ml_dev_queue_pair_setup(int16_t dev_id, uint16_t queue_pair_id, const struct rte_ml_dev_qp_conf *qp_conf, int socket_id)
__rte_experimental int rte_ml_io_bfloat16_to_float32(const void *bf16, void *fp32, uint64_t nb_elements)
__rte_experimental int rte_ml_model_unload(int16_t dev_id, uint16_t model_id)
__rte_experimental int rte_ml_io_float32_to_int16(const void *fp32, void *i16, uint64_t nb_elements, float scale, int16_t zero_point)
__rte_experimental uint16_t rte_ml_dev_queue_pair_count(int16_t dev_id)
__rte_experimental uint16_t rte_ml_dequeue_burst(int16_t dev_id, uint16_t qp_id, struct rte_ml_op **ops, uint16_t nb_ops)
__rte_experimental int rte_ml_dev_selftest(int16_t dev_id)
__rte_experimental int rte_ml_dev_xstats_by_name_get(int16_t dev_id, const char *name, uint16_t *stat_id, uint64_t *value)
__rte_experimental int rte_ml_model_stop(int16_t dev_id, uint16_t model_id)
@ RTE_ML_DEV_XSTATS_MODEL
@ RTE_ML_DEV_XSTATS_DEVICE
__rte_experimental int rte_ml_op_error_get(int16_t dev_id, struct rte_ml_op *op, struct rte_ml_op_error *error)
__rte_experimental int rte_ml_dev_info_get(int16_t dev_id, struct rte_ml_dev_info *dev_info)
__rte_experimental int rte_ml_io_int32_to_float32(const void *i32, void *fp32, uint64_t nb_elements, float scale, int32_t zero_point)
@ RTE_ML_OP_STATUS_SUCCESS
@ RTE_ML_OP_STATUS_NOT_PROCESSED
__rte_experimental int rte_ml_io_float32_to_uint32(const void *fp32, void *ui32, uint64_t nb_elements, float scale, uint32_t zero_point)
__rte_experimental int rte_ml_io_int64_to_float32(const void *i64, void *fp32, uint64_t nb_elements, float scale, int64_t zero_point)
@ RTE_ML_IO_TYPE_BFLOAT16
__rte_experimental int rte_ml_io_int16_to_float32(const void *i16, void *fp32, uint64_t nb_elements, float scale, int16_t zero_point)
__rte_experimental int rte_ml_io_float32_to_uint16(const void *fp32, void *ui16, uint64_t nb_elements, float scale, uint16_t zero_point)
void(* rte_ml_dev_stop_flush_t)(int16_t dev_id, uint16_t qp_id, struct rte_ml_op *op)
__rte_experimental int rte_ml_model_load(int16_t dev_id, struct rte_ml_model_params *params, uint16_t *model_id)
__rte_experimental int rte_ml_io_uint16_to_float32(const void *ui16, void *fp32, uint64_t nb_elements, float scale, uint16_t zero_point)
__rte_experimental int rte_ml_dev_xstats_names_get(int16_t dev_id, enum rte_ml_dev_xstats_mode mode, int32_t model_id, struct rte_ml_dev_xstats_map *xstats_map, uint32_t size)
__rte_experimental int rte_ml_model_params_update(int16_t dev_id, uint16_t model_id, void *buffer)
__rte_experimental int rte_ml_dev_configure(int16_t dev_id, const struct rte_ml_dev_config *config)
__rte_experimental int rte_ml_io_float32_to_int32(const void *fp32, void *i32, uint64_t nb_elements, float scale, int32_t zero_point)
char name[RTE_MEMPOOL_NAMESIZE]
struct rte_ml_buff_seg * next
rte_ml_dev_stop_flush_t cb
uint64_t enqueue_err_count
uint64_t dequeue_err_count
char name[RTE_ML_STR_MAX]
char name[RTE_ML_STR_MAX]
char name[RTE_ML_STR_MAX]
char version[RTE_ML_STR_MAX]
enum rte_ml_io_layout io_layout
const struct rte_ml_io_info * output_info
const struct rte_ml_io_info * input_info
char message[RTE_ML_STR_MAX]
struct rte_mempool * mempool
struct rte_ml_buff_seg ** input
enum rte_ml_op_status status
struct rte_ml_buff_seg ** output