ArmNN
 20.05
NeonMemCopyTests.cpp File Reference

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (CopyBetweenCpuAndNeon)
 
 BOOST_AUTO_TEST_CASE (CopyBetweenNeonAndCpu)
 
 BOOST_AUTO_TEST_CASE (CopyBetweenCpuAndNeonWithSubtensors)
 
 BOOST_AUTO_TEST_CASE (CopyBetweenNeonAndCpuWithSubtensors)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/4]

BOOST_AUTO_TEST_CASE ( CopyBetweenCpuAndNeon  )

Definition at line 19 of file NeonMemCopyTests.cpp.

References CompareTensors(), LayerTestResult< T, n >::output, and LayerTestResult< T, n >::outputExpected.

20 {
22  MemCopyTest<armnn::RefWorkloadFactory, armnn::NeonWorkloadFactory, armnn::DataType::Float32>(false);
23  BOOST_TEST(CompareTensors(result.output, result.outputExpected));
24 }
boost::test_tools::predicate_result CompareTensors(const boost::multi_array< T, n > &a, const boost::multi_array< T, n > &b, bool compareBoolean=false)
boost::multi_array< T, n > outputExpected
boost::multi_array< T, n > output

◆ BOOST_AUTO_TEST_CASE() [2/4]

BOOST_AUTO_TEST_CASE ( CopyBetweenNeonAndCpu  )

Definition at line 26 of file NeonMemCopyTests.cpp.

References CompareTensors(), LayerTestResult< T, n >::output, and LayerTestResult< T, n >::outputExpected.

27 {
29  MemCopyTest<armnn::NeonWorkloadFactory, armnn::RefWorkloadFactory, armnn::DataType::Float32>(false);
30  BOOST_TEST(CompareTensors(result.output, result.outputExpected));
31 }
boost::test_tools::predicate_result CompareTensors(const boost::multi_array< T, n > &a, const boost::multi_array< T, n > &b, bool compareBoolean=false)
boost::multi_array< T, n > outputExpected
boost::multi_array< T, n > output

◆ BOOST_AUTO_TEST_CASE() [3/4]

BOOST_AUTO_TEST_CASE ( CopyBetweenCpuAndNeonWithSubtensors  )

Definition at line 33 of file NeonMemCopyTests.cpp.

References CompareTensors(), LayerTestResult< T, n >::output, and LayerTestResult< T, n >::outputExpected.

34 {
36  MemCopyTest<armnn::RefWorkloadFactory, armnn::NeonWorkloadFactory, armnn::DataType::Float32>(true);
37  BOOST_TEST(CompareTensors(result.output, result.outputExpected));
38 }
boost::test_tools::predicate_result CompareTensors(const boost::multi_array< T, n > &a, const boost::multi_array< T, n > &b, bool compareBoolean=false)
boost::multi_array< T, n > outputExpected
boost::multi_array< T, n > output

◆ BOOST_AUTO_TEST_CASE() [4/4]

BOOST_AUTO_TEST_CASE ( CopyBetweenNeonAndCpuWithSubtensors  )

Definition at line 40 of file NeonMemCopyTests.cpp.

References BOOST_AUTO_TEST_SUITE_END(), CompareTensors(), LayerTestResult< T, n >::output, and LayerTestResult< T, n >::outputExpected.

41 {
43  MemCopyTest<armnn::NeonWorkloadFactory, armnn::RefWorkloadFactory, armnn::DataType::Float32>(true);
44  BOOST_TEST(CompareTensors(result.output, result.outputExpected));
45 }
boost::test_tools::predicate_result CompareTensors(const boost::multi_array< T, n > &a, const boost::multi_array< T, n > &b, bool compareBoolean=false)
boost::multi_array< T, n > outputExpected
boost::multi_array< T, n > output