MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Clear

Method Clear

tensorflow/core/lib/histogram/histogram.cc:91–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91void Histogram::Clear() {
92 min_ = bucket_limits_[bucket_limits_.size() - 1];
93 max_ = -DBL_MAX;
94 num_ = 0;
95 sum_ = 0;
96 sum_squares_ = 0;
97 buckets_.resize(bucket_limits_.size());
98 for (size_t i = 0; i < bucket_limits_.size(); i++) {
99 buckets_[i] = 0;
100 }
101}
102
103void Histogram::Add(double value) {
104 int b =

Callers 1

EncodeToProtoMethod · 0.45

Calls 2

sizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected