Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
TMVA::Experimental::SOFIE::ROperator_BasicNary< T, Op > Class Template Referencefinal

template<typename T, EBasicNaryOperator Op>
class TMVA::Experimental::SOFIE::ROperator_BasicNary< T, Op >

Definition at line 81 of file ROperator_BasicNary.hxx.

Public Member Functions

 ROperator_BasicNary ()
 ROperator_BasicNary (const std::vector< std::string > &inputNames, const std::string &nameY)
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
std::vector< std::string > GetStdLibs () override
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
std::vector< std::vector< size_t > > ShapeInference (std::vector< std::vector< size_t > > input) override
std::vector< ETensorTypeTypeInference (std::vector< ETensorType > input) override

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 knwon at compile time)
std::vector< std::string_view > fOutputTensorNames
bool fUseSession = false
 flag to identify if using the session class
const std::string SP = " "
 space used to correctly indent the generated C++ code

Private Attributes

bool fBroadcast = false
std::vector< DimfDimShapeY
std::vector< std::string > fNBroadcastedInputs
std::vector< std::string > fNInputs
std::string fNY
std::vector< std::vector< Dim > > fShapeInputs
std::vector< size_t > fShapeY
std::string fType

#include <TMVA/ROperator_BasicNary.hxx>

Inheritance diagram for TMVA::Experimental::SOFIE::ROperator_BasicNary< T, Op >:
TMVA::Experimental::SOFIE::ROperator

Constructor & Destructor Documentation

◆ ROperator_BasicNary() [1/2]

template<typename T, EBasicNaryOperator Op>
TMVA::Experimental::SOFIE::ROperator_BasicNary< T, Op >::ROperator_BasicNary ( )
inline

Definition at line 99 of file ROperator_BasicNary.hxx.

◆ ROperator_BasicNary() [2/2]

template<typename T, EBasicNaryOperator Op>
TMVA::Experimental::SOFIE::ROperator_BasicNary< T, Op >::ROperator_BasicNary ( const std::vector< std::string > & inputNames,
const std::string & nameY )
inline

Definition at line 101 of file ROperator_BasicNary.hxx.

Member Function Documentation

◆ Generate()

template<typename T, EBasicNaryOperator Op>
std::string TMVA::Experimental::SOFIE::ROperator_BasicNary< T, Op >::Generate ( std::string OpName)
inlineoverridevirtual

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

Definition at line 203 of file ROperator_BasicNary.hxx.

◆ GenerateDeclCode()

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

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

Definition at line 31 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 54 of file ROperator.hxx.

◆ GetOpOutputTensors()

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

Definition at line 58 of file ROperator.hxx.

◆ GetStdLibs()

template<typename T, EBasicNaryOperator Op>
std::vector< std::string > TMVA::Experimental::SOFIE::ROperator_BasicNary< T, Op >::GetStdLibs ( )
inlineoverridevirtual

Reimplemented from TMVA::Experimental::SOFIE::ROperator.

Definition at line 287 of file ROperator_BasicNary.hxx.

◆ Header()

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

Definition at line 34 of file ROperator.hxx.

◆ Initialize()

template<typename T, EBasicNaryOperator Op>
void TMVA::Experimental::SOFIE::ROperator_BasicNary< T, Op >::Initialize ( RModel & model)
inlineoverridevirtual

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

Definition at line 124 of file ROperator_BasicNary.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 37 of file ROperator.hxx.

◆ ShapeInference()

template<typename T, EBasicNaryOperator Op>
std::vector< std::vector< size_t > > TMVA::Experimental::SOFIE::ROperator_BasicNary< T, Op >::ShapeInference ( std::vector< std::vector< size_t > > input)
inlineoverridevirtual

Reimplemented from TMVA::Experimental::SOFIE::ROperator.

Definition at line 119 of file ROperator_BasicNary.hxx.

◆ TypeInference()

template<typename T, EBasicNaryOperator Op>
std::vector< ETensorType > TMVA::Experimental::SOFIE::ROperator_BasicNary< T, Op >::TypeInference ( std::vector< ETensorType > input)
inlineoverridevirtual

Reimplemented from TMVA::Experimental::SOFIE::ROperator.

Definition at line 114 of file ROperator_BasicNary.hxx.

Member Data Documentation

◆ fBroadcast

template<typename T, EBasicNaryOperator Op>
bool TMVA::Experimental::SOFIE::ROperator_BasicNary< T, Op >::fBroadcast = false
private

Definition at line 94 of file ROperator_BasicNary.hxx.

◆ fDimShapeY

template<typename T, EBasicNaryOperator Op>
std::vector<Dim> TMVA::Experimental::SOFIE::ROperator_BasicNary< T, Op >::fDimShapeY
private

Definition at line 92 of file ROperator_BasicNary.hxx.

◆ fInputTensorNames

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

Definition at line 50 of file ROperator.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 47 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 knwon at compile time)

Definition at line 48 of file ROperator.hxx.

◆ fNBroadcastedInputs

template<typename T, EBasicNaryOperator Op>
std::vector<std::string> TMVA::Experimental::SOFIE::ROperator_BasicNary< T, Op >::fNBroadcastedInputs
private

Definition at line 90 of file ROperator_BasicNary.hxx.

◆ fNInputs

template<typename T, EBasicNaryOperator Op>
std::vector<std::string> TMVA::Experimental::SOFIE::ROperator_BasicNary< T, Op >::fNInputs
private

Definition at line 86 of file ROperator_BasicNary.hxx.

◆ fNY

template<typename T, EBasicNaryOperator Op>
std::string TMVA::Experimental::SOFIE::ROperator_BasicNary< T, Op >::fNY
private

Definition at line 87 of file ROperator_BasicNary.hxx.

◆ fOutputTensorNames

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

Definition at line 51 of file ROperator.hxx.

◆ fShapeInputs

template<typename T, EBasicNaryOperator Op>
std::vector<std::vector<Dim> > TMVA::Experimental::SOFIE::ROperator_BasicNary< T, Op >::fShapeInputs
private

Definition at line 88 of file ROperator_BasicNary.hxx.

◆ fShapeY

template<typename T, EBasicNaryOperator Op>
std::vector<size_t> TMVA::Experimental::SOFIE::ROperator_BasicNary< T, Op >::fShapeY
private

Definition at line 91 of file ROperator_BasicNary.hxx.

◆ fType

template<typename T, EBasicNaryOperator Op>
std::string TMVA::Experimental::SOFIE::ROperator_BasicNary< T, Op >::fType
private

Definition at line 96 of file ROperator_BasicNary.hxx.

◆ fUseSession

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

flag to identify if using the session class

Definition at line 46 of file ROperator.hxx.

◆ SP

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

space used to correctly indent the generated C++ code

Definition at line 45 of file ROperator.hxx.


The documentation for this class was generated from the following file: