telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
| 3 | // See LICENSE file in the project root for full license information. |
| 4 | // |
| 5 | #include <boost/test/unit_test.hpp> |
| 6 | |
| 7 | #include "test/TensorHelpers.hpp" |
| 8 | #include "LayerTests.hpp" |
| 9 | |
| 10 | #include "backends/CpuTensorHandle.hpp" |
| 11 | #include "backends/RefWorkloadFactory.hpp" |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 12 | |
| 13 | #include <string> |
| 14 | #include <iostream> |
| 15 | #include <backends/ClWorkloadFactory.hpp> |
| 16 | #include <backends/NeonWorkloadFactory.hpp> |
| 17 | |
| 18 | #include "IsLayerSupportedTestImpl.hpp" |
| 19 | |
| 20 | |
| 21 | BOOST_AUTO_TEST_SUITE(IsLayerSupported) |
| 22 | |
| 23 | BOOST_AUTO_TEST_CASE(IsLayerSupportedLayerTypeMatches) |
| 24 | { |
| 25 | LayerTypeMatchesTest(); |
| 26 | } |
| 27 | |
| 28 | BOOST_AUTO_TEST_CASE(IsLayerSupportedFloat32Reference) |
| 29 | { |
| 30 | armnn::RefWorkloadFactory factory; |
| 31 | IsLayerSupportedTests<armnn::RefWorkloadFactory, armnn::DataType::Float32>(&factory); |
| 32 | } |
| 33 | |
| 34 | BOOST_AUTO_TEST_CASE(IsLayerSupportedUint8Reference) |
| 35 | { |
| 36 | armnn::RefWorkloadFactory factory; |
| 37 | IsLayerSupportedTests<armnn::RefWorkloadFactory, armnn::DataType::QuantisedAsymm8>(&factory); |
| 38 | } |
| 39 | |
| 40 | #ifdef ARMCOMPUTENEON_ENABLED |
| 41 | BOOST_AUTO_TEST_CASE(IsLayerSupportedFloat32Neon) |
| 42 | { |
| 43 | armnn::NeonWorkloadFactory factory; |
| 44 | IsLayerSupportedTests<armnn::NeonWorkloadFactory, armnn::DataType::Float32>(&factory); |
| 45 | } |
| 46 | |
| 47 | BOOST_AUTO_TEST_CASE(IsLayerSupportedUint8Neon) |
| 48 | { |
| 49 | armnn::NeonWorkloadFactory factory; |
| 50 | IsLayerSupportedTests<armnn::NeonWorkloadFactory, armnn::DataType::QuantisedAsymm8>(&factory); |
| 51 | } |
| 52 | #endif //#ifdef ARMCOMPUTENEON_ENABLED |
| 53 | |
| 54 | |
| 55 | #ifdef ARMCOMPUTECL_ENABLED |
| 56 | BOOST_AUTO_TEST_CASE(IsLayerSupportedFloat32Cl) |
| 57 | { |
| 58 | armnn::ClWorkloadFactory factory; |
| 59 | IsLayerSupportedTests<armnn::ClWorkloadFactory, armnn::DataType::Float32>(&factory); |
| 60 | } |
| 61 | |
| 62 | BOOST_AUTO_TEST_CASE(IsLayerSupportedUint8Cl) |
| 63 | { |
| 64 | armnn::ClWorkloadFactory factory; |
| 65 | IsLayerSupportedTests<armnn::ClWorkloadFactory, armnn::DataType::QuantisedAsymm8>(&factory); |
| 66 | } |
| 67 | #endif //#ifdef ARMCOMPUTECL_ENABLED |
| 68 | |
surmeh01 | 3537c2c | 2018-05-18 16:31:43 +0100 | [diff] [blame^] | 69 | BOOST_AUTO_TEST_SUITE_END() |