ONE - On-device Neural Engine
Loading...
Searching...
No Matches
record_minmax::MinMaxMap Class Reference

#include <MinMaxObserver.h>

Public Member Functions

void recordMinMax (const luci::CircleNode *node, float min, float max)
 
void appendMinMaxVector (const luci::CircleNode *node, const MinMaxVectors &minmax_vector)
 
const std::unordered_map< const luci::CircleNode *, MinMaxVectors > * getMap () const
 

Detailed Description

Definition at line 31 of file MinMaxObserver.h.

Member Function Documentation

◆ appendMinMaxVector()

void record_minmax::MinMaxMap::appendMinMaxVector ( const luci::CircleNode node,
const MinMaxVectors minmax_vector 
)
inline

Definition at line 42 of file MinMaxObserver.h.

43 {
44 MinMaxVectors &vectors = _minmax_map[node];
45 vectors.min_vector.insert(vectors.min_vector.end(), minmax_vector.min_vector.begin(),
46 minmax_vector.min_vector.end());
47 vectors.max_vector.insert(vectors.max_vector.end(), minmax_vector.max_vector.begin(),
48 minmax_vector.max_vector.end());
49 }

References record_minmax::MinMaxVectors::max_vector, and record_minmax::MinMaxVectors::min_vector.

Referenced by record_minmax::RecordMinMax::profileDataInParallel().

◆ getMap()

const std::unordered_map< const luci::CircleNode *, MinMaxVectors > * record_minmax::MinMaxMap::getMap ( ) const
inline

Definition at line 51 of file MinMaxObserver.h.

52 {
53 return &_minmax_map;
54 }

Referenced by record_minmax::RecordMinMax::profileDataInParallel().

◆ recordMinMax()

void record_minmax::MinMaxMap::recordMinMax ( const luci::CircleNode node,
float  min,
float  max 
)
inline

Definition at line 35 of file MinMaxObserver.h.

36 {
37 MinMaxVectors &vectors = _minmax_map[node];
38 vectors.min_vector.push_back(min);
39 vectors.max_vector.push_back(max);
40 }

References record_minmax::MinMaxVectors::max_vector, and record_minmax::MinMaxVectors::min_vector.

Referenced by record_minmax::MinMaxObserver::postTensorWrite().


The documentation for this class was generated from the following file: