Go to the documentation of this file.
27 #ifndef AVFILTER_DNN_DNN_BACKEND_NATIVE_H
28 #define AVFILTER_DNN_DNN_BACKEND_NATIVE_H
30 #include "../dnn_interface.h"
int8_t isNHWC
NHWC if 1, otherwise NCHW.
DNNModel * ff_dnn_load_model_native(const char *model_filename)
DNNLayerType
the enum value of DNNLayerType should not be changed, the same values are used in convert_from_tensor...
DNNOperandType type
input/output/intermediate operand of the network
char name[128]
to avoid possible memory leak, do not use char *name
void * data
data pointer with data length in bytes.
DNNDataType data_type
support different kinds of data type such as float, half float, int8 etc, first support float now.
static const AVFilterPad outputs[]
int32_t dims[4]
there are two memory layouts, NHWC or NCHW, so we use dims, dims[0] is Number.
int32_t output_operand_index
int32_t input_operand_indexes[4]
a layer can have multiple inputs and one output.
int32_t calculate_operand_data_length(const DnnOperand *oprd)
void ff_dnn_free_model_native(DNNModel **model)
DNNReturnType ff_dnn_execute_model_native(const DNNModel *model, DNNData *outputs, uint32_t nb_output)
int32_t calculate_operand_dims_count(const DnnOperand *oprd)