55 const DnnOperand *input = &operands[input_operand_indexes[0]];
56 DnnOperand *output = &operands[output_operand_index];
62 for (
int i = 0;
i < 4; ++
i)
80 for (
int i = 0;
i < dims_count; ++
i)
simple assert() macros that are a bit more flexible than ISO C assert().
unsigned int avio_rl32(AVIOContext *s)
int32_t ff_calculate_operand_dims_count(const DnnOperand *oprd)
int32_t ff_calculate_operand_data_length(const DnnOperand *oprd)
DNN inference functions interface for native backend.
int ff_dnn_execute_layer_maximum(DnnOperand *operands, const int32_t *input_operand_indexes, int32_t output_operand_index, const void *parameters, NativeContext *ctx)
int ff_dnn_load_layer_maximum(Layer *layer, AVIOContext *model_file_context, int file_size, int operands_num)
DNN inference functions interface for native backend.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
void * av_realloc(void *ptr, size_t size)
Allocate, reallocate, or free a block of memory.
union DnnLayerMaximumParams::@202 val
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.
int32_t dims[4]
there are two memory layouts, NHWC or NCHW, so we use dims, dims[0] is Number.
int32_t input_operand_indexes[4]
a layer can have multiple inputs and one output.
int32_t output_operand_index