ArmNN
 20.02
NeonLayerSupportTests.cpp File Reference

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (IsLayerSupportedFloat16Neon)
 
 BOOST_AUTO_TEST_CASE (IsLayerSupportedFloat32Neon)
 
 BOOST_AUTO_TEST_CASE (IsLayerSupportedQAsymmU8Neon)
 
 BOOST_AUTO_TEST_CASE (IsLayerSupportedQAsymmS8Neon)
 
 BOOST_AUTO_TEST_CASE (IsLayerSupportedQSymmS8Neon)
 
 BOOST_AUTO_TEST_CASE (IsConvertFp16ToFp32SupportedNeon)
 
 BOOST_AUTO_TEST_CASE (IsConvertFp32ToFp16SupportedNeon)
 
 BOOST_AUTO_TEST_CASE (IsMeanSupportedNeon)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/8]

BOOST_AUTO_TEST_CASE ( IsLayerSupportedFloat16Neon  )

Definition at line 23 of file NeonLayerSupportTests.cpp.

24 {
26  NeonWorkloadFactoryHelper::GetFactory(NeonWorkloadFactoryHelper::GetMemoryManager());
27  IsLayerSupportedTests<armnn::NeonWorkloadFactory, armnn::DataType::Float16>(&factory);
28 }

◆ BOOST_AUTO_TEST_CASE() [2/8]

BOOST_AUTO_TEST_CASE ( IsLayerSupportedFloat32Neon  )

Definition at line 30 of file NeonLayerSupportTests.cpp.

31 {
33  NeonWorkloadFactoryHelper::GetFactory(NeonWorkloadFactoryHelper::GetMemoryManager());
34  IsLayerSupportedTests<armnn::NeonWorkloadFactory, armnn::DataType::Float32>(&factory);
35 }

◆ BOOST_AUTO_TEST_CASE() [3/8]

BOOST_AUTO_TEST_CASE ( IsLayerSupportedQAsymmU8Neon  )

Definition at line 37 of file NeonLayerSupportTests.cpp.

38 {
40  NeonWorkloadFactoryHelper::GetFactory(NeonWorkloadFactoryHelper::GetMemoryManager());
41  IsLayerSupportedTests<armnn::NeonWorkloadFactory, armnn::DataType::QAsymmU8>(&factory);
42 }

◆ BOOST_AUTO_TEST_CASE() [4/8]

BOOST_AUTO_TEST_CASE ( IsLayerSupportedQAsymmS8Neon  )

Definition at line 44 of file NeonLayerSupportTests.cpp.

45 {
47  NeonWorkloadFactoryHelper::GetFactory(NeonWorkloadFactoryHelper::GetMemoryManager());
48  IsLayerSupportedTests<armnn::NeonWorkloadFactory, armnn::DataType::QAsymmS8>(&factory);
49 }

◆ BOOST_AUTO_TEST_CASE() [5/8]

BOOST_AUTO_TEST_CASE ( IsLayerSupportedQSymmS8Neon  )

Definition at line 51 of file NeonLayerSupportTests.cpp.

52 {
54  NeonWorkloadFactoryHelper::GetFactory(NeonWorkloadFactoryHelper::GetMemoryManager());
55  IsLayerSupportedTests<armnn::NeonWorkloadFactory, armnn::DataType::QSymmS8>(&factory);
56 }

◆ BOOST_AUTO_TEST_CASE() [6/8]

BOOST_AUTO_TEST_CASE ( IsConvertFp16ToFp32SupportedNeon  )

Definition at line 58 of file NeonLayerSupportTests.cpp.

References BOOST_CHECK(), armnn::Float16, and armnn::Float32.

59 {
60  std::string reasonIfUnsupported;
61 
62  bool result = IsConvertLayerSupportedTests<armnn::NeonWorkloadFactory, armnn::ConvertFp16ToFp32Layer,
64 
65  BOOST_CHECK(result);
66 }
This layer converts data type Float 16 to Float 32.
BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)

◆ BOOST_AUTO_TEST_CASE() [7/8]

BOOST_AUTO_TEST_CASE ( IsConvertFp32ToFp16SupportedNeon  )

Definition at line 68 of file NeonLayerSupportTests.cpp.

References BOOST_CHECK(), armnn::Float16, and armnn::Float32.

69 {
70  std::string reasonIfUnsupported;
71 
72  bool result = IsConvertLayerSupportedTests<armnn::NeonWorkloadFactory, armnn::ConvertFp32ToFp16Layer,
74 
75  BOOST_CHECK(result);
76 }
BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)
This layer converts data type Float 32 to Float 16.

◆ BOOST_AUTO_TEST_CASE() [8/8]

BOOST_AUTO_TEST_CASE ( IsMeanSupportedNeon  )

Definition at line 78 of file NeonLayerSupportTests.cpp.

References BOOST_AUTO_TEST_SUITE_END(), BOOST_CHECK(), and armnn::Float32.

79 {
80  std::string reasonIfUnsupported;
81 
82  bool result = IsMeanLayerSupportedTests<armnn::NeonWorkloadFactory,
83  armnn::DataType::Float32, armnn::DataType::Float32>(reasonIfUnsupported);
84 
85  BOOST_CHECK(result);
86 }
BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)