ArmNN
 25.11
Loading...
Searching...
No Matches
ILayerSupport.hpp
Go to the documentation of this file.
1//
2// Copyright © 2017 Arm Ltd and Contributors. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5#pragma once
6
10#include <armnn/Optional.hpp>
12
13#include <cctype>
14#include <functional>
15#include <memory>
16#include <vector>
17
18namespace armnn
19{
20
21class TensorInfo;
22
24{
25protected:
27 virtual ~ILayerSupport() {}
28
29public:
30 virtual bool IsLayerSupported(const LayerType& type,
31 const std::vector<TensorInfo>& infos,
32 const BaseDescriptor& descriptor,
33 const Optional<LstmInputParamsInfo>& lstmParamsInfo = EmptyOptional(),
34 const Optional<QuantizedLstmInputParamsInfo>& quantizedLstmParamsInfo =
36 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
37
38}; // class ILayerSupport
39
40using ILayerSupportSharedPtr = std::shared_ptr<ILayerSupport>;
41
42} // namespace armnn
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
Default implementation of the ILayerSupport interface, Backends should implement this as a switch sta...
Copyright (c) 2021 ARM Limited and Contributors.
std::shared_ptr< ILayerSupport > ILayerSupportSharedPtr
LayerType
When adding a new layer, adapt also the LastLayer enum value in the enum class LayerType below.
Definition Types.hpp:494
Base class for all descriptors.
EmptyOptional is used to initialize the Optional class in case we want to have default value for an O...
Definition Optional.hpp:32