ArmNN
 20.02
OverrideInputRangeVisitor.cpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
8 #include "Layer.hpp"
9 
11 
12 #include <boost/assert.hpp>
13 
14 namespace armnn
15 {
16 
18  LayerBindingId layerId,
19  const MinMaxRange& minMaxRange)
20  : m_Ranges(ranges)
21  , m_LayerId(layerId)
22  , m_MinMaxRange(minMaxRange)
23 {}
24 
26 {
27  IgnoreUnused(name);
28  if (m_LayerId == id)
29  {
30  m_Ranges.SetRange(layer, 0, m_MinMaxRange.first, m_MinMaxRange.second);
31  }
32 }
33 
34 } // namespace armnn
Interface for a layer that is connectable to other layers via InputSlots and OutputSlots.
Definition: INetwork.hpp:61
OverrideInputRangeVisitor(RangeTracker &ranges, LayerBindingId layerId, const MinMaxRange &minMaxRange)
Copyright (c) 2020 ARM Limited.
void IgnoreUnused(Ts &&...)
int LayerBindingId
Type of identifiers for bindable layers (inputs, outputs).
Definition: Types.hpp:171
void SetRange(const IConnectableLayer *layer, unsigned int outputIdx, float min, float max)
Set the range for an output slot on a layer.
void VisitInputLayer(const IConnectableLayer *layer, LayerBindingId id, const char *name=nullptr) override
Function that an InputLayer should call back to when its Accept(ILayerVisitor&) function is invoked...