ArmNN  NotReleased
SwitchLayer.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 #pragma once
6 
7 #include "Layer.hpp"
8 
9 namespace armnn
10 {
11 
13 class SwitchLayer : public Layer
14 {
15 public:
20  virtual std::unique_ptr<IWorkload> CreateWorkload(const IWorkloadFactory& factory) const override;
21 
24  SwitchLayer* Clone(Graph& graph) const override;
25 
28  void ValidateTensorShapesFromInputs() override;
29 
30  void Accept(ILayerVisitor& visitor) const override;
31 
32 protected:
35  SwitchLayer(const char* name);
36 
38  ~SwitchLayer() = default;
39 };
40 
41 } // namespace armnn
void ValidateTensorShapesFromInputs() override
Definition: SwitchLayer.cpp:30
~SwitchLayer()=default
Default destructor.
SwitchLayer * Clone(Graph &graph) const override
Definition: SwitchLayer.cpp:25
void Accept(ILayerVisitor &visitor) const override
Definition: SwitchLayer.cpp:54
This layer calculates both true and false outputs for input.
Definition: SwitchLayer.hpp:13
SwitchLayer(const char *name)
Definition: SwitchLayer.cpp:15
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
Definition: SwitchLayer.cpp:19