Compute Library
ITensorAccessor Class Referenceabstract

Tensor accessor interface. More...

#include <ITensorAccessor.h>

Public Member Functions

virtual ~ITensorAccessor ()=default
 Default virtual destructor. More...
virtual bool access_tensor (ITensor &tensor)=0
 Interface to be implemented to access a given tensor. More...
virtual bool access_tensor_data ()
 Returns true if the tensor data is being accessed. More...

Detailed Description

Tensor accessor interface.

Definition at line 36 of file ITensorAccessor.h.

Constructor & Destructor Documentation

◆ ~ITensorAccessor()

virtual ~ITensorAccessor ( )

Default virtual destructor.

Member Function Documentation

◆ access_tensor()

virtual bool access_tensor ( ITensor tensor)
pure virtual

Interface to be implemented to access a given tensor.

[in]tensorTensor to be accessed
True if access is successful else false

Implemented in NumPyBinLoader, RandomAccessor, TopNPredictionsAccessor, DetectionOutputAccessor, VerifyAccessor< D >, ValidationOutputAccessor, ValidationInputAccessor, ImageAccessor, PrintAccessor, SaveNumPyAccessor, NumPyAccessor, DummyAccessor, and PPMWriter.

◆ access_tensor_data()

virtual bool access_tensor_data ( )

Returns true if the tensor data is being accessed.

True if the tensor data is being accessed by the accessor. False otherwise

Reimplemented in DummyAccessor.

Definition at line 52 of file ITensorAccessor.h.

53  {
54  return true;
55  }

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