CMS 3D CMS Logo

tensor_fillers.h
Go to the documentation of this file.
1 #ifndef RecoBTag_TensorFlow_tensor_fillers_h
2 #define RecoBTag_TensorFlow_tensor_fillers_h
3 
7 
8 namespace btagbtvdeep {
9 
10  // Note on setting tensor values:
11  // Instead of using the more convenient tensor.matrix (etc) methods,
12  // we can exploit that in the following methods values are set along
13  // the innermost (= last) axis. Those values are stored contiguously in
14  // the memory, so it is most performant to get the pointer to the first
15  // value and use pointer arithmetic to iterate through the next pointers.
16 
17  void jet_tensor_filler(tensorflow::Tensor & tensor,
18  std::size_t jet_n,
19  const btagbtvdeep::DeepFlavourFeatures & features) ;
20 
21 
22  void db_tensor_filler(tensorflow::Tensor & tensor,
23  std::size_t jet_n,
24  const btagbtvdeep::DeepDoubleXFeatures & features) ;
25 
26 
27  void c_pf_tensor_filler(tensorflow::Tensor & tensor,
28  std::size_t jet_n,
29  std::size_t c_pf_n,
30  const btagbtvdeep::ChargedCandidateFeatures & c_pf_features);
31 
32 
33  void c_pf_reduced_tensor_filler(tensorflow::Tensor & tensor,
34  std::size_t jet_n,
35  std::size_t c_pf_n,
36  const btagbtvdeep::ChargedCandidateFeatures & c_pf_features);
37 
38 
39  void n_pf_tensor_filler(tensorflow::Tensor & tensor,
40  std::size_t jet_n,
41  std::size_t n_pf_n,
42  const btagbtvdeep::NeutralCandidateFeatures & n_pf_features) ;
43 
44 
45  void sv_tensor_filler(tensorflow::Tensor & tensor,
46  std::size_t jet_n,
47  std::size_t sv_n,
49 
50 
51  void sv_reduced_tensor_filler(tensorflow::Tensor & tensor,
52  std::size_t jet_n,
53  std::size_t sv_n,
55 
56 }
57 
58 #endif
void c_pf_tensor_filler(tensorflow::Tensor &tensor, std::size_t jet_n, std::size_t c_pf_n, const btagbtvdeep::ChargedCandidateFeatures &c_pf_features)
void db_tensor_filler(tensorflow::Tensor &tensor, std::size_t jet_n, const btagbtvdeep::DeepDoubleXFeatures &features)
void n_pf_tensor_filler(tensorflow::Tensor &tensor, std::size_t jet_n, std::size_t n_pf_n, const btagbtvdeep::NeutralCandidateFeatures &n_pf_features)
void jet_tensor_filler(tensorflow::Tensor &tensor, std::size_t jet_n, const btagbtvdeep::DeepFlavourFeatures &features)
void c_pf_reduced_tensor_filler(tensorflow::Tensor &tensor, std::size_t jet_n, std::size_t c_pf_n, const btagbtvdeep::ChargedCandidateFeatures &c_pf_features)
void sv_tensor_filler(tensorflow::Tensor &tensor, std::size_t jet_n, std::size_t sv_n, const btagbtvdeep::SecondaryVertexFeatures &sv_features)
void sv_reduced_tensor_filler(tensorflow::Tensor &tensor, std::size_t jet_n, std::size_t sv_n, const btagbtvdeep::SecondaryVertexFeatures &sv_features)