20.11
SampleDynamicLayerSupport.hpp
Go to the documentation of this file.
1
//
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
10
namespace
sdb
// sample dynamic backend
11
{
12
13
class
SampleDynamicLayerSupport
:
public
armnn::LayerSupportBase
14
{
15
public
:
16
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
;
20
21
bool
IsInputSupported
(
const
armnn::TensorInfo
& input,
22
armnn::Optional<std::string&>
reasonIfUnsupported)
const override
;
23
24
bool
IsOutputSupported
(
const
armnn::TensorInfo
& output,
25
armnn::Optional<std::string&>
reasonIfUnsupported)
const override
;
26
};
27
28
}
// namespace sdb
armnn::LayerSupportBase
Definition:
LayerSupportBase.hpp:13
armnn::Optional
Definition:
Optional.hpp:270
armnn::TensorInfo
Definition:
Tensor.hpp:152
sdb::SampleDynamicLayerSupport::IsInputSupported
bool IsInputSupported(const armnn::TensorInfo &input, armnn::Optional< std::string &> reasonIfUnsupported) const override
Definition:
SampleDynamicLayerSupport.cpp:15
LayerSupportBase.hpp
sdb
Definition:
SampleDynamicAdditionWorkload.cpp:11
sdb::SampleDynamicLayerSupport
Definition:
SampleDynamicLayerSupport.hpp:13
armnn::EmptyOptional
EmptyOptional is used to initialize the Optional class in case we want to have default value for an O...
Definition:
Optional.hpp:32
sdb::SampleDynamicLayerSupport::IsOutputSupported
bool IsOutputSupported(const armnn::TensorInfo &output, armnn::Optional< std::string &> reasonIfUnsupported) const override
Definition:
SampleDynamicLayerSupport.cpp:21
sdb::SampleDynamicLayerSupport::IsAdditionSupported
bool IsAdditionSupported(const armnn::TensorInfo &input0, const armnn::TensorInfo &input1, const armnn::TensorInfo &output, armnn::Optional< std::string &> reasonIfUnsupported=armnn::EmptyOptional()) const override
Definition:
SampleDynamicLayerSupport.cpp:27
src
dynamic
sample
SampleDynamicLayerSupport.hpp
Generated on Wed Nov 25 2020 09:59:14 for ArmNN by
1.8.13