CMS 3D CMS Logo

Classes | Namespaces | Functions
nnet_activation.h File Reference
#include <cmath>
#include "ap_fixed.h"
#include "nnet_common.h"

Go to the source code of this file.

Classes

struct  nnet::activ_config
 

Namespaces

 nnet
 

Functions

float nnet::exp_fcn_float (float input)
 
template<typename CONFIG_T , int N_TABLE>
void nnet::init_exp_table (typename CONFIG_T::table_t table_out[N_TABLE])
 
template<typename CONFIG_T , int N_TABLE>
void nnet::init_invert_table (typename CONFIG_T::table_t table_out[N_TABLE])
 
template<class res_T , typename CONFIG_T , int N_TABLE>
void nnet::init_sigmoid_table (res_T table_out[N_TABLE])
 
template<typename CONFIG_T , int N_TABLE>
void nnet::init_tanh_table (typename CONFIG_T::table_t table_out[N_TABLE])
 
template<class data_T , class res_T , typename CONFIG_T >
void nnet::linear (data_T data[CONFIG_T::n_in], res_T res[CONFIG_T::n_in])
 
template<class data_T , class res_T , typename CONFIG_T >
void nnet::relu (data_T data[CONFIG_T::n_in], res_T res[CONFIG_T::n_in])
 
template<class data_T , class res_T , typename CONFIG_T >
void nnet::relu6 (data_T data[CONFIG_T::n_in], res_T res[CONFIG_T::n_in])
 
template<class data_T , class res_T , int MAX_INT, typename CONFIG_T >
void nnet::relu_max (data_T data[CONFIG_T::n_in], res_T res[CONFIG_T::n_in])
 
template<class data_T , class res_T , typename CONFIG_T >
void nnet::sigmoid (data_T data[CONFIG_T::n_in], res_T res[CONFIG_T::n_in])
 
template<class out_T >
out_T nnet::sigmoid_fcn_float (float input)
 
template<class data_T , class res_T , typename CONFIG_T >
void nnet::softmax (data_T data[CONFIG_T::n_in], res_T res[CONFIG_T::n_in])
 
template<class data_T , class res_T , typename CONFIG_T >
void nnet::tanh (data_T data[CONFIG_T::n_in], res_T res[CONFIG_T::n_in])