1#ifndef TMVA_SOFIE_SOFIE_HELPERS
2#define TMVA_SOFIE_SOFIE_HELPERS
16template <
typename I,
typename F,
typename T>
19template <std::size_t...
N,
typename Session_t,
typename T>
22 template <std::
size_t Idx>
25 std::vector<std::vector<T>> fInput;
26 std::vector<Session_t> fSessions;
35 if (nslots < 1) nslots = 1;
36 fInput.resize(nslots);
37 fSessions.reserve(nslots);
38 for (
unsigned int i = 0; i < nslots; i++) {
40 fSessions.emplace_back();
42 fSessions.emplace_back(filename);
46 double operator()(
unsigned slot, AlwaysT<N>... args) {
47 fInput[slot] = {args...};
48 auto y = fSessions[slot].infer(fInput[slot].data());
63template <std::
size_t N,
typename Session_t>
TRObject operator()(const T1 &t1) const
Helper class used by SOFIEFunctor to wrap the infer signature interface to RDataFrame.
auto SofieFunctor(unsigned int nslots=0, const std::string &weightsFile="") -> SofieFunctorHelper< std::make_index_sequence< N >, Session_t, float >
SofieFunctor : used to wrap the infer function of the generated model by SOFIE in a RDF compatible si...
create variable transformations