24.08
|
Go to the documentation of this file.
11 #include <common/include/ProfilingGuid.hpp>
14 #include <unordered_map>
31 bool IsEmpty()
const {
return m_GuidToRangesMap.empty(); }
34 bool HasRanges(
LayerGuid guid)
const {
return m_GuidToRangesMap.find(guid) != m_GuidToRangesMap.end(); }
52 using MinMaxRanges = std::vector<MinMaxRange>;
55 MinMaxRange DefaultRange()
const {
return std::make_pair(-15.0f, 15.0f); }
58 std::unordered_map<LayerGuid, MinMaxRanges> m_GuidToRangesMap;
60 bool m_DynamicMode =
false;
void SetDynamicMode(bool flag)
std::pair< float, float > MinMaxRange
bool IsEmpty() const
Query function to check that the RangeTracker is empty.
void RefineMax(LayerGuid guid, unsigned int slotIndex, float newMax)
Update max in RangeTracker with new_max if it is greater than current value.
bool HasRanges(LayerGuid guid) const
Query that there is an entry for a layer.
void RefineMin(LayerGuid guid, unsigned int slotIndex, float newMin)
Update min in RangeTracker with new_min if it is lower than current value.
MinMaxRange GetRange(LayerGuid guid, unsigned int idx) const
Retrieve the Range for a particular output slot on a particular layer.
arm::pipe::ProfilingGuid LayerGuid
Define LayerGuid type.
bool IsInDynamicMode() const
void SetRange(const IConnectableLayer *layer, unsigned int outputIdx, float min, float max)
Set the range for an output slot on a layer.
Copyright (c) 2021 ARM Limited and Contributors.
Interface for a layer that is connectable to other layers via InputSlots and OutputSlots.
void ResetMinMax(LayerGuid guid, unsigned int idx, float newMin, float newMax)
Overwrite min and max in RangeTracker with newMin and newMax.