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

Go to the source code of this file.

Macros

#define EPS   0.00001
 

Functions

static float get_expected (float f, DNNMathUnaryOperation op)
 
static int test (DNNMathUnaryOperation op)
 
int main (int agrc, char **argv)
 

Macro Definition Documentation

◆ EPS

#define EPS   0.00001

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

Function Documentation

◆ get_expected()

static float get_expected ( float  f,
DNNMathUnaryOperation  op 
)
static

Definition at line 29 of file dnn-layer-mathunary-test.c.

Referenced by test().

◆ test()

static int test ( DNNMathUnaryOperation  op)
static

Definition at line 73 of file dnn-layer-mathunary-test.c.

Referenced by main().

◆ main()

int main ( int  agrc,
char **  argv 
)

Definition at line 111 of file dnn-layer-mathunary-test.c.