24.02.1
|
Result accessor class. More...
#include <GraphUtils.h>
Public Member Functions | |
TopNPredictionsAccessor (const std::string &labels_path, size_t top_n=5, std::ostream &output_stream=std::cout) | |
Constructor. More... | |
TopNPredictionsAccessor (TopNPredictionsAccessor &&)=default | |
Allow instances of this class to be move constructed. More... | |
TopNPredictionsAccessor (const TopNPredictionsAccessor &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
TopNPredictionsAccessor & | operator= (const TopNPredictionsAccessor &)=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... | |
Result accessor class.
Definition at line 383 of file GraphUtils.h.
TopNPredictionsAccessor | ( | const std::string & | labels_path, |
size_t | top_n = 5 , |
||
std::ostream & | output_stream = std::cout |
||
) |
Constructor.
[in] | labels_path | Path to labels text file. |
[in] | top_n | (Optional) Number of output classes to print |
[out] | output_stream | (Optional) Output stream |
Definition at line 600 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 654 of file GraphUtils.cpp.
References ARM_COMPUTE_ERROR, ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN, arm_compute::F32, arm_compute::QASYMM8, and tensor.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)