blob: af7ba923ec470be1372673b52fd6f9c94950648b [file] [log] [blame]
telsoa014fcda012018-03-09 14:13:49 +00001//
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"
telsoa014fcda012018-03-09 14:13:49 +000012
13#include <string>
14#include <iostream>
15#include <backends/ClWorkloadFactory.hpp>
16#include <backends/NeonWorkloadFactory.hpp>
17
18#include "IsLayerSupportedTestImpl.hpp"
19
20
21BOOST_AUTO_TEST_SUITE(IsLayerSupported)
22
23BOOST_AUTO_TEST_CASE(IsLayerSupportedLayerTypeMatches)
24{
25 LayerTypeMatchesTest();
26}
27
28BOOST_AUTO_TEST_CASE(IsLayerSupportedFloat32Reference)
29{
30 armnn::RefWorkloadFactory factory;
31 IsLayerSupportedTests<armnn::RefWorkloadFactory, armnn::DataType::Float32>(&factory);
32}
33
34BOOST_AUTO_TEST_CASE(IsLayerSupportedUint8Reference)
35{
36 armnn::RefWorkloadFactory factory;
37 IsLayerSupportedTests<armnn::RefWorkloadFactory, armnn::DataType::QuantisedAsymm8>(&factory);
38}
39
40#ifdef ARMCOMPUTENEON_ENABLED
41BOOST_AUTO_TEST_CASE(IsLayerSupportedFloat32Neon)
42{
43 armnn::NeonWorkloadFactory factory;
44 IsLayerSupportedTests<armnn::NeonWorkloadFactory, armnn::DataType::Float32>(&factory);
45}
46
47BOOST_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
56BOOST_AUTO_TEST_CASE(IsLayerSupportedFloat32Cl)
57{
58 armnn::ClWorkloadFactory factory;
59 IsLayerSupportedTests<armnn::ClWorkloadFactory, armnn::DataType::Float32>(&factory);
60}
61
62BOOST_AUTO_TEST_CASE(IsLayerSupportedUint8Cl)
63{
64 armnn::ClWorkloadFactory factory;
65 IsLayerSupportedTests<armnn::ClWorkloadFactory, armnn::DataType::QuantisedAsymm8>(&factory);
66}
67#endif //#ifdef ARMCOMPUTECL_ENABLED
68
surmeh013537c2c2018-05-18 16:31:43 +010069BOOST_AUTO_TEST_SUITE_END()