FFmpeg
Macros | Functions
dnn-layer-mathbinary-test.c File Reference
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "libavfilter/dnn/dnn_backend_native_layer_mathbinary.h"
#include "libavutil/avassert.h"

Go to the source code of this file.

Macros

#define EPSON   0.00005
 

Functions

static float get_expected (float f1, float f2, DNNMathBinaryOperation op)
 
static int test_broadcast_input0 (DNNMathBinaryOperation op)
 
static int test_broadcast_input1 (DNNMathBinaryOperation op)
 
static int test_no_broadcast (DNNMathBinaryOperation op)
 
static int test (DNNMathBinaryOperation op)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

◆ EPSON

#define EPSON   0.00005

Definition at line 27 of file dnn-layer-mathbinary-test.c.

Function Documentation

◆ get_expected()

static float get_expected ( float  f1,
float  f2,
DNNMathBinaryOperation  op 
)
static

◆ test_broadcast_input0()

static int test_broadcast_input0 ( DNNMathBinaryOperation  op)
static

Definition at line 51 of file dnn-layer-mathbinary-test.c.

Referenced by test().

◆ test_broadcast_input1()

static int test_broadcast_input1 ( DNNMathBinaryOperation  op)
static

Definition at line 91 of file dnn-layer-mathbinary-test.c.

Referenced by test().

◆ test_no_broadcast()

static int test_no_broadcast ( DNNMathBinaryOperation  op)
static

Definition at line 131 of file dnn-layer-mathbinary-test.c.

Referenced by test().

◆ test()

static int test ( DNNMathBinaryOperation  op)
static

Definition at line 179 of file dnn-layer-mathbinary-test.c.

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 193 of file dnn-layer-mathbinary-test.c.