24.02
|
#include <INetwork.hpp>
Public Member Functions | |
OptimizerOptions () | |
OptimizerOptions (bool reduceFp32ToFp16, bool debug, bool reduceFp32ToBf16, bool importEnabled, ModelOptions modelOptions={}, bool exportEnabled=false, bool debugToFile=false) | |
OptimizerOptions (bool reduceFp32ToFp16, bool debug, bool reduceFp32ToBf16=false, ShapeInferenceMethod shapeInferenceMethod=armnn::ShapeInferenceMethod::ValidateOnly, bool importEnabled=false, ModelOptions modelOptions={}, bool exportEnabled=false, bool debugToFile=false, bool allowExpandedDims=false) | |
const std::string | ToString () const |
Public Attributes | |
bool | m_ReduceFp32ToFp16 |
Reduces all Fp32 operators in the model to Fp16 for faster processing. More... | |
bool | m_Debug |
Add debug data for easier troubleshooting. More... | |
bool | m_DebugToFile |
Pass debug data to separate output files for easier troubleshooting. More... | |
bool | m_ReduceFp32ToBf16 |
@Note This feature has been replaced by enabling Fast Math in compute library backend options. More... | |
ShapeInferenceMethod | m_shapeInferenceMethod |
Infer output size when not available. More... | |
bool | m_ImportEnabled |
Enable Import. More... | |
ModelOptions | m_ModelOptions |
Enable Model Options. More... | |
bool | m_ProfilingEnabled |
Enable profiling dump of the optimizer phase. More... | |
bool | m_ExportEnabled |
Enable Export. More... | |
bool | m_AllowExpandedDims |
When calculating tensor sizes, dimensions of size == 1 will be ignored. More... | |
Definition at line 151 of file INetwork.hpp.
|
inline |
Definition at line 154 of file INetwork.hpp.
|
inline |
Definition at line 168 of file INetwork.hpp.
|
inline |
Definition at line 184 of file INetwork.hpp.
|
inline |
Definition at line 201 of file INetwork.hpp.
References BackendOptions::BackendOption::GetName(), BackendOptions::BackendOption::GetValue(), OptimizerOptions::m_AllowExpandedDims, OptimizerOptions::m_Debug, OptimizerOptions::m_DebugToFile, OptimizerOptions::m_ExportEnabled, OptimizerOptions::m_ImportEnabled, OptimizerOptions::m_ModelOptions, OptimizerOptions::m_ProfilingEnabled, OptimizerOptions::m_ReduceFp32ToBf16, OptimizerOptions::m_ReduceFp32ToFp16, OptimizerOptions::m_shapeInferenceMethod, BackendOptions::Var::ToString(), and armnn::ValidateOnly.
bool m_AllowExpandedDims |
When calculating tensor sizes, dimensions of size == 1 will be ignored.
Definition at line 265 of file INetwork.hpp.
Referenced by OptimizerOptionsOpaque::OptimizerOptionsOpaque(), and OptimizerOptions::ToString().
bool m_Debug |
Add debug data for easier troubleshooting.
Definition at line 240 of file INetwork.hpp.
Referenced by OptimizerOptionsOpaque::OptimizerOptionsOpaque(), and OptimizerOptions::ToString().
bool m_DebugToFile |
Pass debug data to separate output files for easier troubleshooting.
Definition at line 243 of file INetwork.hpp.
Referenced by OptimizerOptionsOpaque::OptimizerOptionsOpaque(), and OptimizerOptions::ToString().
bool m_ExportEnabled |
Enable Export.
Definition at line 262 of file INetwork.hpp.
Referenced by OptimizerOptionsOpaque::OptimizerOptionsOpaque(), and OptimizerOptions::ToString().
bool m_ImportEnabled |
Enable Import.
Definition at line 253 of file INetwork.hpp.
Referenced by OptimizerOptionsOpaque::OptimizerOptionsOpaque(), and OptimizerOptions::ToString().
ModelOptions m_ModelOptions |
Enable Model Options.
Definition at line 256 of file INetwork.hpp.
Referenced by OptimizerOptionsOpaque::OptimizerOptionsOpaque(), and OptimizerOptions::ToString().
bool m_ProfilingEnabled |
Enable profiling dump of the optimizer phase.
Definition at line 259 of file INetwork.hpp.
Referenced by OptimizerOptionsOpaque::OptimizerOptionsOpaque(), and OptimizerOptions::ToString().
bool m_ReduceFp32ToBf16 |
@Note This feature has been replaced by enabling Fast Math in compute library backend options.
This is currently a placeholder option
Definition at line 247 of file INetwork.hpp.
Referenced by OptimizerOptionsOpaque::OptimizerOptionsOpaque(), and OptimizerOptions::ToString().
bool m_ReduceFp32ToFp16 |
Reduces all Fp32 operators in the model to Fp16 for faster processing.
@Note This feature works best if all operators of the model are in Fp32. ArmNN will add conversion layers between layers that weren't in Fp32 in the first place or if the operator is not supported in Fp16. The overhead of these conversions can lead to a slower overall performance if too many conversions are required.
Definition at line 237 of file INetwork.hpp.
Referenced by OptimizerOptionsOpaque::OptimizerOptionsOpaque(), and OptimizerOptions::ToString().
ShapeInferenceMethod m_shapeInferenceMethod |
Infer output size when not available.
Definition at line 250 of file INetwork.hpp.
Referenced by OptimizerOptionsOpaque::OptimizerOptionsOpaque(), and OptimizerOptions::ToString().