FAST  3.2.0
Framework for Heterogeneous Medical Image Computing and Visualization
Public Member Functions | List of all members
fast::TensorFlowTensor Class Reference

#include <TensorFlowEngine.hpp>

+ Inheritance diagram for fast::TensorFlowTensor:
+ Collaboration diagram for fast::TensorFlowTensor:

Public Member Functions

void create (TensorFlowTensorWrapper *tensorflowTensor)
 
 ~TensorFlowTensor ()
 
- Public Member Functions inherited from fast::Tensor
virtual void create (std::unique_ptr< float[]> data, TensorShape shape)
 
virtual void create (const float *const data, TensorShape shape)
 
virtual void create (TensorShape shape)
 
virtual void create (std::initializer_list< float > data)
 
virtual void expandDims (int position=0)
 
virtual TensorShape getShape () const
 
virtual TensorAccess::pointer getAccess (accessType type)
 
virtual std::unique_ptr< OpenCLBufferAccessgetOpenCLBufferAccess (accessType type, OpenCLDevice::pointer)
 
virtual void freeAll () override
 
virtual void free (ExecutionDevice::pointer device) override
 
virtual void setSpacing (VectorXf spacing)
 
virtual VectorXf getSpacing () const
 
virtual void deleteDimension (int dimension)
 
virtual DataBoundingBox getTransformedBoundingBox () const override
 
virtual DataBoundingBox getBoundingBox () const override
 
virtual ~Tensor ()
 
- Public Member Functions inherited from fast::SpatialDataObject
 SpatialDataObject ()
 
SceneGraphNode::pointer getSceneGraphNode () const
 
- Public Member Functions inherited from fast::DataObject
 DataObject ()
 
void setMetadata (std::string name, std::string value)
 
void setMetadata (std::unordered_map< std::string, std::string > metadata)
 
std::string getMetadata (std::string name) const
 
std::unordered_map< std::string, std::string > getMetadata () const
 
void deleteMetadata (std::string name)
 
uint64_t getTimestamp () const
 
void updateModifiedTimestamp ()
 
virtual ~DataObject ()
 
virtual std::string getNameOfClass () const =0
 
uint64_t getCreationTimestamp () const
 
void setCreationTimestamp (uint64_t timestamp)
 
void setLastFrame (std::string streamer)
 
bool isLastFrame ()
 
bool isLastFrame (std::string streamer)
 
std::unordered_set< std::string > getLastFrame ()
 
void setFrameData (std::string name, std::string value)
 
std::string getFrameData (std::string name)
 
std::unordered_map< std::string, std::string > getFrameData ()
 
void accessFinished ()
 
- Public Member Functions inherited from fast::Object
 Object ()
 
virtual ~Object ()
 
ReportergetReporter ()
 

Additional Inherited Members

- Public Types inherited from fast::SpatialDataObject
typedef std::shared_ptr< SpatialDataObjectpointer
 
- Public Types inherited from fast::DataObject
typedef std::shared_ptr< DataObjectpointer
 
- Public Types inherited from fast::Object
typedef std::shared_ptr< Objectpointer
 
- Static Public Member Functions inherited from fast::SpatialDataObject
static std::string getStaticNameOfClass ()
 
- Static Public Member Functions inherited from fast::DataObject
static std::string getStaticNameOfClass ()
 
- Static Public Member Functions inherited from fast::Object
static std::string getStaticNameOfClass ()
 
- Protected Member Functions inherited from fast::Tensor
 Tensor ()=default
 
virtual bool isInitialized ()
 
virtual void transferCLBufferFromHost (OpenCLDevice::pointer device)
 
void transferCLBufferToHost (OpenCLDevice::pointer device)
 
void updateOpenCLBufferData (OpenCLDevice::pointer device)
 
void setAllDataToOutOfDate ()
 
void updateHostData ()
 
- Protected Member Functions inherited from fast::DataObject
void blockIfBeingWrittenTo ()
 
void blockIfBeingAccessed ()
 
- Protected Member Functions inherited from fast::Object
ReporterreportError ()
 
ReporterreportWarning ()
 
ReporterreportInfo ()
 
ReporterEnd reportEnd () const
 
- Protected Attributes inherited from fast::Tensor
std::unique_ptr< float[]> m_data
 
std::unordered_map< std::shared_ptr< OpenCLDevice >, cl::Buffer * > mCLBuffers
 
std::unordered_map< std::shared_ptr< OpenCLDevice >, bool > mCLBuffersIsUpToDate
 
TensorShape m_shape
 
bool mHostDataIsUpToDate
 
VectorXf m_spacing
 
friend TensorAccess
 
friend OpenCLBufferAccess
 
- Protected Attributes inherited from fast::SpatialDataObject
DataBoundingBox mBoundingBox
 
- Protected Attributes inherited from fast::DataObject
std::mutex mDataIsBeingWrittenToMutex
 
std::condition_variable mDataIsBeingWrittenToCondition
 
bool mDataIsBeingWrittenTo
 
std::mutex mDataIsBeingAccessedMutex
 
std::condition_variable mDataIsBeingAccessedCondition
 
bool mDataIsBeingAccessed
 
- Protected Attributes inherited from fast::Object
std::weak_ptr< ObjectmPtr
 

Detailed Description

This specialized Tensor Data class, allow us to store Tensorflow type tensors as FAST tensors.

Constructor & Destructor Documentation

◆ ~TensorFlowTensor()

fast::TensorFlowTensor::~TensorFlowTensor ( )

Member Function Documentation

◆ create()

void fast::TensorFlowTensor::create ( TensorFlowTensorWrapper *  tensorflowTensor)

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