25 if (
fPt_.get()[i0] == 0) {
26 for (
unsigned i1 = 0;
i1 < 5;
i1++)
46 nnet::compute_layer<input_t, layer1_t, config1>(
data, logits1,
w1,
b1);
47 nnet::relu<layer1_t, layer1_t, relu_config1>(logits1, layer1_out);
51 nnet::compute_layer<layer1_t, layer2_t, config2>(layer1_out, logits2,
w2,
b2);
52 nnet::relu<layer2_t, layer2_t, relu_config2>(logits2, layer2_out);
56 nnet::compute_layer<layer2_t, layer3_t, config3>(layer2_out, logits3,
w3,
b3);
57 nnet::relu<layer3_t, layer3_t, relu_config3>(logits3, layer3_out);
60 nnet::compute_layer<layer3_t, result_t, config4>(layer3_out, logits4,
w4,
b4);
62 nnet::sigmoid<result_t, result_t, sigmoid_config4>(logits4,
res);
91 for (
unsigned int i0 = 0; i0 < iParts.size(); i0++) {
101 lDPhi = lDPhi + lMPI;
102 fPhi_.get()[i0] = lDPhi;
103 fId_.get()[i0] =
id_t(iParts[i0].
id());
result_t compute(const l1t::PFCandidate &iSeed, std::vector< l1t::PFCandidate > &iParts)
common ppss p3p6s2 common epss epspn46 common const1 w2
ap_fixed< 16, 8 > input_t
common ppss p3p6s2 common epss epspn46 common const1 w4
unique_ptr< etaphi_t[]> fPhi_
ap_fixed< 16, 8 > layer2_t
unique_ptr< etaphi_t[]> fEta_
std::vector< input_t > NNvectorVar_
weight_default_t w1[2000]
ap_fixed< 16, 8 > layer3_t
common ppss p3p6s2 common epss epspn46 common const1 w3
char data[epos_bytes_allocation]
ap_fixed< 16, 8 > result_t
void initialize(const std::string &iName, int iNParticles)
ap_fixed< 10, 4 > etaphi_t
double phi() const final
momentum azimuthal angle
ap_fixed< 16, 8 > layer1_t
double eta() const final
momentum pseudorapidity