24.02.1
|
Input Accessor used for network validation. More...
#include <GraphUtils.h>
Public Member Functions | |
ValidationInputAccessor (const std::string &image_list, std::string images_path, std::unique_ptr< IPreprocessor > preprocessor=nullptr, bool bgr=true, unsigned int start=0, unsigned int end=0, std::ostream &output_stream=std::cout) | |
Constructor. 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... | |
Input Accessor used for network validation.
Definition at line 259 of file GraphUtils.h.
ValidationInputAccessor | ( | const std::string & | image_list, |
std::string | images_path, | ||
std::unique_ptr< IPreprocessor > | preprocessor = nullptr , |
||
bool | bgr = true , |
||
unsigned int | start = 0 , |
||
unsigned int | end = 0 , |
||
std::ostream & | output_stream = std::cout |
||
) |
Constructor.
[in] | image_list | File containing all the images to validate |
[in] | images_path | Path to images. |
[in] | bgr | (Optional) Fill the first plane with blue channel (default = false - RGB format) |
[in] | preprocessor | (Optional) Image pre-processing object (default = nullptr) |
[in] | start | (Optional) Start range |
[in] | end | (Optional) End range |
[out] | output_stream | (Optional) Output stream |
Definition at line 315 of file GraphUtils.cpp.
References ARM_COMPUTE_ERROR_VAR, ARM_COMPUTE_EXIT_ON_MSG, and arm_compute::mlgo::parser::end().
|
overridevirtual |
Interface to be implemented to access a given tensor.
[in] | tensor | Tensor to be accessed |
Implements ITensorAccessor.
Definition at line 358 of file GraphUtils.cpp.
References ARM_COMPUTE_EXIT_ON_MSG_VAR, IImageLoader::fill_planar_tensor(), IImageLoader::height(), arm_compute::NCHW, JPEGLoader::open(), tensor, IImageLoader::width(), Dimensions< T >::x(), and Dimensions< T >::y().