Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TMVA::Experimental::SOFIE::ROperator_Slice< IType > Class Template Referencefinal

template<typename IType>
class TMVA::Experimental::SOFIE::ROperator_Slice< IType >

Definition at line 19 of file ROperator_Slice.hxx.

Public Member Functions

 ROperator_Slice ()
 
 ROperator_Slice (std::string nameData, std::vector< IType > starts, std::vector< IType > ends, std::vector< IType > axes, std::string nameOutput)
 
 ROperator_Slice (std::string nameData, std::vector< std::string > names, std::string nameOutput)
 
std::string Generate (std::string opName) override
 
virtual std::string GenerateDeclCode ()
 
virtual std::string GenerateInitCode ()
 
virtual std::string GenerateSessionMembersCode (std::string)
 
virtual std::vector< std::string > GetBlasRoutines ()
 
std::span< const std::string_view > GetOpInputTensors () const
 
std::span< const std::string_view > GetOpOutputTensors () const
 
virtual std::vector< std::string > GetStdLibs ()
 
virtual std::string Header ()
 
void Initialize (RModel &model) override
 
bool IsOutputConstant () const
 check if the output of the operator is Constant and is evaluated at initialization time
 

Protected Attributes

std::vector< std::string_view > fInputTensorNames
 
bool fIsOutputConstant = false
 flag to identify if operator has a constant output (no need to generate code)
 
bool fIsOutputParamShape = false
 flag to identify of the output represents a parametric shape (can be known at compile time)
 
std::vector< std::string_view > fOutputTensorNames
 
const std::string SP = " "
 space used to correctly indent the generated C++ code
 

Private Attributes

std::vector< std::vector< IType > > fAttributes
 
std::vector< IType > fAxes
 
std::vector< Dim > fEnd
 
std::vector< Dim > fEndDims
 
bool fIdentitySlice = false
 
bool fIsAlias = false
 
bool fIsEndUndef = false
 
bool fIsStartUndef = false
 
bool fIsStepUndef = false
 
std::vector< std::string > fNames
 
std::string fNData
 
std::string fNOutput
 
std::vector< Dim > fOutputShapeData
 
std::vector< Dim > fShapeInput
 
std::vector< Dim > fShapeOutput
 
std::vector< Dim > fStart
 
std::vector< Dim > fStartDims
 
std::vector< Dim > fStepDims
 
std::vector< Dim > fSteps
 

#include <TMVA/ROperator_Slice.hxx>

Inheritance diagram for TMVA::Experimental::SOFIE::ROperator_Slice< IType >:
[legend]

Constructor & Destructor Documentation

◆ ROperator_Slice() [1/3]

template<typename IType >
TMVA::Experimental::SOFIE::ROperator_Slice< IType >::ROperator_Slice ( )
inline

Definition at line 52 of file ROperator_Slice.hxx.

◆ ROperator_Slice() [2/3]

template<typename IType >
TMVA::Experimental::SOFIE::ROperator_Slice< IType >::ROperator_Slice ( std::string nameData,
std::vector< std::string > names,
std::string nameOutput )
inline

Definition at line 55 of file ROperator_Slice.hxx.

◆ ROperator_Slice() [3/3]

template<typename IType >
TMVA::Experimental::SOFIE::ROperator_Slice< IType >::ROperator_Slice ( std::string nameData,
std::vector< IType > starts,
std::vector< IType > ends,
std::vector< IType > axes,
std::string nameOutput )
inline

Definition at line 69 of file ROperator_Slice.hxx.

Member Function Documentation

◆ Generate()

template<typename IType >
std::string TMVA::Experimental::SOFIE::ROperator_Slice< IType >::Generate ( std::string opName)
inlineoverridevirtual

Implements TMVA::Experimental::SOFIE::ROperator.

Definition at line 387 of file ROperator_Slice.hxx.

◆ GenerateDeclCode()

virtual std::string TMVA::Experimental::SOFIE::ROperator::GenerateDeclCode ( )
inlinevirtualinherited

Reimplemented in TMVA::Experimental::SOFIE::ROperator_Random.

Definition at line 26 of file ROperator.hxx.

◆ GenerateInitCode()

◆ GenerateSessionMembersCode()

virtual std::string TMVA::Experimental::SOFIE::ROperator::GenerateSessionMembersCode ( std::string )
inlinevirtualinherited

◆ GetBlasRoutines()

◆ GetOpInputTensors()

std::span< const std::string_view > TMVA::Experimental::SOFIE::ROperator::GetOpInputTensors ( ) const
inlineinherited

Definition at line 48 of file ROperator.hxx.

◆ GetOpOutputTensors()

std::span< const std::string_view > TMVA::Experimental::SOFIE::ROperator::GetOpOutputTensors ( ) const
inlineinherited

Definition at line 52 of file ROperator.hxx.

◆ GetStdLibs()

◆ Header()

virtual std::string TMVA::Experimental::SOFIE::ROperator::Header ( )
inlinevirtualinherited

Definition at line 29 of file ROperator.hxx.

◆ Initialize()

template<typename IType >
void TMVA::Experimental::SOFIE::ROperator_Slice< IType >::Initialize ( RModel & model)
inlineoverridevirtual

Implements TMVA::Experimental::SOFIE::ROperator.

Definition at line 80 of file ROperator_Slice.hxx.

◆ IsOutputConstant()

bool TMVA::Experimental::SOFIE::ROperator::IsOutputConstant ( ) const
inlineinherited

check if the output of the operator is Constant and is evaluated at initialization time

Definition at line 32 of file ROperator.hxx.

Member Data Documentation

◆ fAttributes

template<typename IType >
std::vector<std::vector<IType> > TMVA::Experimental::SOFIE::ROperator_Slice< IType >::fAttributes
private

Definition at line 47 of file ROperator_Slice.hxx.

◆ fAxes

template<typename IType >
std::vector<IType> TMVA::Experimental::SOFIE::ROperator_Slice< IType >::fAxes
private

Definition at line 45 of file ROperator_Slice.hxx.

◆ fEnd

template<typename IType >
std::vector<Dim> TMVA::Experimental::SOFIE::ROperator_Slice< IType >::fEnd
private

Definition at line 40 of file ROperator_Slice.hxx.

◆ fEndDims

template<typename IType >
std::vector<Dim> TMVA::Experimental::SOFIE::ROperator_Slice< IType >::fEndDims
private

Definition at line 43 of file ROperator_Slice.hxx.

◆ fIdentitySlice

template<typename IType >
bool TMVA::Experimental::SOFIE::ROperator_Slice< IType >::fIdentitySlice = false
private

Definition at line 28 of file ROperator_Slice.hxx.

◆ fInputTensorNames

std::vector<std::string_view> TMVA::Experimental::SOFIE::ROperator::fInputTensorNames
mutableprotectedinherited

Definition at line 44 of file ROperator.hxx.

◆ fIsAlias

Definition at line 29 of file ROperator_Slice.hxx.

◆ fIsEndUndef

Definition at line 26 of file ROperator_Slice.hxx.

◆ fIsOutputConstant

bool TMVA::Experimental::SOFIE::ROperator::fIsOutputConstant = false
protectedinherited

flag to identify if operator has a constant output (no need to generate code)

Definition at line 41 of file ROperator.hxx.

◆ fIsOutputParamShape

bool TMVA::Experimental::SOFIE::ROperator::fIsOutputParamShape = false
protectedinherited

flag to identify of the output represents a parametric shape (can be known at compile time)

Definition at line 42 of file ROperator.hxx.

◆ fIsStartUndef

template<typename IType >
bool TMVA::Experimental::SOFIE::ROperator_Slice< IType >::fIsStartUndef = false
private

Definition at line 25 of file ROperator_Slice.hxx.

◆ fIsStepUndef

Definition at line 27 of file ROperator_Slice.hxx.

◆ fNames

template<typename IType >
std::vector<std::string> TMVA::Experimental::SOFIE::ROperator_Slice< IType >::fNames
private

Definition at line 32 of file ROperator_Slice.hxx.

◆ fNData

template<typename IType >
std::string TMVA::Experimental::SOFIE::ROperator_Slice< IType >::fNData
private

Definition at line 30 of file ROperator_Slice.hxx.

◆ fNOutput

template<typename IType >
std::string TMVA::Experimental::SOFIE::ROperator_Slice< IType >::fNOutput
private

Definition at line 31 of file ROperator_Slice.hxx.

◆ fOutputShapeData

template<typename IType >
std::vector<Dim> TMVA::Experimental::SOFIE::ROperator_Slice< IType >::fOutputShapeData
private

Definition at line 35 of file ROperator_Slice.hxx.

◆ fOutputTensorNames

std::vector<std::string_view> TMVA::Experimental::SOFIE::ROperator::fOutputTensorNames
mutableprotectedinherited

Definition at line 45 of file ROperator.hxx.

◆ fShapeInput

template<typename IType >
std::vector<Dim> TMVA::Experimental::SOFIE::ROperator_Slice< IType >::fShapeInput
private

Definition at line 33 of file ROperator_Slice.hxx.

◆ fShapeOutput

template<typename IType >
std::vector<Dim> TMVA::Experimental::SOFIE::ROperator_Slice< IType >::fShapeOutput
private

Definition at line 34 of file ROperator_Slice.hxx.

◆ fStart

template<typename IType >
std::vector<Dim> TMVA::Experimental::SOFIE::ROperator_Slice< IType >::fStart
private

Definition at line 39 of file ROperator_Slice.hxx.

◆ fStartDims

template<typename IType >
std::vector<Dim> TMVA::Experimental::SOFIE::ROperator_Slice< IType >::fStartDims
private

Definition at line 42 of file ROperator_Slice.hxx.

◆ fStepDims

template<typename IType >
std::vector<Dim> TMVA::Experimental::SOFIE::ROperator_Slice< IType >::fStepDims
private

Definition at line 44 of file ROperator_Slice.hxx.

◆ fSteps

template<typename IType >
std::vector<Dim> TMVA::Experimental::SOFIE::ROperator_Slice< IType >::fSteps
private

Definition at line 41 of file ROperator_Slice.hxx.

◆ SP

const std::string TMVA::Experimental::SOFIE::ROperator::SP = " "
protectedinherited

space used to correctly indent the generated C++ code

Definition at line 40 of file ROperator.hxx.

  • tmva/sofie/inc/TMVA/ROperator_Slice.hxx