blob: a38207304fb4bd65e8ff5505dd777eebb7ffba02 [file] [log] [blame]
Narumol Prangnawarat867eba52020-02-03 12:29:56 +00001//
2// Copyright © 2020 Arm Ltd. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5
6#pragma once
7
8#include <backendsCommon/LayerSupportBase.hpp>
9
Jan Eilersc84e45d2020-08-19 14:14:36 +010010namespace sdb // sample dynamic backend
Narumol Prangnawarat867eba52020-02-03 12:29:56 +000011{
12
Jan Eilersc84e45d2020-08-19 14:14:36 +010013class SampleDynamicLayerSupport : public armnn::LayerSupportBase
Narumol Prangnawarat867eba52020-02-03 12:29:56 +000014{
15public:
Jan Eilersc84e45d2020-08-19 14:14:36 +010016 bool IsAdditionSupported(const armnn::TensorInfo& input0,
17 const armnn::TensorInfo& input1,
18 const armnn::TensorInfo& output,
19 armnn::Optional<std::string&> reasonIfUnsupported = armnn::EmptyOptional()) const override;
Narumol Prangnawarat867eba52020-02-03 12:29:56 +000020
Jan Eilersc84e45d2020-08-19 14:14:36 +010021 bool IsInputSupported(const armnn::TensorInfo& input,
22 armnn::Optional<std::string&> reasonIfUnsupported) const override;
Narumol Prangnawarat867eba52020-02-03 12:29:56 +000023
Jan Eilersc84e45d2020-08-19 14:14:36 +010024 bool IsOutputSupported(const armnn::TensorInfo& output,
25 armnn::Optional<std::string&> reasonIfUnsupported) const override;
Narumol Prangnawarat867eba52020-02-03 12:29:56 +000026};
27
Jan Eilersc84e45d2020-08-19 14:14:36 +010028} // namespace sdb