Cortenn
Public Member Functions | Public Attributes | List of all members
llo::GenericData Struct Referencefinal

GenericData for holding data when passing up the tensor graph. More...

#include <data.hpp>

Public Member Functions

 GenericData (void)=default
 
 GenericData (ade::Shape shape, age::_GENERATED_DTYPE dtype)
 
void copyover (const char *indata, age::_GENERATED_DTYPE intype)
 

Public Attributes

std::shared_ptr< char > data_
 Smartpointer to a block of untyped data. More...
 
ade::Shape shape_
 Shape of data_. More...
 
age::_GENERATED_DTYPE dtype_
 Type encoding of data_. More...
 

Detailed Description

GenericData for holding data when passing up the tensor graph.

Constructor & Destructor Documentation

◆ GenericData() [1/2]

llo::GenericData::GenericData ( void  )
default

◆ GenericData() [2/2]

llo::GenericData::GenericData ( ade::Shape  shape,
age::_GENERATED_DTYPE  dtype 
)

Member Function Documentation

◆ copyover()

void llo::GenericData::copyover ( const char *  indata,
age::_GENERATED_DTYPE  intype 
)

Copy over data of specified type while retaining shape This makes the assumption that the indata fits in shape perfectly

Member Data Documentation

◆ data_

std::shared_ptr<char> llo::GenericData::data_

Smartpointer to a block of untyped data.

◆ dtype_

age::_GENERATED_DTYPE llo::GenericData::dtype_

Type encoding of data_.

◆ shape_

ade::Shape llo::GenericData::shape_

Shape of data_.


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