ArmNN
 21.02
MockImportLayerSupport.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 #pragma once
6 
8 
10 
11 namespace armnn
12 {
13 
15 {
16 public:
17  bool IsAdditionSupported(const TensorInfo& input0,
18  const TensorInfo& input1,
19  const TensorInfo& output,
20  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override
21  {
22  IgnoreUnused(input0);
23  IgnoreUnused(input1);
24  IgnoreUnused(output);
25  IgnoreUnused(reasonIfUnsupported);
26  return true;
27  }
28 
29  bool IsInputSupported(const TensorInfo& input,
30  Optional<std::string&> reasonIfUnsupported) const override
31  {
32  IgnoreUnused(input);
33  IgnoreUnused(reasonIfUnsupported);
34  return true;
35  }
36 
37  bool IsOutputSupported(const TensorInfo& output,
38  Optional<std::string&> reasonIfUnsupported) const override
39  {
40  IgnoreUnused(output);
41  IgnoreUnused(reasonIfUnsupported);
42  return true;
43  }
44 };
45 
46 } // namespace armnn
Copyright (c) 2021 ARM Limited and Contributors.
void IgnoreUnused(Ts &&...)
bool IsAdditionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
EmptyOptional is used to initialize the Optional class in case we want to have default value for an O...
Definition: Optional.hpp:32
bool IsInputSupported(const TensorInfo &input, Optional< std::string &> reasonIfUnsupported) const override
bool IsOutputSupported(const TensorInfo &output, Optional< std::string &> reasonIfUnsupported) const override