20.02
AddDebug.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 "
Optimization.hpp
"
8
#include "
NetworkUtils.hpp
"
9
10
namespace
armnn
11
{
12
namespace
optimizations
13
{
14
15
class
AddDebugImpl
16
{
17
public
:
18
19
void
Run
(
Graph
& graph,
Layer
& layer)
const
20
{
21
if
(layer.
GetType
() !=
LayerType::Debug
&& layer.
GetType
() !=
LayerType::Output
)
22
{
23
// if the inputs/outputs of this layer do not have a debug layer
24
// insert the debug layer after them
25
InsertDebugLayerAfter
(graph, layer);
26
}
27
}
28
29
protected
:
30
AddDebugImpl
() =
default
;
31
~AddDebugImpl
() =
default
;
32
};
33
34
using
InsertDebugLayer
=
OptimizeForType<Layer, AddDebugImpl>
;
35
36
}
// namespace optimizations
37
}
// namespace armnn
armnn::LayerType::Output
armnn::OptimizeForType
Definition:
Optimization.hpp:65
armnn
Copyright (c) 2020 ARM Limited.
Definition:
00_introduction.dox:25
armnn::optimizations::AddDebugImpl::AddDebugImpl
AddDebugImpl()=default
armnn::optimizations::AddDebugImpl
Definition:
AddDebug.hpp:15
NetworkUtils.hpp
armnn::LogSeverity::Debug
armnn::Graph
Definition:
Graph.hpp:29
armnn::optimizations::AddDebugImpl::~AddDebugImpl
~AddDebugImpl()=default
armnn::Layer::GetType
LayerType GetType() const
Definition:
Layer.hpp:259
Optimization.hpp
armnn::InsertDebugLayerAfter
std::vector< DebugLayer * > InsertDebugLayerAfter(Graph &graph, Layer &layer)
Definition:
NetworkUtils.cpp:112
armnn::Layer
Definition:
Layer.hpp:209
armnn::optimizations::AddDebugImpl::Run
void Run(Graph &graph, Layer &layer) const
Definition:
AddDebug.hpp:19
src
armnn
optimizations
AddDebug.hpp
Generated on Fri Mar 13 2020 16:09:08 for ArmNN by
1.8.13