ArmNN
 23.05
OptimizerOptionsOpaqueImpl Struct Reference

#include <Network.hpp>

Public Member Functions

 ~OptimizerOptionsOpaqueImpl ()=default
 
 OptimizerOptionsOpaqueImpl ()
 
 OptimizerOptionsOpaqueImpl (bool reduceFp32ToFp16, bool debug, bool reduceFp32ToBf16, bool importEnabled, ModelOptions modelOptions={}, bool exportEnabled=false, bool debugToFile=false)
 
 OptimizerOptionsOpaqueImpl (bool reduceFp32ToFp16, bool debug, bool reduceFp32ToBf16, ShapeInferenceMethod shapeInferenceMethod, bool importEnabled, ModelOptions modelOptions, bool exportEnabled, bool debugToFile, bool allowExpandedDims)
 

Public Attributes

bool m_ReduceFp32ToFp16 = false
 Reduces all Fp32 operators in the model to Fp16 for faster processing. More...
 
bool m_Debug = false
 Add debug data for easier troubleshooting. More...
 
bool m_DebugToFile = false
 Pass debug data to separate output files for easier troubleshooting. More...
 
bool m_ReduceFp32ToBf16 = false
 @Note This feature has been replaced by enabling Fast Math in compute library backend options. More...
 
ShapeInferenceMethod m_shapeInferenceMethod = armnn::ShapeInferenceMethod::ValidateOnly
 Infer output size when not available. More...
 
bool m_ImportEnabled = false
 Enable Import. More...
 
ModelOptions m_ModelOptions
 Enable Model Options. More...
 
bool m_ProfilingEnabled = false
 Enable profiling dump of the optimizer phase. More...
 
bool m_ExportEnabled = false
 Enable Export. More...
 
bool m_AllowExpandedDims = false
 When calculating tensor sizes, dimensions of size == 1 will be ignored. More...
 

Detailed Description

Definition at line 296 of file Network.hpp.

Constructor & Destructor Documentation

◆ ~OptimizerOptionsOpaqueImpl()

◆ OptimizerOptionsOpaqueImpl() [1/3]

OptimizerOptionsOpaqueImpl ( )
inlineexplicit

Definition at line 300 of file Network.hpp.

301  : m_ReduceFp32ToFp16(false)
302  , m_Debug(false)
303  , m_DebugToFile(false)
304  , m_ReduceFp32ToBf16(false)
306  , m_ImportEnabled(false)
307  , m_ModelOptions()
308  , m_ProfilingEnabled(false)
309  , m_ExportEnabled(false)
310  , m_AllowExpandedDims(false)
311  {
312  }

References armnn::ValidateOnly.

◆ OptimizerOptionsOpaqueImpl() [2/3]

OptimizerOptionsOpaqueImpl ( bool  reduceFp32ToFp16,
bool  debug,
bool  reduceFp32ToBf16,
bool  importEnabled,
ModelOptions  modelOptions = {},
bool  exportEnabled = false,
bool  debugToFile = false 
)
inlineexplicit

Definition at line 314 of file Network.hpp.

315  {},
316  bool exportEnabled = false, bool debugToFile = false)
317  : m_ReduceFp32ToFp16(reduceFp32ToFp16)
318  , m_Debug(debug)
319  , m_DebugToFile(debugToFile)
320  , m_ReduceFp32ToBf16(reduceFp32ToBf16)
322  , m_ImportEnabled(importEnabled)
323  , m_ModelOptions(modelOptions)
324  , m_ProfilingEnabled(false)
325  , m_ExportEnabled(exportEnabled)
326  , m_AllowExpandedDims(false)
327  {
328  }

◆ OptimizerOptionsOpaqueImpl() [3/3]

OptimizerOptionsOpaqueImpl ( bool  reduceFp32ToFp16,
bool  debug,
bool  reduceFp32ToBf16,
ShapeInferenceMethod  shapeInferenceMethod,
bool  importEnabled,
ModelOptions  modelOptions,
bool  exportEnabled,
bool  debugToFile,
bool  allowExpandedDims 
)
inlineexplicit

Definition at line 330 of file Network.hpp.

334  : m_ReduceFp32ToFp16(reduceFp32ToFp16)
335  , m_Debug(debug)
336  , m_DebugToFile(debugToFile)
337  , m_ReduceFp32ToBf16(reduceFp32ToBf16)
338  , m_shapeInferenceMethod(shapeInferenceMethod)
339  , m_ImportEnabled(importEnabled)
340  , m_ModelOptions(modelOptions)
341  , m_ProfilingEnabled(false)
342  , m_ExportEnabled(exportEnabled)
343  , m_AllowExpandedDims(allowExpandedDims)
344  {
345  }

References armnn::debug.

Member Data Documentation

◆ m_AllowExpandedDims

bool m_AllowExpandedDims = false

When calculating tensor sizes, dimensions of size == 1 will be ignored.

Definition at line 380 of file Network.hpp.

◆ m_Debug

bool m_Debug = false

Add debug data for easier troubleshooting.

Definition at line 355 of file Network.hpp.

◆ m_DebugToFile

bool m_DebugToFile = false

Pass debug data to separate output files for easier troubleshooting.

Definition at line 358 of file Network.hpp.

◆ m_ExportEnabled

bool m_ExportEnabled = false

Enable Export.

Definition at line 377 of file Network.hpp.

◆ m_ImportEnabled

bool m_ImportEnabled = false

Enable Import.

Definition at line 368 of file Network.hpp.

◆ m_ModelOptions

ModelOptions m_ModelOptions

Enable Model Options.

Definition at line 371 of file Network.hpp.

◆ m_ProfilingEnabled

bool m_ProfilingEnabled = false

Enable profiling dump of the optimizer phase.

Definition at line 374 of file Network.hpp.

◆ m_ReduceFp32ToBf16

bool m_ReduceFp32ToBf16 = false

@Note This feature has been replaced by enabling Fast Math in compute library backend options.

This is currently a placeholder option

Definition at line 362 of file Network.hpp.

◆ m_ReduceFp32ToFp16

bool m_ReduceFp32ToFp16 = false

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 352 of file Network.hpp.

◆ m_shapeInferenceMethod

Infer output size when not available.

Definition at line 365 of file Network.hpp.


The documentation for this struct was generated from the following file:
armnn::OptimizerOptionsOpaqueImpl::m_Debug
bool m_Debug
Add debug data for easier troubleshooting.
Definition: Network.hpp:355
armnn::OptimizerOptionsOpaqueImpl::m_ImportEnabled
bool m_ImportEnabled
Enable Import.
Definition: Network.hpp:368
armnn::ShapeInferenceMethod::ValidateOnly
@ ValidateOnly
Validate all output shapes.
armnn::OptimizerOptionsOpaqueImpl::m_AllowExpandedDims
bool m_AllowExpandedDims
When calculating tensor sizes, dimensions of size == 1 will be ignored.
Definition: Network.hpp:380
armnn::OptimizerOptionsOpaqueImpl::m_ProfilingEnabled
bool m_ProfilingEnabled
Enable profiling dump of the optimizer phase.
Definition: Network.hpp:374
armnn::OptimizerOptionsOpaqueImpl::m_ModelOptions
ModelOptions m_ModelOptions
Enable Model Options.
Definition: Network.hpp:371
armnn::OptimizerOptionsOpaqueImpl::m_ReduceFp32ToBf16
bool m_ReduceFp32ToBf16
@Note This feature has been replaced by enabling Fast Math in compute library backend options.
Definition: Network.hpp:362
armnn::OptimizerOptionsOpaqueImpl::m_DebugToFile
bool m_DebugToFile
Pass debug data to separate output files for easier troubleshooting.
Definition: Network.hpp:358
armnn::OptimizerOptionsOpaqueImpl::m_shapeInferenceMethod
ShapeInferenceMethod m_shapeInferenceMethod
Infer output size when not available.
Definition: Network.hpp:365
armnn::OptimizerOptionsOpaqueImpl::m_ReduceFp32ToFp16
bool m_ReduceFp32ToFp16
Reduces all Fp32 operators in the model to Fp16 for faster processing.
Definition: Network.hpp:352
armnn::OptimizerOptionsOpaqueImpl::m_ExportEnabled
bool m_ExportEnabled
Enable Export.
Definition: Network.hpp:377