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

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

Definition at line 17 of file ROperator_BatchNormalization.hxx.

Public Member Functions

 ROperator_BatchNormalization ()=delete
 ROperator_BatchNormalization (float epsilon, float momentum, std::size_t training_mode, std::string nameX, std::string nameScale, std::string nameB, std::string nameMean, std::string nameVar, std::string nameY, EActivationType activation=EActivationType::UNDEFINED)
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 fepsilon = 1e-05
float fmomentum = 0.9
std::string fNB
std::string fNFusedScale
std::string fNMean
std::string fNScale
std::string fNVar
std::string fNX
std::string fNY
std::vector< DimfShapeX
std::vector< DimfShapeY
std::size_t ftraining_mode = 0
std::string fType

#include <TMVA/ROperator_BatchNormalization.hxx>

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

Constructor & Destructor Documentation

◆ ROperator_BatchNormalization() [1/2]

template<typename T>
TMVA::Experimental::SOFIE::ROperator_BatchNormalization< T >::ROperator_BatchNormalization ( )
delete

◆ ROperator_BatchNormalization() [2/2]

template<typename T>
TMVA::Experimental::SOFIE::ROperator_BatchNormalization< T >::ROperator_BatchNormalization ( float epsilon,
float momentum,
std::size_t training_mode,
std::string nameX,
std::string nameScale,
std::string nameB,
std::string nameMean,
std::string nameVar,
std::string nameY,
EActivationType activation = EActivationType::UNDEFINED )
inline

Definition at line 45 of file ROperator_BatchNormalization.hxx.

Member Function Documentation

◆ Generate()

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

◆ 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_BatchNormalization< T >::GetBlasRoutines ( )
inlineoverridevirtual

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

Definition at line 186 of file ROperator_BatchNormalization.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_BatchNormalization< T >::Initialize ( RModel & model)
inlineoverridevirtual

◆ 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_BatchNormalization< T >::ShapeInference ( std::vector< std::vector< size_t > > input)
inlineoverridevirtual

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

Definition at line 72 of file ROperator_BatchNormalization.hxx.

◆ TypeInference()

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

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

Definition at line 67 of file ROperator_BatchNormalization.hxx.

Member Data Documentation

◆ fActivation

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

Definition at line 33 of file ROperator_BatchNormalization.hxx.

◆ fepsilon

template<typename T>
float TMVA::Experimental::SOFIE::ROperator_BatchNormalization< T >::fepsilon = 1e-05
private

Definition at line 23 of file ROperator_BatchNormalization.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.

◆ fmomentum

template<typename T>
float TMVA::Experimental::SOFIE::ROperator_BatchNormalization< T >::fmomentum = 0.9
private

Definition at line 24 of file ROperator_BatchNormalization.hxx.

◆ fNB

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

Definition at line 29 of file ROperator_BatchNormalization.hxx.

◆ fNFusedScale

template<typename T>
std::string TMVA::Experimental::SOFIE::ROperator_BatchNormalization< T >::fNFusedScale
private

Definition at line 34 of file ROperator_BatchNormalization.hxx.

◆ fNMean

template<typename T>
std::string TMVA::Experimental::SOFIE::ROperator_BatchNormalization< T >::fNMean
private

Definition at line 30 of file ROperator_BatchNormalization.hxx.

◆ fNScale

template<typename T>
std::string TMVA::Experimental::SOFIE::ROperator_BatchNormalization< T >::fNScale
private

Definition at line 28 of file ROperator_BatchNormalization.hxx.

◆ fNVar

template<typename T>
std::string TMVA::Experimental::SOFIE::ROperator_BatchNormalization< T >::fNVar
private

Definition at line 31 of file ROperator_BatchNormalization.hxx.

◆ fNX

template<typename T>
std::string TMVA::Experimental::SOFIE::ROperator_BatchNormalization< T >::fNX
private

Definition at line 27 of file ROperator_BatchNormalization.hxx.

◆ fNY

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

Definition at line 32 of file ROperator_BatchNormalization.hxx.

◆ fOutputTensorNames

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

Definition at line 51 of file ROperator.hxx.

◆ fShapeX

template<typename T>
std::vector<Dim> TMVA::Experimental::SOFIE::ROperator_BatchNormalization< T >::fShapeX
private

Definition at line 36 of file ROperator_BatchNormalization.hxx.

◆ fShapeY

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

Definition at line 37 of file ROperator_BatchNormalization.hxx.

◆ ftraining_mode

template<typename T>
std::size_t TMVA::Experimental::SOFIE::ROperator_BatchNormalization< T >::ftraining_mode = 0
private

Definition at line 25 of file ROperator_BatchNormalization.hxx.

◆ fType

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

Definition at line 39 of file ROperator_BatchNormalization.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: