ArmNN  NotReleased
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 (IsLayerSupportedUint8Neon)
 
 BOOST_AUTO_TEST_CASE (IsLayerSupportedInt8Neon)
 
 BOOST_AUTO_TEST_CASE (IsConvertFp16ToFp32SupportedNeon)
 
 BOOST_AUTO_TEST_CASE (IsConvertFp32ToFp16SupportedNeon)
 
 BOOST_AUTO_TEST_CASE (IsMeanSupportedNeon)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/7]

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/7]

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/7]

BOOST_AUTO_TEST_CASE ( IsLayerSupportedUint8Neon  )

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/7]

BOOST_AUTO_TEST_CASE ( IsLayerSupportedInt8Neon  )

Definition at line 44 of file NeonLayerSupportTests.cpp.

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

◆ BOOST_AUTO_TEST_CASE() [5/7]

BOOST_AUTO_TEST_CASE ( IsConvertFp16ToFp32SupportedNeon  )

Definition at line 51 of file NeonLayerSupportTests.cpp.

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

52 {
53  std::string reasonIfUnsupported;
54 
55  bool result = IsConvertLayerSupportedTests<armnn::NeonWorkloadFactory, armnn::ConvertFp16ToFp32Layer,
57 
58  BOOST_CHECK(result);
59 }
BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)
This layer converts data type Float 16 to Float 32.

◆ BOOST_AUTO_TEST_CASE() [6/7]

BOOST_AUTO_TEST_CASE ( IsConvertFp32ToFp16SupportedNeon  )

Definition at line 61 of file NeonLayerSupportTests.cpp.

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

62 {
63  std::string reasonIfUnsupported;
64 
65  bool result = IsConvertLayerSupportedTests<armnn::NeonWorkloadFactory, armnn::ConvertFp32ToFp16Layer,
67 
68  BOOST_CHECK(result);
69 }
This layer converts data type Float 32 to Float 16.
BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)

◆ BOOST_AUTO_TEST_CASE() [7/7]

BOOST_AUTO_TEST_CASE ( IsMeanSupportedNeon  )

Definition at line 71 of file NeonLayerSupportTests.cpp.

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

72 {
73  std::string reasonIfUnsupported;
74 
75  bool result = IsMeanLayerSupportedTests<armnn::NeonWorkloadFactory,
76  armnn::DataType::Float32, armnn::DataType::Float32>(reasonIfUnsupported);
77 
78  BOOST_CHECK(result);
79 }
BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)