ArmNN
 25.11
Loading...
Searching...
No Matches
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, m_Error, m_Warning, and armnn::warning.

Referenced by OptimizationResult().

◆ OptimizationResult() [2/2]

OptimizationResult ( )
inline

Definition at line 272 of file Network.hpp.

273 : OptimizationResult(false, false)
274 {}

References OptimizationResult().

Member Function Documentation

◆ IsError()

bool IsError ( ) const
inline

Definition at line 280 of file Network.hpp.

281 { return m_Error; }

References 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; }

References m_Error, and m_Warning.

Referenced by armnn::AssignBackendsIConnectable().

◆ IsWarningOnly()

bool IsWarningOnly ( ) const
inline

Definition at line 278 of file Network.hpp.

279 { return m_Warning && !m_Error; }

References m_Error, and m_Warning.

Referenced by armnn::AssignBackendsIConnectable().

Member Data Documentation

◆ m_Error

◆ m_Warning

bool m_Warning

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