ArmNN
 22.02
LayerTestResult< T, n > Struct Template Reference

#include <LayerTestResult.hpp>

Public Member Functions

 LayerTestResult (const armnn::TensorInfo &outputInfo)
 
 LayerTestResult (const std::vector< T > &actualData, const std::vector< T > &expectedData, const armnn::TensorShape &actualShape, const armnn::TensorShape &expectedShape)
 
 LayerTestResult (const std::vector< T > &actualData, const std::vector< T > &expectedData, const armnn::TensorShape &actualShape, const armnn::TensorShape &expectedShape, const bool compareBoolean)
 

Public Attributes

std::vector< T > m_ActualData
 
std::vector< T > m_ExpectedData
 
armnn::TensorShape m_ActualShape
 
armnn::TensorShape m_ExpectedShape
 
bool m_Supported
 
bool m_CompareBoolean
 

Detailed Description

template<typename T, std::size_t n>
struct LayerTestResult< T, n >

Definition at line 15 of file LayerTestResult.hpp.

Constructor & Destructor Documentation

◆ LayerTestResult() [1/3]

LayerTestResult ( const armnn::TensorInfo outputInfo)
inline

Definition at line 17 of file LayerTestResult.hpp.

References TensorInfo::GetNumElements(), TensorInfo::GetShape(), LayerTestResult< T, n >::m_ActualData, LayerTestResult< T, n >::m_ActualShape, LayerTestResult< T, n >::m_ExpectedData, and LayerTestResult< T, n >::m_ExpectedShape.

18  : m_Supported(true)
19  , m_CompareBoolean(false)
20  {
21  m_ActualData.reserve(outputInfo.GetNumElements());
22  m_ExpectedData.reserve(outputInfo.GetNumElements());
23  m_ActualShape = outputInfo.GetShape();
24  m_ExpectedShape = outputInfo.GetShape();
25  }
armnn::TensorShape m_ExpectedShape
const TensorShape & GetShape() const
Definition: Tensor.hpp:191
std::vector< T > m_ExpectedData
std::vector< T > m_ActualData
armnn::TensorShape m_ActualShape
unsigned int GetNumElements() const
Definition: Tensor.hpp:196

◆ LayerTestResult() [2/3]

LayerTestResult ( const std::vector< T > &  actualData,
const std::vector< T > &  expectedData,
const armnn::TensorShape actualShape,
const armnn::TensorShape expectedShape 
)
inline

Definition at line 27 of file LayerTestResult.hpp.

31  : m_ActualData(actualData)
32  , m_ExpectedData(expectedData)
33  , m_ActualShape(actualShape)
34  , m_ExpectedShape(expectedShape)
35  , m_Supported(true)
36  , m_CompareBoolean(false)
37  {}
armnn::TensorShape m_ExpectedShape
std::vector< T > m_ExpectedData
std::vector< T > m_ActualData
armnn::TensorShape m_ActualShape

◆ LayerTestResult() [3/3]

LayerTestResult ( const std::vector< T > &  actualData,
const std::vector< T > &  expectedData,
const armnn::TensorShape actualShape,
const armnn::TensorShape expectedShape,
const bool  compareBoolean 
)
inline

Definition at line 39 of file LayerTestResult.hpp.

44  : m_ActualData(actualData)
45  , m_ExpectedData(expectedData)
46  , m_ActualShape(actualShape)
47  , m_ExpectedShape(expectedShape)
48  , m_Supported(true)
49  , m_CompareBoolean(compareBoolean)
50  {}
armnn::TensorShape m_ExpectedShape
std::vector< T > m_ExpectedData
std::vector< T > m_ActualData
armnn::TensorShape m_ActualShape

Member Data Documentation

◆ m_ActualData

◆ m_ActualShape

◆ m_CompareBoolean

bool m_CompareBoolean

Definition at line 58 of file LayerTestResult.hpp.

Referenced by CompareTestResultIfSupported().

◆ m_ExpectedData

◆ m_ExpectedShape

◆ m_Supported

bool m_Supported

Definition at line 57 of file LayerTestResult.hpp.

Referenced by CompareTestResultIfSupported().


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