ArmNN
 20.02
SampleDynamicLayerSupport.cpp
Go to the documentation of this file.
1 //
2 // Copyright © 2020 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
7 
8 #include <InternalTypes.hpp>
9 #include <LayerSupportCommon.hpp>
10 #include <armnn/Types.hpp>
11 
12 namespace armnn
13 {
14 
16  Optional<std::string&> reasonIfUnsupported) const
17 {
18  return true;
19 }
20 
22  Optional<std::string&> reasonIfUnsupported) const
23 {
24  return true;
25 }
26 
28  const TensorInfo& input1,
29  const TensorInfo& output,
30  Optional<std::string&> reasonIfUnsupported) const
31 {
32 
33  if (input0.GetDataType() != armnn::DataType::Float32)
34  {
35  return false;
36  }
37 
38  if (input0.GetDataType() != input1.GetDataType())
39  {
40  return false;
41  }
42 
43  if (input0.GetDataType() != output.GetDataType())
44  {
45  return false;
46  }
47 
48  return true;
49 }
50 
51 } // namespace armnn
Copyright (c) 2020 ARM Limited.
bool IsAdditionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
DataType GetDataType() const
Definition: Tensor.hpp:95
bool IsInputSupported(const TensorInfo &input, Optional< std::string &> reasonIfUnsupported) const override
bool IsOutputSupported(const TensorInfo &output, Optional< std::string &> reasonIfUnsupported) const override