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

Go to the source code of this file.

Functions

COST_TYPE get_cost_type (char *s)
 
char * get_cost_string (COST_TYPE a)
 
cost_layer make_cost_layer (int batch, int inputs, COST_TYPE cost_type, float scale)
 
void resize_cost_layer (cost_layer *l, int inputs)
 
void forward_cost_layer (cost_layer l, network net)
 
void backward_cost_layer (const cost_layer l, network net)
 

Function Documentation

◆ backward_cost_layer()

void backward_cost_layer ( const cost_layer  l,
network  net 
)

Definition at line 101 of file cost_layer.c.

◆ forward_cost_layer()

void forward_cost_layer ( cost_layer  l,
network  net 
)

Definition at line 82 of file cost_layer.c.

◆ get_cost_string()

char* get_cost_string ( COST_TYPE  a)

Definition at line 22 of file cost_layer.c.

◆ get_cost_type()

COST_TYPE get_cost_type ( char *  s)

Definition at line 10 of file cost_layer.c.

◆ make_cost_layer()

cost_layer make_cost_layer ( int  batch,
int  inputs,
COST_TYPE  cost_type,
float  scale 
)

Definition at line 41 of file cost_layer.c.

◆ resize_cost_layer()

void resize_cost_layer ( cost_layer l,
int  inputs 
)

Definition at line 68 of file cost_layer.c.