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

Definition at line 101 of file SOFIE_common.hxx.

Public Member Functions

 InitializedTensor ()=default
 
 InitializedTensor (ETensorType type, std::span< std::size_t > shape, std::shared_ptr< void > data, bool typeConstant=false)
 
void CastPersistentToShared ()
 
void CastSharedToPersistent ()
 
template<class T = void>
T const * data () const
 
bool IsConstantTensor () const
 
bool IsWeightTensor () const
 
void SetNotWritable ()
 
std::vector< std::size_t > const & shape () const
 
std::shared_ptr< void > const & sharedptr () const
 
ETensorType const & type () const
 

Private Attributes

bool fConstant = false
 Flag specifying if tensor is a Constant one (coming from a Constant operator)
 
std::shared_ptr< void > fData
 ! Transient shared data
 
bool fIsNotWritable = false
 Flag to indicate that tensor values do not need to be written as weight or generated code.
 
char * fPersistentData = nullptr
 [fSize] Persistent version of the data
 
std::vector< std::size_t > fShape
 The shape of the data in terms of elements in each dimension.
 
int fSize = 0
 The size of the persistent data in bytes (not number of elements!)
 
ETensorType fType
 Encodes the type of the data.
 

#include <TMVA/SOFIE_common.hxx>

Constructor & Destructor Documentation

◆ InitializedTensor() [1/2]

TMVA::Experimental::SOFIE::InitializedTensor::InitializedTensor ( )
default

◆ InitializedTensor() [2/2]

TMVA::Experimental::SOFIE::InitializedTensor::InitializedTensor ( ETensorType  type,
std::span< std::size_t >  shape,
std::shared_ptr< void >  data,
bool  typeConstant = false 
)
inline

Definition at line 104 of file SOFIE_common.hxx.

Member Function Documentation

◆ CastPersistentToShared()

void TMVA::Experimental::SOFIE::InitializedTensor::CastPersistentToShared ( )
inline

Definition at line 145 of file SOFIE_common.hxx.

◆ CastSharedToPersistent()

void TMVA::Experimental::SOFIE::InitializedTensor::CastSharedToPersistent ( )
inline

Definition at line 125 of file SOFIE_common.hxx.

◆ data()

template<class T = void>
T const * TMVA::Experimental::SOFIE::InitializedTensor::data ( ) const
inline

Definition at line 120 of file SOFIE_common.hxx.

◆ IsConstantTensor()

bool TMVA::Experimental::SOFIE::InitializedTensor::IsConstantTensor ( ) const
inline

Definition at line 113 of file SOFIE_common.hxx.

◆ IsWeightTensor()

bool TMVA::Experimental::SOFIE::InitializedTensor::IsWeightTensor ( ) const
inline

Definition at line 115 of file SOFIE_common.hxx.

◆ SetNotWritable()

void TMVA::Experimental::SOFIE::InitializedTensor::SetNotWritable ( )
inline

Definition at line 117 of file SOFIE_common.hxx.

◆ shape()

std::vector< std::size_t > const & TMVA::Experimental::SOFIE::InitializedTensor::shape ( ) const
inline

Definition at line 110 of file SOFIE_common.hxx.

◆ sharedptr()

std::shared_ptr< void > const & TMVA::Experimental::SOFIE::InitializedTensor::sharedptr ( ) const
inline

Definition at line 111 of file SOFIE_common.hxx.

◆ type()

ETensorType const & TMVA::Experimental::SOFIE::InitializedTensor::type ( ) const
inline

Definition at line 109 of file SOFIE_common.hxx.

Member Data Documentation

◆ fConstant

bool TMVA::Experimental::SOFIE::InitializedTensor::fConstant = false
private

Flag specifying if tensor is a Constant one (coming from a Constant operator)

Definition at line 169 of file SOFIE_common.hxx.

◆ fData

std::shared_ptr<void> TMVA::Experimental::SOFIE::InitializedTensor::fData
private

! Transient shared data

Definition at line 173 of file SOFIE_common.hxx.

◆ fIsNotWritable

bool TMVA::Experimental::SOFIE::InitializedTensor::fIsNotWritable = false
private

Flag to indicate that tensor values do not need to be written as weight or generated code.

Definition at line 170 of file SOFIE_common.hxx.

◆ fPersistentData

char* TMVA::Experimental::SOFIE::InitializedTensor::fPersistentData = nullptr
private

[fSize] Persistent version of the data

Definition at line 175 of file SOFIE_common.hxx.

◆ fShape

std::vector<std::size_t> TMVA::Experimental::SOFIE::InitializedTensor::fShape
private

The shape of the data in terms of elements in each dimension.

Definition at line 172 of file SOFIE_common.hxx.

◆ fSize

int TMVA::Experimental::SOFIE::InitializedTensor::fSize = 0
private

The size of the persistent data in bytes (not number of elements!)

Definition at line 174 of file SOFIE_common.hxx.

◆ fType

ETensorType TMVA::Experimental::SOFIE::InitializedTensor::fType
private

Encodes the type of the data.

Definition at line 171 of file SOFIE_common.hxx.

Libraries for TMVA::Experimental::SOFIE::InitializedTensor:

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