23.08
|
Namespaces | |
cast | |
detail | |
info_helpers | |
iterable | |
math | |
memory | |
mmap_io | |
random | |
rounding | |
traits | |
Data Structures | |
class | CommandLineParser |
Class to parse command line arguments. More... | |
class | CommonGraphOptions |
Common command line options used to configure the graph examples. More... | |
struct | CommonGraphParams |
Structure holding all the common graph parameters. More... | |
class | CommonGraphValidateOptions |
CommonGraphValidateOptions command line options used to configure the graph examples. More... | |
struct | CommonParams |
Structure holding all the graph Example parameters. More... | |
struct | ConvolutionParams |
Structure holding all the Convolution layer graph parameters. More... | |
class | EnumListOption |
Implementation of an option that accepts any number of values from a fixed set. More... | |
class | EnumOption |
Implementation of a simple option that accepts a value from a fixed set. More... | |
class | Example |
Abstract Example class. More... | |
struct | ExampleParams |
Structure holding all the graph Example parameters. More... | |
class | FileImageFeeder |
File Image feeder concrete implementation. More... | |
struct | FrameworkParams |
Structure holding all the common graph parameters. More... | |
struct | FullyConnectedParams |
Structure holding all the fully_connected layer graph parameters. More... | |
class | GraphValidateExample |
class | IImageDataFeeder |
Image feeder interface. More... | |
class | IImageLoader |
Image loader interface. More... | |
class | ImageLoaderFactory |
Factory for generating appropriate image loader. More... | |
class | JPEGLoader |
Class to load the content of a JPEG file into an Image. More... | |
class | ListOption |
Implementation of an option that accepts any number of values. More... | |
class | MemoryImageFeeder |
Memory Image feeder concrete implementation. More... | |
class | NPYLoader |
Numpy data loader. More... | |
class | Option |
Abstract base class for a command line option. More... | |
class | PPMLoader |
PPM Image loader concrete implementation. More... | |
class | SimpleOption |
Implementation of an option that accepts a single value. More... | |
struct | TensorParams |
Structure holding all the input tensor graph parameters. More... | |
class | ToggleOption |
Implementation of an option that can be either true or false. More... | |
class | uniform_real_distribution_16bit |
Specialized class to generate random non-zero FP16 values. More... | |
class | ValidateExample |
Abstract ValidateExample class. More... | |
struct | VerificationParams |
Structure holding all the verification graph parameters. More... | |
class | VerifyAccessor |
Graph example validation accessor class. More... | |
Enumerations | |
enum | ConvolutionPaddingMode { Valid, Same, Manual } |
enum | ImageType { UNKNOWN, PPM, JPEG } |
Supported image types. More... | |
Functions | |
template<typename E , typename SE > | |
constexpr E | as_cenum (const SE v) noexcept |
Convert a strongly typed enum to an old plain c enum. More... | |
template<typename SE , typename E > | |
constexpr SE | as_enum (const E val) noexcept |
Convert plain old enumeration to a strongly typed enum. More... | |
template<typename E > | |
bool | is_in (E check, std::initializer_list< E > list) |
Check if the given value is in the given enum value list. More... | |
const std::string & | string_from_scheduler_type (Scheduler::Type t) |
Convert a Scheduler::Type into a string. More... | |
void | schedule_kernel_on_ctx (IRuntimeContext *ctx, ICPPKernel *kernel, const IScheduler::Hints &hints) |
Schedules a kernel using the context if not nullptr else uses the legacy scheduling flow. More... | |
unsigned int | calculate_number_of_stages_only_x_axis (size_t input_x_dimension, unsigned int axis) |
Calculate number of stages for parallel implementations. More... | |
int | run_example (int argc, char **argv, std::unique_ptr< Example > example) |
Run an example and handle the potential exceptions it throws. More... | |
inline ::std::istream & | operator>> (::std::istream &stream, ConvolutionPaddingMode &Mode) |
Stream Input operator for the ConvolutionPaddingMode type. More... | |
inline ::std::ostream & | operator<< (::std::ostream &os, ConvolutionPaddingMode Mode) |
Formatted output of the ConvolutionPaddingMode type. More... | |
PadStrideInfo | calculate_convolution_padding (ExampleParams params) |
Calculate stride information. More... | |
void | consume_common_graph_parameters (CommonGraphValidateOptions &options, CommonParams &common_params) |
Consumes the consume_common_graph_parameters graph options and creates a structure containing any information. More... | |
std::unique_ptr< graph::ITensorAccessor > | get_accessor (const TensorParams &tensor, PixelValue lower, PixelValue upper, const std::random_device::result_type seed=0) |
Generates appropriate accessor according to the specified graph parameters. More... | |
template<template< typename D > class VerifyAccessorT> | |
std::unique_ptr< graph::ITensorAccessor > | get_verify_accessor (ExampleParams params) |
Generates appropriate convolution verify accessor. More... | |
int | run_example (int argc, char **argv, std::unique_ptr< ValidateExample > example) |
Run an example and handle the potential exceptions it throws. More... | |
::std::ostream & | operator<< (::std::ostream &os, const CommonGraphParams &common_params) |
Formatted output of the CommonGraphParams type. More... | |
CommonGraphParams | consume_common_graph_parameters (CommonGraphOptions &options) |
Consumes the common graph options and creates a structure containing any information. More... | |
void | draw_detection_rectangle (arm_compute::ITensor *tensor, const arm_compute::DetectionWindow &rect, uint8_t r, uint8_t g, uint8_t b) |
Draw a RGB rectangular window for the detected object. More... | |
ImageType | get_image_type_from_file (const std::string &filename) |
Gets image type given a file. More... | |
std::tuple< unsigned int, unsigned int, int > | parse_ppm_header (std::ifstream &fs) |
Parse the ppm header from an input file stream. More... | |
npy::header_t | parse_npy_header (std::ifstream &fs) |
Parse the npy header from an input file stream. More... | |
uint64_t | get_mem_free_from_meminfo () |
This function returns the amount of memory free reading from /proc/meminfo. More... | |
template<typename T > | |
int | run_example (int argc, char **argv) |
std::string | get_typestring (DataType data_type) |
Obtain numpy type string from DataType. More... | |
template<typename T > | |
void | map (T &tensor, bool blocking) |
Maps a tensor if needed. More... | |
template<typename T > | |
void | unmap (T &tensor) |
Unmaps a tensor if needed. More... | |
template<typename T > | |
void | save_to_ppm (T &tensor, const std::string &ppm_filename) |
Template helper function to save a tensor image to a PPM file. More... | |
template<typename T , typename U = float> | |
void | save_to_npy (T &tensor, const std::string &npy_filename, bool fortran_order) |
Template helper function to save a tensor image to a NPY file. More... | |
template<typename T > | |
void | load_trained_data (T &tensor, const std::string &filename) |
Load the tensor with pre-trained data from a binary file. More... | |
template<typename T , typename TensorType > | |
void | fill_tensor_value (TensorType &tensor, T value) |
template<typename T , typename TensorType > | |
void | fill_tensor_zero (TensorType &tensor) |
template<typename T , typename TensorType > | |
void | fill_tensor_vector (TensorType &tensor, std::vector< T > vec) |
template<typename T , typename TensorType > | |
void | fill_random_tensor (TensorType &tensor, std::random_device::result_type seed, T lower_bound=std::numeric_limits< T >::lowest(), T upper_bound=std::numeric_limits< T >::max()) |
template<typename T , typename TensorType > | |
void | fill_random_tensor (TensorType &tensor, T lower_bound=std::numeric_limits< T >::lowest(), T upper_bound=std::numeric_limits< T >::max()) |
template<typename T > | |
void | init_sgemm_output (T &dst, T &src0, T &src1, arm_compute::DataType dt) |
template<typename T > | |
int | compare_tensor (ITensor &tensor1, ITensor &tensor2, T tolerance) |
Compare two tensors. More... | |
|
strong |
Enumerator | |
---|---|
Valid | |
Same | |
Manual |
Definition at line 38 of file graph_validate_utils.h.
|
strong |
|
constexprnoexcept |
Convert a strongly typed enum to an old plain c enum.
E | Plain old C enum |
SE | Strongly typed resulting enum |
[in] | v | Value to convert |
|
constexprnoexcept |
|
inline |
Calculate stride information.
Depending on the selected padding mode create the desired PadStrideInfo
[in] | params | Convolution parameters supplied by the user. |
Definition at line 194 of file graph_validate_utils.h.
References ARM_COMPUTE_ERROR, arm_compute::calculate_same_pad(), ExampleParams::convolution, arm_compute::FLOOR, TensorParams::height, CommonParams::input, Manual, ConvolutionParams::padding_bottom, ConvolutionParams::padding_left, ConvolutionParams::padding_mode, ConvolutionParams::padding_right, ConvolutionParams::padding_stride_x, ConvolutionParams::padding_stride_y, ConvolutionParams::padding_top, Same, Valid, CommonParams::weights, and TensorParams::width.
unsigned int calculate_number_of_stages_only_x_axis | ( | size_t | input_x_dimension, |
unsigned int | axis | ||
) |
Compare two tensors.
[in] | tensor1 | First tensor to be compared. |
[in] | tensor2 | Second tensor to be compared. |
[in] | tolerance | Tolerance used for the comparison. |
Definition at line 811 of file Utils.h.
References ARM_COMPUTE_ERROR_ON_MISMATCHING_DATA_TYPES, ARM_COMPUTE_ERROR_ON_MISMATCHING_SHAPES, arm_compute::execute_window_loop(), ITensor::info(), map(), Iterator::ptr(), ITensorInfo::tensor_shape(), unmap(), and Window::use_tensor_dimensions().
CommonGraphParams consume_common_graph_parameters | ( | CommonGraphOptions & | options | ) |
Consumes the common graph options and creates a structure containing any information.
[in] | options | Options to consume |
Definition at line 194 of file CommonGraphOptions.cpp.
References CommonGraphParams::batches, CommonGraphOptions::batches, CommonGraphParams::data_layout, CommonGraphOptions::data_layout, CommonGraphParams::data_path, CommonGraphOptions::data_path, CommonGraphParams::data_type, CommonGraphOptions::data_type, CommonGraphParams::enable_cl_cache, CommonGraphOptions::enable_cl_cache, CommonGraphParams::enable_tuner, CommonGraphOptions::enable_tuner, CommonGraphParams::fast_math_hint, CommonGraphOptions::fast_math_hint, CommonGraphParams::help, CommonGraphOptions::help, CommonGraphParams::image, CommonGraphOptions::image, Option::is_set(), CommonGraphParams::labels, CommonGraphOptions::labels, CommonGraphParams::mlgo_file, CommonGraphOptions::mlgo_file, arm_compute::graph::NEON, CommonGraphParams::target, CommonGraphOptions::target, CommonGraphParams::threads, CommonGraphOptions::threads, CommonGraphParams::tuner_file, CommonGraphOptions::tuner_file, CommonGraphParams::tuner_mode, CommonGraphOptions::tuner_mode, CommonGraphParams::validation_file, CommonGraphOptions::validation_file, CommonGraphParams::validation_path, CommonGraphOptions::validation_path, CommonGraphOptions::validation_range, CommonGraphParams::validation_range_end, CommonGraphParams::validation_range_start, EnumOption< T >::value(), and SimpleOption< T >::value().
void arm_compute::utils::consume_common_graph_parameters | ( | CommonGraphValidateOptions & | options, |
CommonParams & | common_params | ||
) |
Consumes the consume_common_graph_parameters graph options and creates a structure containing any information.
[in] | options | Options to consume |
[out] | common_params | params structure to consume. |
Definition at line 313 of file graph_validate_utils.h.
References VerificationParams::absolute_tolerance, CommonGraphValidateOptions::absolute_tolerance, CommonParams::common_params, FrameworkParams::help, CommonGraphValidateOptions::help, Option::is_set(), VerificationParams::relative_tolerance, CommonGraphValidateOptions::relative_tolerance, FrameworkParams::target, CommonGraphValidateOptions::target, FrameworkParams::threads, CommonGraphValidateOptions::threads, VerificationParams::tolerance_number, CommonGraphValidateOptions::tolerance_number, EnumOption< T >::value(), SimpleOption< T >::value(), and CommonParams::verification.
void draw_detection_rectangle | ( | arm_compute::ITensor * | tensor, |
const arm_compute::DetectionWindow & | rect, | ||
uint8_t | r, | ||
uint8_t | g, | ||
uint8_t | b | ||
) |
Draw a RGB rectangular window for the detected object.
[in,out] | tensor | Input tensor where the rectangle will be drawn on. Format supported: RGB888 |
[in] | rect | Geometry of the rectangular window |
[in] | r | Red colour to use |
[in] | g | Green colour to use |
[in] | b | Blue colour to use |
Definition at line 130 of file Utils.cpp.
References ARM_COMPUTE_ERROR_ON_FORMAT_NOT_IN, arm_compute::test::validation::b, Window::DimY, DetectionWindow::height, arm_compute::RGB888, tensor, DetectionWindow::width, DetectionWindow::x, and DetectionWindow::y.
void arm_compute::utils::fill_random_tensor | ( | TensorType & | tensor, |
std::random_device::result_type | seed, | ||
T | lower_bound = std::numeric_limits<T>::lowest() , |
||
T | upper_bound = std::numeric_limits<T>::max() |
||
) |
Definition at line 758 of file Utils.h.
References arm_compute::execute_window_loop(), map(), Iterator::ptr(), tensor, type, unmap(), and Window::use_tensor_dimensions().
Referenced by fill_random_tensor(), and main().
void arm_compute::utils::fill_random_tensor | ( | TensorType & | tensor, |
T | lower_bound = std::numeric_limits<T>::lowest() , |
||
T | upper_bound = std::numeric_limits<T>::max() |
||
) |
void arm_compute::utils::fill_tensor_value | ( | TensorType & | tensor, |
T | value | ||
) |
Definition at line 713 of file Utils.h.
References arm_compute::execute_window_loop(), map(), Iterator::ptr(), tensor, unmap(), and Window::use_tensor_dimensions().
Referenced by fill_tensor_zero().
void arm_compute::utils::fill_tensor_vector | ( | TensorType & | tensor, |
std::vector< T > | vec | ||
) |
Definition at line 737 of file Utils.h.
References ARM_COMPUTE_ERROR_ON, arm_compute::execute_window_loop(), map(), Iterator::ptr(), tensor, unmap(), and Window::use_tensor_dimensions().
void arm_compute::utils::fill_tensor_zero | ( | TensorType & | tensor | ) |
Definition at line 731 of file Utils.h.
References fill_tensor_value(), and tensor.
|
inline |
Generates appropriate accessor according to the specified graph parameters.
[in] | tensor | Tensor parameters |
[in] | lower | Lower random values bound |
[in] | upper | Upper random values bound |
[in] | seed | Random generator seed |
Definition at line 333 of file graph_validate_utils.h.
References tensor.
Referenced by GraphValidateExample< DepthwiseConvolutionLayer, DepthConvolutionOptions, DepthConvolutionVerifyAccessor >::do_setup().
ImageType get_image_type_from_file | ( | const std::string & | filename | ) |
Gets image type given a file.
[in] | filename | File to identify its image type |
Definition at line 167 of file Utils.cpp.
References ARM_COMPUTE_ERROR_VAR, JPEG, PPM, type, and UNKNOWN.
Referenced by ImageLoaderFactory::create().
uint64_t get_mem_free_from_meminfo | ( | ) |
|
inline |
Obtain numpy type string from DataType.
[in] | data_type | Data type. |
Definition at line 154 of file Utils.h.
References ARM_COMPUTE_ERROR, arm_compute::test::validation::data_type, arm_compute::F16, arm_compute::F32, arm_compute::F64, arm_compute::QASYMM16, arm_compute::QASYMM8, arm_compute::QSYMM16, arm_compute::QSYMM8, arm_compute::QSYMM8_PER_CHANNEL, arm_compute::S16, arm_compute::S32, arm_compute::S64, arm_compute::S8, arm_compute::SIZET, arm_compute::support::cpp11::to_string(), arm_compute::U16, arm_compute::U32, arm_compute::U64, and arm_compute::U8.
Referenced by NPYLoader::fill_tensor().
|
inline |
Generates appropriate convolution verify accessor.
[in] | params | User supplied parameters for convolution. |
Definition at line 591 of file graph_validate_utils.h.
References ARM_COMPUTE_ERROR, CommonParams::data_type, arm_compute::F16, arm_compute::F32, and arm_compute::QASYMM8.
void arm_compute::utils::init_sgemm_output | ( | T & | dst, |
T & | src0, | ||
T & | src1, | ||
arm_compute::DataType | dt | ||
) |
bool arm_compute::utils::is_in | ( | E | check, |
std::initializer_list< E > | list | ||
) |
Check if the given value is in the given enum value list.
E | The type of the enum |
[in] | check | Value to check |
[in] | list | List of enum values to check against |
void arm_compute::utils::load_trained_data | ( | T & | tensor, |
const std::string & | filename | ||
) |
Load the tensor with pre-trained data from a binary file.
[in] | tensor | The tensor to be filled. Data type supported: F32. |
[in] | filename | Filename of the binary file to load from. |
Definition at line 666 of file Utils.h.
References ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN, ARM_COMPUTE_ERROR_VAR, Window::DimX, arm_compute::execute_window_loop(), arm_compute::F32, map(), Iterator::ptr(), Window::set(), tensor, and unmap().
|
inline |
Maps a tensor if needed.
[in] | tensor | Tensor to be mapped |
[in] | blocking | Specified if map is blocking or not |
Definition at line 212 of file Utils.h.
References ARM_COMPUTE_UNUSED, and tensor.
Referenced by GEMMParam::__str__(), NativeGEMMConfig::__str__(), ReshapedOnlyRHSGEMMConfig::__str__(), ReshapedGEMMConfig::__str__(), Measurement::__str__(), compare_tensor(), IImageLoader::fill_image(), IImageLoader::fill_planar_tensor(), fill_random_tensor(), NPYLoader::fill_tensor(), fill_tensor_value(), fill_tensor_vector(), load_trained_data(), GemmTuner::parse_benchmark_commandline(), GEMMParam::parse_from_strs(), NativeGEMMConfig::parse_from_strs(), ReshapedOnlyRHSGEMMConfig::parse_from_strs(), ReshapedGEMMConfig::parse_from_strs(), save_to_npy(), and save_to_ppm().
std::ostream & operator<< | ( | ::std::ostream & | os, |
const CommonGraphParams & | common_params | ||
) |
Formatted output of the CommonGraphParams type.
[out] | os | Output stream. |
[in] | common_params | Common parameters to output |
Definition at line 77 of file CommonGraphOptions.cpp.
References CommonGraphParams::data_layout, CommonGraphParams::data_path, CommonGraphParams::data_type, CommonGraphParams::enable_cl_cache, CommonGraphParams::enable_tuner, arm_compute::graph::Enabled, CommonGraphParams::fast_math_hint, CommonGraphParams::image, CommonGraphParams::labels, CommonGraphParams::mlgo_file, CommonGraphParams::target, CommonGraphParams::threads, CommonGraphParams::tuner_file, CommonGraphParams::tuner_mode, CommonGraphParams::validation_file, CommonGraphParams::validation_path, CommonGraphParams::validation_range_end, and CommonGraphParams::validation_range_start.
inline ::std::ostream& arm_compute::utils::operator<< | ( | ::std::ostream & | os, |
ConvolutionPaddingMode | Mode | ||
) |
Formatted output of the ConvolutionPaddingMode type.
[out] | os | Output stream. |
[in] | Mode | ConvolutionPaddingMode to output |
Definition at line 85 of file graph_validate_utils.h.
inline ::std::istream& arm_compute::utils::operator>> | ( | ::std::istream & | stream, |
ConvolutionPaddingMode & | Mode | ||
) |
Stream Input operator for the ConvolutionPaddingMode type.
[in] | stream | Input stream. |
[out] | Mode | Convolution parameters to output |
Definition at line 52 of file graph_validate_utils.h.
References Manual, Same, arm_compute::utility::tolower(), and Valid.
npy::header_t parse_npy_header | ( | std::ifstream & | fs | ) |
Parse the npy header from an input file stream.
At the end of the execution, the file position pointer will be located at the first pixel stored in the npy file //TODO
[in] | fs | Input file stream to parse |
Definition at line 233 of file Utils.cpp.
References arm_compute::mlgo::parser::header(), arm_compute::test::validation::reference::reverse(), and arm_compute::test::validation::shape.
Referenced by NPYLoader::open().
std::tuple< unsigned int, unsigned int, int > parse_ppm_header | ( | std::ifstream & | fs | ) |
Parse the ppm header from an input file stream.
At the end of the execution, the file position pointer will be located at the first pixel stored in the ppm file
[in] | fs | Input file stream to parse |
Definition at line 202 of file Utils.cpp.
References ARM_COMPUTE_ERROR_ON_MSG, and ARM_COMPUTE_UNUSED.
Referenced by PPMLoader::open().
int arm_compute::utils::run_example | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 107 of file Utils.h.
References run_example().
int run_example | ( | int | argc, |
char ** | argv, | ||
std::unique_ptr< Example > | example | ||
) |
Run an example and handle the potential exceptions it throws.
[in] | argc | Number of command line arguments |
[in] | argv | Command line arguments |
[in] | example | Example to run |
Definition at line 95 of file RunExample.cpp.
References CommonOptions::create_printers(), Framework::get(), CommonOptions::help, Option::is_set(), GemmTuner::parser, Option::set_help(), and SimpleOption< T >::value().
Referenced by run_example().
int run_example | ( | int | argc, |
char ** | argv, | ||
std::unique_ptr< ValidateExample > | example | ||
) |
Run an example and handle the potential exceptions it throws.
[in] | argc | Number of command line arguments |
[in] | argv | Command line arguments |
[in] | example | Example to run |
Definition at line 109 of file RunExample.cpp.
References CommonOptions::create_printers(), Framework::get(), CommonOptions::help, Option::is_set(), GemmTuner::parser, Option::set_help(), arm_compute::validate(), and SimpleOption< T >::value().
void arm_compute::utils::save_to_npy | ( | T & | tensor, |
const std::string & | npy_filename, | ||
bool | fortran_order | ||
) |
Template helper function to save a tensor image to a NPY file.
[in] | tensor | The tensor to save as NPY file |
[in] | npy_filename | Filename of the file to create. |
[in] | fortran_order | If true, save matrix in fortran order. |
Definition at line 611 of file Utils.h.
References ARM_COMPUTE_ERROR_ON_DATA_TYPE_NOT_IN, ARM_COMPUTE_ERROR_VAR, arm_compute::execute_window_loop(), arm_compute::F32, arm_compute::mlgo::parser::header(), map(), Iterator::ptr(), arm_compute::QASYMM8, arm_compute::test::validation::shape, tensor, type, unmap(), and Window::use_tensor_dimensions().
Referenced by SaveNumPyAccessor::access_tensor().
void arm_compute::utils::save_to_ppm | ( | T & | tensor, |
const std::string & | ppm_filename | ||
) |
Template helper function to save a tensor image to a PPM file.
[in] | tensor | The tensor to save as PPM file |
[in] | ppm_filename | Filename of the file to create. |
Definition at line 531 of file Utils.h.
References ARM_COMPUTE_ERROR, ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_ERROR_ON_FORMAT_NOT_IN, ARM_COMPUTE_ERROR_VAR, Window::DimX, Window::DimY, arm_compute::execute_window_loop(), map(), Iterator::ptr(), arm_compute::RGB888, Window::set(), tensor, arm_compute::U8, and unmap().
Referenced by PPMWriter::access_tensor().
void schedule_kernel_on_ctx | ( | IRuntimeContext * | ctx, |
ICPPKernel * | kernel, | ||
const IScheduler::Hints & | hints | ||
) |
Schedules a kernel using the context if not nullptr else uses the legacy scheduling flow.
[in] | ctx | Context to use. |
[in] | kernel | Kernel to schedule. |
[in] | hints | Hints to use. |
Definition at line 55 of file Utils.cpp.
References ARM_COMPUTE_ERROR_ON, Scheduler::get(), IScheduler::schedule(), and IRuntimeContext::scheduler().
Referenced by INESimpleFunctionNoBorder::run().
const std::string & string_from_scheduler_type | ( | Scheduler::Type | t | ) |
Convert a Scheduler::Type into a string.
[in] | t | Scheduler::Type to be translated to string. |
Definition at line 42 of file Utils.cpp.
References Scheduler::CPP, Scheduler::CUSTOM, Scheduler::OMP, Scheduler::ST, and tf_frozen_model_extractor::t.
|
inline |
Unmaps a tensor if needed.
tensor | Tensor to be unmapped |
Definition at line 223 of file Utils.h.
References ARM_COMPUTE_UNUSED, and tensor.
Referenced by compare_tensor(), IImageLoader::fill_image(), IImageLoader::fill_planar_tensor(), fill_random_tensor(), NPYLoader::fill_tensor(), fill_tensor_value(), fill_tensor_vector(), load_trained_data(), save_to_npy(), and save_to_ppm().