aboutsummaryrefslogtreecommitdiff
path: root/include/armnn/backends/ILayerSupport.hpp
blob: 6b024e347ba6b3505e79a5e2500926cdc2ac382e (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
36
37
38
39
40
41
42
//
// Copyright © 2017 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once

#include <armnn/Deprecated.hpp>
#include <armnn/Descriptors.hpp>
#include <armnn/LstmParams.hpp>
#include <armnn/Optional.hpp>
#include <armnn/QuantizedLstmParams.hpp>

#include <cctype>
#include <functional>
#include <memory>
#include <vector>

namespace armnn
{

class TensorInfo;

class ILayerSupport
{
protected:
    ILayerSupport() {}
    virtual ~ILayerSupport() {}

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

}; // class ILayerSupport

using ILayerSupportSharedPtr = std::shared_ptr<ILayerSupport>;

} // namespace armnn