23.11
|
Data Structures | |
class | CaffePreproccessor |
Caffe preproccessor. More... | |
class | DetectionOutputAccessor |
Detection output accessor class. More... | |
class | DummyAccessor |
Dummy accessor class. More... | |
class | ImageAccessor |
Image accessor class. More... | |
class | IPreprocessor |
Preprocessor interface. More... | |
class | NumPyAccessor |
NumPy accessor class. More... | |
class | NumPyBinLoader |
Numpy Binary loader class. More... | |
class | PPMWriter |
PPM writer class. More... | |
class | PrintAccessor |
Print accessor class. More... | |
class | RandomAccessor |
Random accessor class. More... | |
class | SaveNumPyAccessor |
SaveNumPy accessor class. More... | |
class | TFPreproccessor |
TF preproccessor. More... | |
class | TopNPredictionsAccessor |
Result accessor class. More... | |
class | ValidationInputAccessor |
Input Accessor used for network validation. More... | |
class | ValidationOutputAccessor |
Output Accessor used for network validation. More... | |
Functions | |
std::unique_ptr< graph::ITensorAccessor > | get_random_accessor (PixelValue lower, PixelValue upper, const std::random_device::result_type seed=0) |
Generates appropriate random accessor. More... | |
std::unique_ptr< graph::ITensorAccessor > | get_weights_accessor (const std::string &path, const std::string &data_file, DataLayout file_layout=DataLayout::NCHW) |
Generates appropriate weights accessor according to the specified path. More... | |
std::unique_ptr< graph::ITensorAccessor > | get_input_accessor (const arm_compute::utils::CommonGraphParams &graph_parameters, std::unique_ptr< IPreprocessor > preprocessor=nullptr, bool bgr=true) |
Generates appropriate input accessor according to the specified graph parameters. More... | |
std::unique_ptr< graph::ITensorAccessor > | get_output_accessor (const arm_compute::utils::CommonGraphParams &graph_parameters, size_t top_n=5, bool is_validation=false, std::ostream &output_stream=std::cout) |
Generates appropriate output accessor according to the specified graph parameters. More... | |
std::unique_ptr< graph::ITensorAccessor > | get_detection_output_accessor (const arm_compute::utils::CommonGraphParams &graph_parameters, std::vector< TensorShape > tensor_shapes, bool is_validation=false, std::ostream &output_stream=std::cout) |
Generates appropriate output accessor according to the specified graph parameters. More... | |
std::unique_ptr< graph::ITensorAccessor > | get_npy_output_accessor (const std::string &npy_path, TensorShape shape, DataType data_type, DataLayout data_layout=DataLayout::NCHW, std::ostream &output_stream=std::cout) |
Generates appropriate npy output accessor according to the specified npy_path. More... | |
std::unique_ptr< graph::ITensorAccessor > | get_save_npy_output_accessor (const std::string &npy_name, const bool is_fortran=false) |
Generates appropriate npy output accessor according to the specified npy_path. More... | |
std::unique_ptr< graph::ITensorAccessor > | get_print_output_accessor (std::ostream &output_stream=std::cout) |
Generates print tensor accessor. More... | |
TensorShape | permute_shape (TensorShape tensor_shape, DataLayout in_data_layout, DataLayout out_data_layout) |
Permutes a given tensor shape given the input and output data layout. More... | |
graph::Target | set_target_hint (int target) |
Utility function to return the TargetHint. More... | |
|
inline |
Generates appropriate output accessor according to the specified graph parameters.
[in] | graph_parameters | Graph parameters |
[in] | tensor_shapes | Network input images tensor shapes. |
[in] | is_validation | (Optional) Validation flag (default = false) |
[out] | output_stream | (Optional) Output stream (default = std::cout) |
Definition at line 583 of file GraphUtils.h.
References ARM_COMPUTE_UNUSED, CommonGraphParams::labels, CommonGraphParams::validation_file, CommonGraphParams::validation_range_end, and CommonGraphParams::validation_range_start.
|
inline |
Generates appropriate input accessor according to the specified graph parameters.
[in] | graph_parameters | Graph parameters |
[in] | preprocessor | (Optional) Preproccessor object |
[in] | bgr | (Optional) Fill the first plane with blue channel (default = true) |
Definition at line 505 of file GraphUtils.h.
References CommonGraphParams::data_layout, arm_compute::utility::endswith(), CommonGraphParams::image, arm_compute::lower_string(), CommonGraphParams::validation_file, CommonGraphParams::validation_path, CommonGraphParams::validation_range_end, and CommonGraphParams::validation_range_start.
Referenced by GraphEdsr::setup().
|
inline |
Generates appropriate npy output accessor according to the specified npy_path.
[in] | npy_path | Path to npy file. |
[in] | shape | Shape of the numpy tensor data. |
[in] | data_type | DataType of the numpy tensor data. |
[in] | data_layout | DataLayout of the numpy tensor data. |
[out] | output_stream | (Optional) Output stream |
Definition at line 616 of file GraphUtils.h.
References arm_compute::cpu::data_layout, arm_compute::test::validation::data_type, and arm_compute::test::validation::shape.
Referenced by GraphEdsr::setup().
|
inline |
Generates appropriate output accessor according to the specified graph parameters.
[in] | graph_parameters | Graph parameters |
[in] | top_n | (Optional) Number of output classes to print (default = 5) |
[in] | is_validation | (Optional) Validation flag (default = false) |
[out] | output_stream | (Optional) Output stream (default = std::cout) |
Definition at line 549 of file GraphUtils.h.
References ARM_COMPUTE_UNUSED, CommonGraphParams::labels, CommonGraphParams::validation_file, CommonGraphParams::validation_range_end, and CommonGraphParams::validation_range_start.
|
inline |
Generates print tensor accessor.
[out] | output_stream | (Optional) Output stream |
Definition at line 660 of file GraphUtils.h.
|
inline |
Generates appropriate random accessor.
[in] | lower | Lower random values bound |
[in] | upper | Upper random values bound |
[in] | seed | Random generator seed |
Definition at line 468 of file GraphUtils.h.
|
inline |
Generates appropriate npy output accessor according to the specified npy_path.
[in] | npy_name | Npy filename. |
[in] | is_fortran | (Optional) If true, save tensor in fortran order. |
Definition at line 641 of file GraphUtils.h.
|
inline |
Generates appropriate weights accessor according to the specified path.
[in] | path | Path to the data files |
[in] | data_file | Relative path to the data files from path |
[in] | file_layout | (Optional) Layout of file. Defaults to NCHW |
Definition at line 484 of file GraphUtils.h.
References add_copyright::path.
Referenced by GraphEdsr::setup().
|
inline |
Permutes a given tensor shape given the input and output data layout.
[in] | tensor_shape | Tensor shape to permute |
[in] | in_data_layout | Input tensor shape data layout |
[in] | out_data_layout | Output tensor shape data layout |
Definition at line 673 of file GraphUtils.h.
References arm_compute::NCHW, arm_compute::permute(), and arm_compute::utils::cast::U.
Referenced by GraphValidateExample< DepthwiseConvolutionLayer, DepthConvolutionOptions, DepthConvolutionVerifyAccessor >::do_setup(), and VerifyAccessor< D >::output_shape().
|
inline |
Utility function to return the TargetHint.
[in] | target | Integer value which expresses the selected target. Must be 0 for Arm® Neon™ or 1 for OpenCL or 2 (OpenCL with Tuner) |
Definition at line 691 of file GraphUtils.h.
References ARM_COMPUTE_ERROR_ON_MSG, arm_compute::graph::CL, and arm_compute::graph::NEON.