Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
TMVA::Experimental::SOFIE::ROperator_Random Class Referencefinal

Definition at line 18 of file ROperator_Random.hxx.

Public Member Functions

 ROperator_Random ()
 ROperator_Random (RandomOpMode mode, ETensorType type, const std::string &nameX, const std::string &nameY, const std::vector< size_t > &shape, const std::map< std::string, float > &params, float seed)
std::string Generate (std::string OpName) override
std::string GenerateDeclCode () override
std::string GenerateInitCode () override
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

Public Attributes

bool fUseROOT = true

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

RandomOpMode fMode
std::string fNX
std::string fNY
std::map< std::string, float > fParams
int fSeed
std::vector< size_t > fShapeY
ETensorType fType

#include <TMVA/ROperator_Random.hxx>

Inheritance diagram for TMVA::Experimental::SOFIE::ROperator_Random:
TMVA::Experimental::SOFIE::ROperator

Constructor & Destructor Documentation

◆ ROperator_Random() [1/2]

TMVA::Experimental::SOFIE::ROperator_Random::ROperator_Random ( )
inline

Definition at line 37 of file ROperator_Random.hxx.

◆ ROperator_Random() [2/2]

TMVA::Experimental::SOFIE::ROperator_Random::ROperator_Random ( RandomOpMode mode,
ETensorType type,
const std::string & nameX,
const std::string & nameY,
const std::vector< size_t > & shape,
const std::map< std::string, float > & params,
float seed )
inline

Definition at line 38 of file ROperator_Random.hxx.

Member Function Documentation

◆ Generate()

std::string TMVA::Experimental::SOFIE::ROperator_Random::Generate ( std::string OpName)
inlineoverridevirtual

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

Definition at line 111 of file ROperator_Random.hxx.

◆ GenerateDeclCode()

std::string TMVA::Experimental::SOFIE::ROperator_Random::GenerateDeclCode ( )
inlineoverridevirtual

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

Definition at line 93 of file ROperator_Random.hxx.

◆ GenerateInitCode()

std::string TMVA::Experimental::SOFIE::ROperator_Random::GenerateInitCode ( )
inlineoverridevirtual

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

Definition at line 99 of file ROperator_Random.hxx.

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

std::vector< std::string > TMVA::Experimental::SOFIE::ROperator_Random::GetStdLibs ( )
inlineoverridevirtual

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

Definition at line 142 of file ROperator_Random.hxx.

◆ Header()

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

Definition at line 34 of file ROperator.hxx.

◆ Initialize()

void TMVA::Experimental::SOFIE::ROperator_Random::Initialize ( RModel & model)
inlineoverridevirtual

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

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

std::vector< std::vector< size_t > > TMVA::Experimental::SOFIE::ROperator_Random::ShapeInference ( std::vector< std::vector< size_t > > input)
inlineoverridevirtual

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

Definition at line 56 of file ROperator_Random.hxx.

◆ TypeInference()

std::vector< ETensorType > TMVA::Experimental::SOFIE::ROperator_Random::TypeInference ( std::vector< ETensorType > input)
inlineoverridevirtual

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

Definition at line 52 of file ROperator_Random.hxx.

Member Data Documentation

◆ 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.

◆ fMode

RandomOpMode TMVA::Experimental::SOFIE::ROperator_Random::fMode
private

Definition at line 25 of file ROperator_Random.hxx.

◆ fNX

std::string TMVA::Experimental::SOFIE::ROperator_Random::fNX
private

Definition at line 27 of file ROperator_Random.hxx.

◆ fNY

std::string TMVA::Experimental::SOFIE::ROperator_Random::fNY
private

Definition at line 28 of file ROperator_Random.hxx.

◆ fOutputTensorNames

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

Definition at line 51 of file ROperator.hxx.

◆ fParams

std::map<std::string,float> TMVA::Experimental::SOFIE::ROperator_Random::fParams
private

Definition at line 31 of file ROperator_Random.hxx.

◆ fSeed

int TMVA::Experimental::SOFIE::ROperator_Random::fSeed
private

Definition at line 29 of file ROperator_Random.hxx.

◆ fShapeY

std::vector<size_t> TMVA::Experimental::SOFIE::ROperator_Random::fShapeY
private

Definition at line 30 of file ROperator_Random.hxx.

◆ fType

ETensorType TMVA::Experimental::SOFIE::ROperator_Random::fType
private

Definition at line 26 of file ROperator_Random.hxx.

◆ fUseROOT

bool TMVA::Experimental::SOFIE::ROperator_Random::fUseROOT = true

Definition at line 22 of file ROperator_Random.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: