Narumol Prangnawarat | b8d771a | 2020-08-14 11:51:12 +0100 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2020 Arm Ltd and Contributors. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | #pragma once |
| 6 | |
| 7 | #include <armnn/utility/IgnoreUnused.hpp> |
| 8 | |
| 9 | #include <backendsCommon/LayerSupportBase.hpp> |
| 10 | |
| 11 | namespace armnn |
| 12 | { |
| 13 | |
| 14 | class MockImportLayerSupport : public LayerSupportBase |
| 15 | { |
| 16 | public: |
| 17 | bool IsAdditionSupported(const TensorInfo& input0, |
| 18 | const TensorInfo& input1, |
| 19 | const TensorInfo& output, |
| 20 | Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override |
| 21 | { |
| 22 | IgnoreUnused(input0); |
| 23 | IgnoreUnused(input1); |
| 24 | IgnoreUnused(output); |
| 25 | IgnoreUnused(reasonIfUnsupported); |
| 26 | return true; |
| 27 | } |
| 28 | |
| 29 | bool IsInputSupported(const TensorInfo& input, |
| 30 | Optional<std::string&> reasonIfUnsupported) const override |
| 31 | { |
| 32 | IgnoreUnused(input); |
| 33 | IgnoreUnused(reasonIfUnsupported); |
| 34 | return true; |
| 35 | } |
| 36 | |
| 37 | bool IsOutputSupported(const TensorInfo& output, |
| 38 | Optional<std::string&> reasonIfUnsupported) const override |
| 39 | { |
| 40 | IgnoreUnused(output); |
| 41 | IgnoreUnused(reasonIfUnsupported); |
| 42 | return true; |
| 43 | } |
| 44 | }; |
| 45 | |
| 46 | } // namespace armnn |