aboutsummaryrefslogtreecommitdiff
path: root/src/dynamic/sample/SampleDynamicLayerSupport.hpp
blob: 2f0744aab72f0cd419c49018e7075d1b563c9bbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
// Copyright © 2020 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//

#pragma once

#include <backendsCommon/LayerSupportBase.hpp>

namespace sdb // sample dynamic backend
{

class SampleDynamicLayerSupport : public armnn::LayerSupportBase
{
public:
    bool IsAdditionSupported(const armnn::TensorInfo& input0,
                             const armnn::TensorInfo& input1,
                             const armnn::TensorInfo& output,
                             armnn::Optional<std::string&> reasonIfUnsupported = armnn::EmptyOptional()) const override;

    bool IsInputSupported(const armnn::TensorInfo& input,
                          armnn::Optional<std::string&> reasonIfUnsupported) const override;

    bool IsOutputSupported(const armnn::TensorInfo& output,
                           armnn::Optional<std::string&> reasonIfUnsupported) const override;

    bool IsLayerSupported(const armnn::LayerType& type,
                          const std::vector<armnn::TensorInfo>& infos,
                          const armnn::BaseDescriptor& descriptor,
                          const armnn::Optional<armnn::LstmInputParamsInfo>& lstmParamsInfo,
                          const armnn::Optional<armnn::QuantizedLstmInputParamsInfo>& quantizedLstmParamsInfo,
                          armnn::Optional<std::string&> reasonIfUnsupported = armnn::EmptyOptional()) const override;
};

} // namespace sdb