ArmNN  NotReleased
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 
10 #include <boost/assert.hpp>
11 #include <boost/core/ignore_unused.hpp>
12 
13 namespace armnn
14 {
15 
17  LayerBindingId layerId,
18  const MinMaxRange& minMaxRange)
19  : m_Ranges(ranges)
20  , m_LayerId(layerId)
21  , m_MinMaxRange(minMaxRange)
22 {}
23 
25 {
26  boost::ignore_unused(name);
27  if (m_LayerId == id)
28  {
29  m_Ranges.SetRange(layer, 0, m_MinMaxRange.first, m_MinMaxRange.second);
30  }
31 }
32 
33 } // namespace armnn
OverrideInputRangeVisitor(RangeTracker &ranges, LayerBindingId layerId, const MinMaxRange &minMaxRange)
void VisitInputLayer(const IConnectableLayer *layer, LayerBindingId id, const char *name=nullptr) override
void SetRange(const IConnectableLayer *layer, unsigned int outputIdx, float min, float max)
Set the range for an output slot on a layer.
Interface for a layer that is connectable to other layers via InputSlots and OutputSlots.
Definition: INetwork.hpp:61
int LayerBindingId
Type of identifiers for bindable layers (inputs, outputs).
Definition: Types.hpp:168