FFmpeg
Typedefs | Functions | Variables
dnn_backend_native_layer_mathbinary.c File Reference

DNN native backend implementation. More...

#include "dnn_backend_native.h"
#include "libavutil/avassert.h"
#include "dnn_backend_native_layer_mathbinary.h"

Go to the source code of this file.

Typedefs

typedef float(* FunType) (float src0, float src1)
 

Functions

static float sub (float src0, float src1)
 
static float add (float src0, float src1)
 
static float mul (float src0, float src1)
 
static float realdiv (float src0, float src1)
 
static float minimum (float src0, float src1)
 
static float floormod (float src0, float src1)
 
static void math_binary_commutative (FunType pfun, const DnnLayerMathBinaryParams *params, const DnnOperand *input, DnnOperand *output, DnnOperand *operands, const int32_t *input_operand_indexes)
 
static void math_binary_not_commutative (FunType pfun, const DnnLayerMathBinaryParams *params, const DnnOperand *input, DnnOperand *output, DnnOperand *operands, const int32_t *input_operand_indexes)
 
int dnn_load_layer_math_binary (Layer *layer, AVIOContext *model_file_context, int file_size, int operands_num)
 
int dnn_execute_layer_math_binary (DnnOperand *operands, const int32_t *input_operand_indexes, int32_t output_operand_index, const void *parameters, NativeContext *ctx)
 

Variables

FunType pfun
 

Detailed Description

DNN native backend implementation.

Definition in file dnn_backend_native_layer_mathbinary.c.

Typedef Documentation

typedef float(* FunType) (float src0, float src1)

Definition at line 30 of file dnn_backend_native_layer_mathbinary.c.

Function Documentation

static float sub ( float  src0,
float  src1 
)
static
static float add ( float  src0,
float  src1 
)
static
static float mul ( float  src0,
float  src1 
)
static
static float realdiv ( float  src0,
float  src1 
)
static

Definition at line 45 of file dnn_backend_native_layer_mathbinary.c.

Referenced by dnn_execute_layer_math_binary().

static float minimum ( float  src0,
float  src1 
)
static
static float floormod ( float  src0,
float  src1 
)
static

Definition at line 53 of file dnn_backend_native_layer_mathbinary.c.

Referenced by dnn_execute_layer_math_binary().

static void math_binary_commutative ( FunType  pfun,
const DnnLayerMathBinaryParams params,
const DnnOperand input,
DnnOperand output,
DnnOperand operands,
const int32_t input_operand_indexes 
)
static

Definition at line 58 of file dnn_backend_native_layer_mathbinary.c.

Referenced by dnn_execute_layer_math_binary().

static void math_binary_not_commutative ( FunType  pfun,
const DnnLayerMathBinaryParams params,
const DnnOperand input,
DnnOperand output,
DnnOperand operands,
const int32_t input_operand_indexes 
)
static

Definition at line 78 of file dnn_backend_native_layer_mathbinary.c.

Referenced by dnn_execute_layer_math_binary().

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

Definition at line 102 of file dnn_backend_native_layer_mathbinary.c.

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

Variable Documentation

FunType pfun