ArmNN
 20.05
OptimizerOptions Struct Reference

#include <INetwork.hpp>

Public Member Functions

 OptimizerOptions ()
 
 OptimizerOptions (bool reduceFp32ToFp16, bool debug, bool reduceFp32ToBf16=false)
 

Public Attributes

bool m_ReduceFp32ToFp16
 
bool m_Debug
 
bool m_ReduceFp32ToBf16
 

Detailed Description

Definition at line 589 of file INetwork.hpp.

Constructor & Destructor Documentation

◆ OptimizerOptions() [1/2]

OptimizerOptions ( )
inline

Definition at line 591 of file INetwork.hpp.

592  : m_ReduceFp32ToFp16(false)
593  , m_Debug(false)
594  , m_ReduceFp32ToBf16(false)
595  {}

◆ OptimizerOptions() [2/2]

OptimizerOptions ( bool  reduceFp32ToFp16,
bool  debug,
bool  reduceFp32ToBf16 = false 
)
inline

Definition at line 597 of file INetwork.hpp.

598  : m_ReduceFp32ToFp16(reduceFp32ToFp16)
599  , m_Debug(debug)
600  , m_ReduceFp32ToBf16(reduceFp32ToBf16)
601  {
603  {
604  throw InvalidArgumentException("BFloat16 and Float16 optimization cannot be enabled at the same time.");
605  }
606  }

Member Data Documentation

◆ m_Debug

◆ m_ReduceFp32ToBf16

bool m_ReduceFp32ToBf16

◆ m_ReduceFp32ToFp16

bool m_ReduceFp32ToFp16

The documentation for this struct was generated from the following file: