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,
20 
21 
22  void db_tensor_filler(tensorflow::Tensor & tensor,
23  std::size_t jet_n,
25 
26  void c_pf_tensor_filler(tensorflow::Tensor & tensor,
27  std::size_t jet_n,
28  std::size_t c_pf_n,
29  const btagbtvdeep::ChargedCandidateFeatures & c_pf_features);
30 
31 
32  void c_pf_reduced_tensor_filler(tensorflow::Tensor & tensor,
33  std::size_t jet_n,
34  std::size_t c_pf_n,
35  const btagbtvdeep::ChargedCandidateFeatures & c_pf_features);
36 
37 
38  void n_pf_tensor_filler(tensorflow::Tensor & tensor,
39  std::size_t jet_n,
40  std::size_t n_pf_n,
41  const btagbtvdeep::NeutralCandidateFeatures & n_pf_features) ;
42 
43 
44  void sv_tensor_filler(tensorflow::Tensor & tensor,
45  std::size_t jet_n,
46  std::size_t sv_n,
47  const btagbtvdeep::SecondaryVertexFeatures & sv_features) ;
48 
49 
50  void sv_reduced_tensor_filler(tensorflow::Tensor & tensor,
51  std::size_t jet_n,
52  std::size_t sv_n,
53  const btagbtvdeep::SecondaryVertexFeatures & sv_features) ;
54 
55 }
56 
57 #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)