Namespaces | |
product | |
Classes | |
struct | activ_config |
struct | dense_config |
struct | layer_config |
class | Op_add |
class | Op_and |
class | Op_max |
class | Op_min |
class | Op_or |
Enumerations | |
enum | io_type { io_parallel = 0, io_serial, io_parallel = 0, io_stream } |
enum | io_type { io_parallel = 0, io_serial, io_parallel = 0, io_stream } |
enum | strategy { latency, resource } |
Functions | |
template<class data_T , class res_T , typename CONFIG_T > | |
std::enable_if< std::is_same< data_T, ap_uint< 1 > >::value &&std::is_same< typename CONFIG_T::weight_t, ap_uint< 1 > >::value, ap_int< nnet::ceillog2(CONFIG_T::n_in)+2 > >::type | cast (typename CONFIG_T::accum_t x) |
template<class data_T , class res_T , typename CONFIG_T > | |
std::enable_if< std::is_same< data_T, ap_uint< 1 > >::value &&!std::is_same< typename CONFIG_T::weight_t, ap_uint< 1 > >::value, res_T >::type | cast (typename CONFIG_T::accum_t x) |
template<class data_T , class res_T , typename CONFIG_T > | |
std::enable_if<(!std::is_same< data_T, ap_uint< 1 >>::value), res_T >::type | cast (typename CONFIG_T::accum_t x) |
constexpr int | ceillog2 (int x) |
template<class data_T , class res_T , typename CONFIG_T > | |
void | 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]) |
template<class data_T , class res_T , typename CONFIG_T > | |
void | dense (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]) |
float | exp_fcn_float (float input) |
template<typename CONFIG_T , int N_TABLE> | |
void | init_exp_table (typename CONFIG_T::table_t table_out[N_TABLE]) |
template<typename CONFIG_T , int N_TABLE> | |
void | init_invert_table (typename CONFIG_T::table_t table_out[N_TABLE]) |
template<class res_T , typename CONFIG_T , int N_TABLE> | |
void | init_sigmoid_table (res_T table_out[N_TABLE]) |
template<typename CONFIG_T , int N_TABLE> | |
void | init_tanh_table (typename CONFIG_T::table_t table_out[N_TABLE]) |
template<class data_T , class res_T , typename CONFIG_T > | |
void | 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 | 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 | 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 | 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 | sigmoid (data_T data[CONFIG_T::n_in], res_T res[CONFIG_T::n_in]) |
template<class out_T > | |
out_T | sigmoid_fcn_float (float input) |
template<class data_T , class res_T , typename CONFIG_T > | |
void | 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 | tanh (data_T data[CONFIG_T::n_in], res_T res[CONFIG_T::n_in]) |
enum nnet::io_type |
Enumerator | |
---|---|
io_parallel | |
io_serial | |
io_parallel | |
io_stream |
Definition at line 17 of file nnet_common.h.
enum nnet::io_type |
Enumerator | |
---|---|
io_parallel | |
io_serial | |
io_parallel | |
io_stream |
Definition at line 28 of file nnet_common.h.
enum nnet::strategy |
Enumerator | |
---|---|
latency | |
resource |
Definition at line 18 of file nnet_common.h.
|
inline |
Definition at line 88 of file nnet_mult.h.
References ceillog2(), and x.
Referenced by edm::cmspybind11::readPSetsFrom(), reco::parser::AnyMethodArgumentFixup::retOk_(), and edm::toPython11List().
|
inline |
Definition at line 96 of file nnet_mult.h.
References x.
|
inline |
Definition at line 101 of file nnet_mult.h.
References x.
constexpr int nnet::ceillog2 | ( | int | x | ) |
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] | ||
) |
Definition at line 50 of file nnet_layer.h.
References utilities::cache(), data, DIV_ROUNDUP, cuy::ii, findQualityFiles::jj, PixelBaryCentreAnalyzer_cfg::mult, and hltDeepSecondaryVertexTagInfosPFPuppi_cfi::weights.
void nnet::dense | ( | 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] | ||
) |
Definition at line 33 of file nnet_dense.h.
References utilities::cache(), data, cuy::ii, findQualityFiles::jj, PixelBaryCentreAnalyzer_cfg::mult, svgfig::template(), and hltDeepSecondaryVertexTagInfosPFPuppi_cfi::weights.
|
inline |
Definition at line 134 of file nnet_activation.h.
References JetChargeProducer_cfi::exp, and input.
Referenced by init_exp_table().
void nnet::init_exp_table | ( | typename CONFIG_T::table_t | table_out[N_TABLE] | ) |
Definition at line 137 of file nnet_activation.h.
References exp_fcn_float(), ALCARECOEcalPhiSym_cff::float, cuy::ii, and P2L1HTMHTEmu::N_TABLE.
void nnet::init_invert_table | ( | typename CONFIG_T::table_t | table_out[N_TABLE] | ) |
Definition at line 149 of file nnet_activation.h.
References ALCARECOEcalPhiSym_cff::float, cuy::ii, and P2L1HTMHTEmu::N_TABLE.
void nnet::init_sigmoid_table | ( | res_T | table_out[N_TABLE] | ) |
Definition at line 98 of file nnet_activation.h.
References ALCARECOEcalPhiSym_cff::float, cuy::ii, and P2L1HTMHTEmu::N_TABLE.
void nnet::init_tanh_table | ( | typename CONFIG_T::table_t | table_out[N_TABLE] | ) |
Definition at line 214 of file nnet_activation.h.
References ALCARECOEcalPhiSym_cff::float, cuy::ii, P2L1HTMHTEmu::N_TABLE, and tanh().
void nnet::linear | ( | data_T | data[CONFIG_T::n_in], |
res_T | res[CONFIG_T::n_in] | ||
) |
Definition at line 49 of file nnet_activation.h.
void nnet::relu | ( | data_T | data[CONFIG_T::n_in], |
res_T | res[CONFIG_T::n_in] | ||
) |
Definition at line 59 of file nnet_activation.h.
void nnet::relu6 | ( | data_T | data[CONFIG_T::n_in], |
res_T | res[CONFIG_T::n_in] | ||
) |
void nnet::relu_max | ( | data_T | data[CONFIG_T::n_in], |
res_T | res[CONFIG_T::n_in] | ||
) |
Definition at line 71 of file nnet_activation.h.
void nnet::sigmoid | ( | data_T | data[CONFIG_T::n_in], |
res_T | res[CONFIG_T::n_in] | ||
) |
Definition at line 112 of file nnet_activation.h.
|
inline |
void nnet::softmax | ( | data_T | data[CONFIG_T::n_in], |
res_T | res[CONFIG_T::n_in] | ||
) |
Definition at line 164 of file nnet_activation.h.
References data, cuy::ii, and findQualityFiles::jj.
void nnet::tanh | ( | data_T | data[CONFIG_T::n_in], |
res_T | res[CONFIG_T::n_in] | ||
) |
Definition at line 227 of file nnet_activation.h.
Referenced by ZCountingElectrons::analyze(), HcalGeomCheck::analyze(), CSCGattiFunction::binValue(), HFRecoEcalCandidateAlgo::correctEPosition(), MaterialBudgetMtdHistos::fillEndTrack(), HcalHardcodeGeometryLoader::fillHE(), HcalFlexiHardcodeGeometryLoader::fillHE(), GflashHadronShowerProfile::fTanh(), FWExpressionValidator::FWExpressionValidator(), PythiaFilterIsolatedTrack::getDistInCM(), spr::getDistInCMatEcal(), spr::getDistInCMatHcal(), IsoTrig::getGoodTracks(), HFGflash::gfParameterization(), init_tanh_table(), reco::HcalIsolatedTrackCandidate::l1jetp(), CaloTowerHardcodeGeometryLoader::makeCell(), SiPixelDigitizerAlgorithm::missCalibrate(), reco::parser::tanh_f::operator()(), HFRecoEcalCandidateAlgo::produce(), L2MuonSeedGeneratorFromL1TkMu::produce(), CaloDualConeSelector< T >::selectCallback(), CaloConeSelector< T >::selectCallback(), GflashShowino::simulateFirstInteractionPoint(), QGLikelihoodCalculator::smearingFunction(), reco::isodeposit::Direction::theta(), and pat::PackedGenParticle::unpack().