blob: 031d39cbaed58fae3c677cd99963e5fc84a94377 (
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
43
44
45
46
47
48
49
50
51
|
//
// Copyright © 2020 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include "SampleDynamicLayerSupport.hpp"
#include <InternalTypes.hpp>
#include <LayerSupportCommon.hpp>
#include <armnn/Types.hpp>
namespace armnn
{
bool SampleDynamicLayerSupport::IsInputSupported(const TensorInfo& input,
Optional<std::string&> reasonIfUnsupported) const
{
return true;
}
bool SampleDynamicLayerSupport::IsOutputSupported(const TensorInfo& output,
Optional<std::string&> reasonIfUnsupported) const
{
return true;
}
bool SampleDynamicLayerSupport::IsAdditionSupported(const TensorInfo& input0,
const TensorInfo& input1,
const TensorInfo& output,
Optional<std::string&> reasonIfUnsupported) const
{
if (input0.GetDataType() != armnn::DataType::Float32)
{
return false;
}
if (input0.GetDataType() != input1.GetDataType())
{
return false;
}
if (input0.GetDataType() != output.GetDataType())
{
return false;
}
return true;
}
} // namespace armnn
|