darknet  v3
Functions
activations.c File Reference
#include "activations.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for activations.c:

Go to the source code of this file.

Functions

char * get_activation_string (ACTIVATION a)
 
ACTIVATION get_activation (char *s)
 
float activate (float x, ACTIVATION a)
 
void activate_array (float *x, const int n, const ACTIVATION a)
 
float gradient (float x, ACTIVATION a)
 
void gradient_array (const float *x, const int n, const ACTIVATION a, float *delta)
 

Function Documentation

◆ activate()

float activate ( float  x,
ACTIVATION  a 
)

Definition at line 65 of file activations.c.

◆ activate_array()

void activate_array ( float *  x,
const int  n,
const ACTIVATION  a 
)

Definition at line 100 of file activations.c.

◆ get_activation()

ACTIVATION get_activation ( char *  s)

Definition at line 45 of file activations.c.

◆ get_activation_string()

char* get_activation_string ( ACTIVATION  a)

Definition at line 8 of file activations.c.

◆ gradient()

float gradient ( float  x,
ACTIVATION  a 
)

Definition at line 108 of file activations.c.

◆ gradient_array()

void gradient_array ( const float *  x,
const int  n,
const ACTIVATION  a,
float *  delta 
)

Definition at line 143 of file activations.c.