24.02.1
|
Common command line options used to configure the graph examples. More...
#include <CommonGraphOptions.h>
Public Member Functions | |
CommonGraphOptions (CommandLineParser &parser) | |
Constructor. More... | |
CommonGraphOptions (const CommonGraphOptions &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CommonGraphOptions & | operator= (const CommonGraphOptions &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CommonGraphOptions (CommonGraphOptions &&)=default | |
Allow instances of this class to be moved. More... | |
CommonGraphOptions & | operator= (CommonGraphOptions &&)=default |
Allow instances of this class to be moved. More... | |
~CommonGraphOptions ()=default | |
Default destructor. More... | |
Data Fields | |
ToggleOption * | help |
Show help option. More... | |
SimpleOption< int > * | threads |
Number of threads option. More... | |
SimpleOption< int > * | batches |
Number of batches. More... | |
EnumOption< arm_compute::graph::Target > * | target |
Graph execution target. More... | |
EnumOption< arm_compute::DataType > * | data_type |
Graph data type. More... | |
EnumOption< arm_compute::DataLayout > * | data_layout |
Graph data layout. More... | |
ToggleOption * | enable_tuner |
Enable tuner. More... | |
ToggleOption * | enable_cl_cache |
Enable opencl kernels cache. More... | |
SimpleOption< arm_compute::CLTunerMode > * | tuner_mode |
Tuner mode. More... | |
ToggleOption * | fast_math_hint |
Fast math hint. More... | |
SimpleOption< std::string > * | data_path |
Trainable parameters path. More... | |
SimpleOption< std::string > * | image |
Image. More... | |
SimpleOption< std::string > * | labels |
Labels. More... | |
SimpleOption< std::string > * | validation_file |
Validation file. More... | |
SimpleOption< std::string > * | validation_path |
Validation data path. More... | |
SimpleOption< std::string > * | validation_range |
Validation range. More... | |
SimpleOption< std::string > * | tuner_file |
File to load/store the tuner's values from. More... | |
SimpleOption< std::string > * | mlgo_file |
File to load the MLGO heuristics from. More... | |
Common command line options used to configure the graph examples.
The options in this object get populated when "parse()" is called on the parser used to construct it. The expected workflow is:
CommandLineParser parser; CommonOptions options( parser ); parser.parse(argc, argv);
Definition at line 134 of file CommonGraphOptions.h.
CommonGraphOptions | ( | CommandLineParser & | parser | ) |
Constructor.
[in,out] | parser | A parser on which "parse()" hasn't been called yet. |
Definition at line 119 of file CommonGraphOptions.cpp.
References CommonGraphOptions::batches, CommonGraphOptions::data_layout, CommonGraphOptions::data_path, CommonGraphOptions::data_type, CommonGraphOptions::enable_cl_cache, CommonGraphOptions::enable_tuner, arm_compute::EXHAUSTIVE, arm_compute::F16, arm_compute::F32, CommonGraphOptions::fast_math_hint, CommonGraphOptions::help, CommonGraphOptions::image, CommonGraphOptions::labels, CommonGraphOptions::mlgo_file, arm_compute::NCHW, arm_compute::NHWC, arm_compute::NORMAL, GemmTuner::parser, arm_compute::QASYMM8, arm_compute::QASYMM8_SIGNED, arm_compute::RAPID, Option::set_help(), CommonGraphOptions::target, CommonGraphOptions::threads, CommonGraphOptions::tuner_file, CommonGraphOptions::tuner_mode, CommonGraphOptions::validation_file, CommonGraphOptions::validation_path, and CommonGraphOptions::validation_range.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Allow instances of this class to be moved.
|
default |
Default destructor.
|
default |
Allow instances of this class to be moved.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
SimpleOption<int>* batches |
Number of batches.
Definition at line 155 of file CommonGraphOptions.h.
Referenced by CommonGraphOptions::CommonGraphOptions(), and arm_compute::utils::consume_common_graph_parameters().
EnumOption<arm_compute::DataLayout>* data_layout |
Graph data layout.
Definition at line 158 of file CommonGraphOptions.h.
Referenced by CommonGraphOptions::CommonGraphOptions(), and arm_compute::utils::consume_common_graph_parameters().
SimpleOption<std::string>* data_path |
Trainable parameters path.
Definition at line 163 of file CommonGraphOptions.h.
Referenced by CommonGraphOptions::CommonGraphOptions(), and arm_compute::utils::consume_common_graph_parameters().
EnumOption<arm_compute::DataType>* data_type |
Graph data type.
Definition at line 157 of file CommonGraphOptions.h.
Referenced by CommonGraphOptions::CommonGraphOptions(), and arm_compute::utils::consume_common_graph_parameters().
ToggleOption* enable_cl_cache |
Enable opencl kernels cache.
Definition at line 160 of file CommonGraphOptions.h.
Referenced by CommonGraphOptions::CommonGraphOptions(), and arm_compute::utils::consume_common_graph_parameters().
ToggleOption* enable_tuner |
Enable tuner.
Definition at line 159 of file CommonGraphOptions.h.
Referenced by CommonGraphOptions::CommonGraphOptions(), and arm_compute::utils::consume_common_graph_parameters().
ToggleOption* fast_math_hint |
Fast math hint.
Definition at line 162 of file CommonGraphOptions.h.
Referenced by CommonGraphOptions::CommonGraphOptions(), and arm_compute::utils::consume_common_graph_parameters().
ToggleOption* help |
Show help option.
Definition at line 153 of file CommonGraphOptions.h.
Referenced by CommonGraphOptions::CommonGraphOptions(), and arm_compute::utils::consume_common_graph_parameters().
SimpleOption<std::string>* image |
Definition at line 164 of file CommonGraphOptions.h.
Referenced by CommonGraphOptions::CommonGraphOptions(), and arm_compute::utils::consume_common_graph_parameters().
SimpleOption<std::string>* labels |
Labels.
Definition at line 165 of file CommonGraphOptions.h.
Referenced by CommonGraphOptions::CommonGraphOptions(), and arm_compute::utils::consume_common_graph_parameters().
SimpleOption<std::string>* mlgo_file |
File to load the MLGO heuristics from.
Definition at line 170 of file CommonGraphOptions.h.
Referenced by CommonGraphOptions::CommonGraphOptions(), and arm_compute::utils::consume_common_graph_parameters().
EnumOption<arm_compute::graph::Target>* target |
Graph execution target.
Definition at line 156 of file CommonGraphOptions.h.
Referenced by CommonGraphOptions::CommonGraphOptions(), and arm_compute::utils::consume_common_graph_parameters().
SimpleOption<int>* threads |
Number of threads option.
Definition at line 154 of file CommonGraphOptions.h.
Referenced by CommonGraphOptions::CommonGraphOptions(), and arm_compute::utils::consume_common_graph_parameters().
SimpleOption<std::string>* tuner_file |
File to load/store the tuner's values from.
Definition at line 169 of file CommonGraphOptions.h.
Referenced by CommonGraphOptions::CommonGraphOptions(), and arm_compute::utils::consume_common_graph_parameters().
SimpleOption<arm_compute::CLTunerMode>* tuner_mode |
Tuner mode.
Definition at line 161 of file CommonGraphOptions.h.
Referenced by CommonGraphOptions::CommonGraphOptions(), and arm_compute::utils::consume_common_graph_parameters().
SimpleOption<std::string>* validation_file |
Validation file.
Definition at line 166 of file CommonGraphOptions.h.
Referenced by CommonGraphOptions::CommonGraphOptions(), and arm_compute::utils::consume_common_graph_parameters().
SimpleOption<std::string>* validation_path |
Validation data path.
Definition at line 167 of file CommonGraphOptions.h.
Referenced by CommonGraphOptions::CommonGraphOptions(), and arm_compute::utils::consume_common_graph_parameters().
SimpleOption<std::string>* validation_range |
Validation range.
Definition at line 168 of file CommonGraphOptions.h.
Referenced by CommonGraphOptions::CommonGraphOptions(), and arm_compute::utils::consume_common_graph_parameters().