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

Method avg

tensorflow/core/util/stats_calculator.h:69–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 bool all_same() const { return (count_ == 0 || min_ == max_); }
68
69 HighPrecisionValueType avg() const {
70 return empty() ? std::numeric_limits<ValueType>::quiet_NaN()
71 : static_cast<HighPrecisionValueType>(sum_) / count_;
72 }
73
74 ValueType std_deviation() const {
75 return all_same() ? 0 : sqrt(squared_sum_ / count_ - avg() * avg());

Callers 10

operator()Method · 0.80
OnBenchmarkEndMethod · 0.80
OnBenchmarkEndMethod · 0.80
LatestMetricsMethod · 0.80
LatestMetricsMethod · 0.80
LatestMetricsMethod · 0.80
TESTFunction · 0.80
ColumnStringMethod · 0.80
OrderNodesByMetricMethod · 0.80
PrintOutputsMethod · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64