ArmNN
 20.08
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 namespace armnn
13 {
14 
16  LayerBindingId layerId,
17  const MinMaxRange& minMaxRange)
18  : m_Ranges(ranges)
19  , m_LayerId(layerId)
20  , m_MinMaxRange(minMaxRange)
21 {}
22 
24 {
25  IgnoreUnused(name);
26  if (m_LayerId == id)
27  {
28  m_Ranges.SetRange(layer, 0, m_MinMaxRange.first, m_MinMaxRange.second);
29  }
30 }
31 
32 } // 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:194
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...