ArmNN  NotReleased
DebugLayer.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 DebugLayer : public Layer
14 {
15 public:
20  virtual std::unique_ptr<IWorkload> CreateWorkload(const IWorkloadFactory& factory) const override;
21 
24  DebugLayer* Clone(Graph& graph) const override;
25 
28  void ValidateTensorShapesFromInputs() override;
29 
30  void Accept(ILayerVisitor& visitor) const override;
31 
32 protected:
35  DebugLayer(const char* name);
36 
38  ~DebugLayer() = default;
39 };
40 
41 } // namespace armnn
~DebugLayer()=default
Default destructor.
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
Definition: DebugLayer.cpp:21
void ValidateTensorShapesFromInputs() override
Definition: DebugLayer.cpp:38
void Accept(ILayerVisitor &visitor) const override
Definition: DebugLayer.cpp:53
DebugLayer * Clone(Graph &graph) const override
Definition: DebugLayer.cpp:33
This layer visualizes the data flowing through the network.
Definition: DebugLayer.hpp:13
DebugLayer(const char *name)
Definition: DebugLayer.cpp:17