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
virtual std::vector< std::vector< size_t > > ShapeInference (std::vector< std::vector< size_t > >)
virtual std::vector< ETensorTypeTypeInference (std::vector< ETensorType >)

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

std::vector< std::vector< IType > > fAttributes
std::vector< IType > fAxes
std::vector< DimfEnd
std::vector< DimfEndDims
bool fIdentitySlice = false
bool fIsEndUndef = false
bool fIsStartUndef = false
bool fIsStepUndef = false
std::vector< std::string > fNames
std::string fNData
std::string fNOutput
std::vector< DimfShapeInput
std::vector< DimfShapeOutput
std::vector< DimfStart
std::vector< DimfStartDims
std::vector< DimfStepDims
std::vector< DimfSteps

#include <TMVA/ROperator_Slice.hxx>

Inheritance diagram for TMVA::Experimental::SOFIE::ROperator_Slice< IType >:
TMVA::Experimental::SOFIE::ROperator

Constructor & Destructor Documentation

◆ ROperator_Slice() [1/3]

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

Definition at line 49 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 52 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 66 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 354 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 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()

◆ Header()

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

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

◆ ShapeInference()

virtual std::vector< std::vector< size_t > > TMVA::Experimental::SOFIE::ROperator::ShapeInference ( std::vector< std::vector< size_t > > )
inlinevirtualinherited

Reimplemented in TMVA::Experimental::SOFIE::ROperator_BasicBinary< T, Op >, TMVA::Experimental::SOFIE::ROperator_BasicNary< T, Op >, TMVA::Experimental::SOFIE::ROperator_BasicUnary< T, Op >, TMVA::Experimental::SOFIE::ROperator_BatchNormalization< T >, TMVA::Experimental::SOFIE::ROperator_Cast, TMVA::Experimental::SOFIE::ROperator_Comparision< T, Op >, TMVA::Experimental::SOFIE::ROperator_Concat, TMVA::Experimental::SOFIE::ROperator_Constant< T >, TMVA::Experimental::SOFIE::ROperator_ConvTranspose< T >, TMVA::Experimental::SOFIE::ROperator_Custom< T >, TMVA::Experimental::SOFIE::ROperator_Einsum< T >, TMVA::Experimental::SOFIE::ROperator_Elu< T >, TMVA::Experimental::SOFIE::ROperator_Erf< T >, TMVA::Experimental::SOFIE::ROperator_EyeLike, TMVA::Experimental::SOFIE::ROperator_Gather, TMVA::Experimental::SOFIE::ROperator_Gemm< T >, TMVA::Experimental::SOFIE::ROperator_GRU< T >, TMVA::Experimental::SOFIE::ROperator_Identity< T >, TMVA::Experimental::SOFIE::ROperator_If, TMVA::Experimental::SOFIE::ROperator_LayerNormalization< T >, TMVA::Experimental::SOFIE::ROperator_LeakyRelu< T >, TMVA::Experimental::SOFIE::ROperator_LSTM< T >, TMVA::Experimental::SOFIE::ROperator_Pad< T >, TMVA::Experimental::SOFIE::ROperator_Pool< T >, TMVA::Experimental::SOFIE::ROperator_Random, TMVA::Experimental::SOFIE::ROperator_Relu< T >, TMVA::Experimental::SOFIE::ROperator_Reshape, TMVA::Experimental::SOFIE::ROperator_RNN< T >, TMVA::Experimental::SOFIE::ROperator_Selu< T >, TMVA::Experimental::SOFIE::ROperator_Sigmoid< T >, TMVA::Experimental::SOFIE::ROperator_Softmax, TMVA::Experimental::SOFIE::ROperator_Split, TMVA::Experimental::SOFIE::ROperator_Swish< T >, TMVA::Experimental::SOFIE::ROperator_Tanh< T >, TMVA::Experimental::SOFIE::ROperator_Transpose, and TMVA::Experimental::SOFIE::ROperator_Where< T >.

Definition at line 24 of file ROperator.hxx.

◆ TypeInference()

virtual std::vector< ETensorType > TMVA::Experimental::SOFIE::ROperator::TypeInference ( std::vector< ETensorType > )
inlinevirtualinherited

Reimplemented in TMVA::Experimental::SOFIE::ROperator_BasicBinary< T, Op >, TMVA::Experimental::SOFIE::ROperator_BasicNary< T, Op >, TMVA::Experimental::SOFIE::ROperator_BasicUnary< T, Op >, TMVA::Experimental::SOFIE::ROperator_BatchNormalization< T >, TMVA::Experimental::SOFIE::ROperator_Cast, TMVA::Experimental::SOFIE::ROperator_Comparision< T, Op >, TMVA::Experimental::SOFIE::ROperator_Concat, TMVA::Experimental::SOFIE::ROperator_Constant< T >, TMVA::Experimental::SOFIE::ROperator_Conv< T >, TMVA::Experimental::SOFIE::ROperator_ConvTranspose< T >, TMVA::Experimental::SOFIE::ROperator_Custom< T >, TMVA::Experimental::SOFIE::ROperator_Einsum< T >, TMVA::Experimental::SOFIE::ROperator_Elu< T >, TMVA::Experimental::SOFIE::ROperator_Erf< T >, TMVA::Experimental::SOFIE::ROperator_EyeLike, TMVA::Experimental::SOFIE::ROperator_Gather, TMVA::Experimental::SOFIE::ROperator_Gemm< T >, TMVA::Experimental::SOFIE::ROperator_GRU< T >, TMVA::Experimental::SOFIE::ROperator_Identity< T >, TMVA::Experimental::SOFIE::ROperator_If, TMVA::Experimental::SOFIE::ROperator_LayerNormalization< T >, TMVA::Experimental::SOFIE::ROperator_LeakyRelu< T >, TMVA::Experimental::SOFIE::ROperator_LSTM< T >, TMVA::Experimental::SOFIE::ROperator_Pad< T >, TMVA::Experimental::SOFIE::ROperator_Pool< T >, TMVA::Experimental::SOFIE::ROperator_Random, TMVA::Experimental::SOFIE::ROperator_Relu< T >, TMVA::Experimental::SOFIE::ROperator_Reshape, TMVA::Experimental::SOFIE::ROperator_RNN< T >, TMVA::Experimental::SOFIE::ROperator_Selu< T >, TMVA::Experimental::SOFIE::ROperator_Sigmoid< T >, TMVA::Experimental::SOFIE::ROperator_Softmax, TMVA::Experimental::SOFIE::ROperator_Split, TMVA::Experimental::SOFIE::ROperator_Swish< T >, TMVA::Experimental::SOFIE::ROperator_Tanh< T >, TMVA::Experimental::SOFIE::ROperator_Tile< T >, TMVA::Experimental::SOFIE::ROperator_TopK< T >, TMVA::Experimental::SOFIE::ROperator_Transpose, and TMVA::Experimental::SOFIE::ROperator_Where< T >.

Definition at line 25 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 44 of file ROperator_Slice.hxx.

◆ fAxes

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

Definition at line 42 of file ROperator_Slice.hxx.

◆ fEnd

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

Definition at line 37 of file ROperator_Slice.hxx.

◆ fEndDims

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

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

◆ fIsEndUndef

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

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

◆ fIsStartUndef

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

Definition at line 25 of file ROperator_Slice.hxx.

◆ fIsStepUndef

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

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 31 of file ROperator_Slice.hxx.

◆ fNData

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

Definition at line 29 of file ROperator_Slice.hxx.

◆ fNOutput

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

Definition at line 30 of file ROperator_Slice.hxx.

◆ fOutputTensorNames

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

Definition at line 51 of file ROperator.hxx.

◆ fShapeInput

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

Definition at line 32 of file ROperator_Slice.hxx.

◆ fShapeOutput

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

Definition at line 33 of file ROperator_Slice.hxx.

◆ fStart

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

Definition at line 36 of file ROperator_Slice.hxx.

◆ fStartDims

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

Definition at line 39 of file ROperator_Slice.hxx.

◆ fStepDims

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

Definition at line 41 of file ROperator_Slice.hxx.

◆ fSteps

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

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