ArmNN
 24.08
OptimizationResult Struct Reference

#include <Network.hpp>

Public Member Functions

 OptimizationResult (bool warning, bool error)
 
 OptimizationResult ()
 
bool IsOk () const
 
bool IsWarningOnly () const
 
bool IsError () const
 

Public Attributes

bool m_Warning
 
bool m_Error
 

Detailed Description

Definition at line 263 of file Network.hpp.

Constructor & Destructor Documentation

◆ OptimizationResult() [1/2]

OptimizationResult ( bool  warning,
bool  error 
)
inline

Definition at line 268 of file Network.hpp.

269  : m_Warning(warning), m_Error(error)
270  {}

References armnn::error, and armnn::warning.

◆ OptimizationResult() [2/2]

OptimizationResult ( )
inline

Definition at line 272 of file Network.hpp.

273  : OptimizationResult(false, false)
274  {}

Member Function Documentation

◆ IsError()

bool IsError ( ) const
inline

Definition at line 280 of file Network.hpp.

281  { return m_Error; }

Referenced by armnn::AssignBackendsIConnectable().

◆ IsOk()

bool IsOk ( ) const
inline

Definition at line 276 of file Network.hpp.

277  { return !m_Warning && !m_Error; }

Referenced by armnn::AssignBackendsIConnectable().

◆ IsWarningOnly()

bool IsWarningOnly ( ) const
inline

Definition at line 278 of file Network.hpp.

279  { return m_Warning && !m_Error; }

Member Data Documentation

◆ m_Error

◆ m_Warning

bool m_Warning

Definition at line 265 of file Network.hpp.


The documentation for this struct was generated from the following file:
armnn::OptimizationResult::m_Error
bool m_Error
Definition: Network.hpp:266
armnn::OptimizationResult::OptimizationResult
OptimizationResult()
Definition: Network.hpp:272
armnn::OptimizationResult::m_Warning
bool m_Warning
Definition: Network.hpp:265