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

Definition at line 84 of file SOFIE_common.hxx.

Public Member Functions

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

Private Attributes

std::shared_ptr< void > fData
 ! Transient shared data
 
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 
)
inline

Definition at line 87 of file SOFIE_common.hxx.

Member Function Documentation

◆ CastPersistentToShared()

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

Definition at line 122 of file SOFIE_common.hxx.

◆ CastSharedToPersistent()

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

Definition at line 102 of file SOFIE_common.hxx.

◆ data()

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

Definition at line 97 of file SOFIE_common.hxx.

◆ shape()

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

Definition at line 93 of file SOFIE_common.hxx.

◆ sharedptr()

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

Definition at line 94 of file SOFIE_common.hxx.

◆ type()

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

Definition at line 92 of file SOFIE_common.hxx.

Member Data Documentation

◆ fData

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

! Transient shared data

Definition at line 148 of file SOFIE_common.hxx.

◆ fPersistentData

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

[fSize] Persistent version of the data

Definition at line 150 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 147 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 149 of file SOFIE_common.hxx.

◆ fType

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

Encodes the type of the data.

Definition at line 146 of file SOFIE_common.hxx.

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

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