24.02.1
|
Detection output accessor class. More...
#include <GraphUtils.h>
Public Member Functions | |
DetectionOutputAccessor (const std::string &labels_path, std::vector< TensorShape > &imgs_tensor_shapes, std::ostream &output_stream=std::cout) | |
Constructor. More... | |
DetectionOutputAccessor (DetectionOutputAccessor &&)=default | |
Allow instances of this class to be move constructed. More... | |
DetectionOutputAccessor (const DetectionOutputAccessor &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
DetectionOutputAccessor & | operator= (const DetectionOutputAccessor &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
bool | access_tensor (ITensor &tensor) override |
Interface to be implemented to access a given tensor. More... | |
Public Member Functions inherited from ITensorAccessor | |
virtual | ~ITensorAccessor ()=default |
Default virtual destructor. More... | |
virtual bool | access_tensor_data () |
Returns true if the tensor data is being accessed. More... | |
Detection output accessor class.
Definition at line 351 of file GraphUtils.h.
DetectionOutputAccessor | ( | const std::string & | labels_path, |
std::vector< TensorShape > & | imgs_tensor_shapes, | ||
std::ostream & | output_stream = std::cout |
||
) |
Constructor.
[in] | labels_path | Path to labels text file. |
[in] | imgs_tensor_shapes | Network input images tensor shapes. |
[out] | output_stream | (Optional) Output stream |
Definition at line 529 of file GraphUtils.cpp.
References ARM_COMPUTE_ERROR_VAR.
|
default |
Allow instances of this class to be move constructed.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
overridevirtual |
Interface to be implemented to access a given tensor.
[in] | tensor | Tensor to be accessed |
Implements ITensorAccessor.
Definition at line 584 of file GraphUtils.cpp.
References ARM_COMPUTE_ERROR, ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN, arm_compute::F32, and tensor.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)