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.
DNNOperandType type
input/output/intermediate operand of the network
int32_t input_operand_indexes[4]
a layer can have multiple inputs and one output.
int32_t calculate_operand_dims_count(const DnnOperand *oprd)
DNNDataType data_type
support different kinds of data type such as float, half float, int8 etc, first support float now...
void * data
data pointer with data length in bytes.
int32_t calculate_operand_data_length(const DnnOperand *oprd)
static const AVFilterPad outputs[]
DNNModel * ff_dnn_load_model_native(const char *model_filename)
void ff_dnn_free_model_native(DNNModel **model)
DNNLayerType
the enum value of DNNLayerType should not be changed, the same values are used in convert_from_tensor...
DNNReturnType ff_dnn_execute_model_native(const DNNModel *model, DNNData *outputs, uint32_t nb_output)
int32_t output_operand_index