CMS 3D CMS Logo

Classes | Namespaces | Macros | Functions
nnet_layer.h File Reference
#include "nnet_common.h"
#include <cmath>

Go to the source code of this file.

Classes

struct  nnet::layer_config
 

Namespaces

 nnet
 

Macros

#define DIV_ROUNDUP(n, d)   ((n + d - 1) / d)
 

Functions

template<class data_T , class res_T , typename CONFIG_T >
void nnet::compute_layer (data_T data[CONFIG_T::n_in], res_T res[CONFIG_T::n_out], typename CONFIG_T::weight_t weights[CONFIG_T::n_in *CONFIG_T::n_out], typename CONFIG_T::bias_t biases[CONFIG_T::n_out])
 

Macro Definition Documentation

◆ DIV_ROUNDUP

#define DIV_ROUNDUP (   n,
 
)    ((n + d - 1) / d)

Definition at line 47 of file nnet_layer.h.

Referenced by nnet::compute_layer().