FFmpeg
Data Structures | Enumerations | Functions
dnn_backend_native_layer_mathbinary.h File Reference
#include "libavformat/avio.h"
#include "dnn_backend_native.h"

Go to the source code of this file.

Data Structures

struct  DnnLayerMathBinaryParams
 

Enumerations

enum  DNNMathBinaryOperation {
  DMBO_SUB = 0, DMBO_ADD = 1, DMBO_MUL = 2, DMBO_REALDIV = 3,
  DMBO_MINIMUM = 4, DMBO_FLOORMOD = 5, DMBO_COUNT
}
 

Functions

int ff_dnn_load_layer_math_binary (Layer *layer, AVIOContext *model_file_context, int file_size, int operands_num)
 
int ff_dnn_execute_layer_math_binary (DnnOperand *operands, const int32_t *input_operand_indexes, int32_t output_operand_index, const void *parameters, NativeContext *ctx)
 

Detailed Description

DNN inference functions interface for native backend.

Definition in file dnn_backend_native_layer_mathbinary.h.

Enumeration Type Documentation

◆ DNNMathBinaryOperation

Enumerator
DMBO_SUB 
DMBO_ADD 
DMBO_MUL 
DMBO_REALDIV 
DMBO_MINIMUM 
DMBO_FLOORMOD 
DMBO_COUNT 

Definition at line 33 of file dnn_backend_native_layer_mathbinary.h.

Function Documentation

◆ ff_dnn_load_layer_math_binary()

int ff_dnn_load_layer_math_binary ( Layer layer,
AVIOContext model_file_context,
int  file_size,
int  operands_num 
)

Definition at line 100 of file dnn_backend_native_layer_mathbinary.c.

◆ ff_dnn_execute_layer_math_binary()

int ff_dnn_execute_layer_math_binary ( DnnOperand operands,
const int32_t input_operand_indexes,
int32_t  output_operand_index,
const void *  parameters,
NativeContext ctx 
)