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

template<typename T>
class TMVA::Experimental::SOFIE::ROperator_Gemm< T >

Definition at line 22 of file ROperator_Gemm.hxx.

Public Member Functions

 ROperator_Gemm ()
 ROperator_Gemm (float alpha, float beta, int_t transA, int_t transB, std::string nameA, std::string nameB, std::string nameC, std::string nameY, EActivationType activation=EActivationType::UNDEFINED)
 ROperator_Gemm (float alpha, float beta, int_t transA, int_t transB, std::string nameA, std::string nameB, std::string nameY, EActivationType activation=EActivationType::UNDEFINED)
template<typename U>
std::vector< U > DoShapeInference (const std::vector< std::vector< U > > &input)
std::vector< DimDynamicShapeInference (const std::vector< std::vector< Dim > > &input)
std::string Generate (std::string opName) override
virtual std::string GenerateDeclCode ()
virtual std::string GenerateInitCode ()
virtual std::string GenerateSessionMembersCode (std::string)
std::vector< std::string > GetBlasRoutines () override
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
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

EActivationType fActivation
float fAttrAlpha = 1.0
float fAttrBeta = 1.0
int_t fAttrTransA = 0
int_t fAttrTransB = 0
bool fBroadcastBias = false
std::vector< DimfDimShapeC
bool fIsDynamic = false
RModelfModel = nullptr
std::string fNA
std::string fNB
std::string fNC = ""
std::string fNY
std::vector< DimfShapeA
std::vector< DimfShapeB
std::vector< size_t > fShapeC
std::vector< DimfShapeY
std::string fType

#include <TMVA/ROperator_Gemm.hxx>

Inheritance diagram for TMVA::Experimental::SOFIE::ROperator_Gemm< T >:
TMVA::Experimental::SOFIE::ROperator

Constructor & Destructor Documentation

◆ ROperator_Gemm() [1/3]

template<typename T>
TMVA::Experimental::SOFIE::ROperator_Gemm< T >::ROperator_Gemm ( )
inline

Definition at line 49 of file ROperator_Gemm.hxx.

◆ ROperator_Gemm() [2/3]

template<typename T>
TMVA::Experimental::SOFIE::ROperator_Gemm< T >::ROperator_Gemm ( float alpha,
float beta,
int_t transA,
int_t transB,
std::string nameA,
std::string nameB,
std::string nameY,
EActivationType activation = EActivationType::UNDEFINED )
inline

Definition at line 50 of file ROperator_Gemm.hxx.

◆ ROperator_Gemm() [3/3]

template<typename T>
TMVA::Experimental::SOFIE::ROperator_Gemm< T >::ROperator_Gemm ( float alpha,
float beta,
int_t transA,
int_t transB,
std::string nameA,
std::string nameB,
std::string nameC,
std::string nameY,
EActivationType activation = EActivationType::UNDEFINED )
inline

Definition at line 62 of file ROperator_Gemm.hxx.

Member Function Documentation

◆ DoShapeInference()

template<typename T>
template<typename U>
std::vector< U > TMVA::Experimental::SOFIE::ROperator_Gemm< T >::DoShapeInference ( const std::vector< std::vector< U > > & input)
inline

Definition at line 79 of file ROperator_Gemm.hxx.

◆ DynamicShapeInference()

template<typename T>
std::vector< Dim > TMVA::Experimental::SOFIE::ROperator_Gemm< T >::DynamicShapeInference ( const std::vector< std::vector< Dim > > & input)
inline

Definition at line 154 of file ROperator_Gemm.hxx.

◆ Generate()

template<typename T>
std::string TMVA::Experimental::SOFIE::ROperator_Gemm< T >::Generate ( std::string opName)
inlineoverridevirtual

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

Definition at line 273 of file ROperator_Gemm.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()

template<typename T>
std::vector< std::string > TMVA::Experimental::SOFIE::ROperator_Gemm< T >::GetBlasRoutines ( )
inlineoverridevirtual

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

Definition at line 467 of file ROperator_Gemm.hxx.

◆ 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()

◆ Header()

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

Definition at line 34 of file ROperator.hxx.

◆ Initialize()

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

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

Definition at line 160 of file ROperator_Gemm.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>
std::vector< std::vector< size_t > > TMVA::Experimental::SOFIE::ROperator_Gemm< T >::ShapeInference ( std::vector< std::vector< size_t > > input)
inlineoverridevirtual

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

Definition at line 149 of file ROperator_Gemm.hxx.

◆ TypeInference()

template<typename T>
std::vector< ETensorType > TMVA::Experimental::SOFIE::ROperator_Gemm< T >::TypeInference ( std::vector< ETensorType > input)
inlineoverridevirtual

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

Definition at line 73 of file ROperator_Gemm.hxx.

Member Data Documentation

◆ fActivation

template<typename T>
EActivationType TMVA::Experimental::SOFIE::ROperator_Gemm< T >::fActivation
private

Definition at line 39 of file ROperator_Gemm.hxx.

◆ fAttrAlpha

template<typename T>
float TMVA::Experimental::SOFIE::ROperator_Gemm< T >::fAttrAlpha = 1.0
private

Definition at line 29 of file ROperator_Gemm.hxx.

◆ fAttrBeta

template<typename T>
float TMVA::Experimental::SOFIE::ROperator_Gemm< T >::fAttrBeta = 1.0
private

Definition at line 30 of file ROperator_Gemm.hxx.

◆ fAttrTransA

template<typename T>
int_t TMVA::Experimental::SOFIE::ROperator_Gemm< T >::fAttrTransA = 0
private

Definition at line 31 of file ROperator_Gemm.hxx.

◆ fAttrTransB

template<typename T>
int_t TMVA::Experimental::SOFIE::ROperator_Gemm< T >::fAttrTransB = 0
private

Definition at line 32 of file ROperator_Gemm.hxx.

◆ fBroadcastBias

template<typename T>
bool TMVA::Experimental::SOFIE::ROperator_Gemm< T >::fBroadcastBias = false
private

Definition at line 27 of file ROperator_Gemm.hxx.

◆ fDimShapeC

template<typename T>
std::vector<Dim> TMVA::Experimental::SOFIE::ROperator_Gemm< T >::fDimShapeC
private

Definition at line 43 of file ROperator_Gemm.hxx.

◆ fInputTensorNames

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

Definition at line 50 of file ROperator.hxx.

◆ fIsDynamic

template<typename T>
bool TMVA::Experimental::SOFIE::ROperator_Gemm< T >::fIsDynamic = false
private

Definition at line 26 of file ROperator_Gemm.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.

◆ fModel

template<typename T>
RModel* TMVA::Experimental::SOFIE::ROperator_Gemm< T >::fModel = nullptr
private

Definition at line 45 of file ROperator_Gemm.hxx.

◆ fNA

template<typename T>
std::string TMVA::Experimental::SOFIE::ROperator_Gemm< T >::fNA
private

Definition at line 34 of file ROperator_Gemm.hxx.

◆ fNB

template<typename T>
std::string TMVA::Experimental::SOFIE::ROperator_Gemm< T >::fNB
private

Definition at line 35 of file ROperator_Gemm.hxx.

◆ fNC

template<typename T>
std::string TMVA::Experimental::SOFIE::ROperator_Gemm< T >::fNC = ""
private

Definition at line 36 of file ROperator_Gemm.hxx.

◆ fNY

template<typename T>
std::string TMVA::Experimental::SOFIE::ROperator_Gemm< T >::fNY
private

Definition at line 37 of file ROperator_Gemm.hxx.

◆ fOutputTensorNames

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

Definition at line 51 of file ROperator.hxx.

◆ fShapeA

template<typename T>
std::vector<Dim> TMVA::Experimental::SOFIE::ROperator_Gemm< T >::fShapeA
private

Definition at line 40 of file ROperator_Gemm.hxx.

◆ fShapeB

template<typename T>
std::vector<Dim> TMVA::Experimental::SOFIE::ROperator_Gemm< T >::fShapeB
private

Definition at line 41 of file ROperator_Gemm.hxx.

◆ fShapeC

template<typename T>
std::vector<size_t> TMVA::Experimental::SOFIE::ROperator_Gemm< T >::fShapeC
private

Definition at line 42 of file ROperator_Gemm.hxx.

◆ fShapeY

template<typename T>
std::vector<Dim> TMVA::Experimental::SOFIE::ROperator_Gemm< T >::fShapeY
private

Definition at line 44 of file ROperator_Gemm.hxx.

◆ fType

template<typename T>
std::string TMVA::Experimental::SOFIE::ROperator_Gemm< T >::fType
private

Definition at line 38 of file ROperator_Gemm.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: