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

Method Clear

tensorflow/core/util/util.cc:55–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53MovingAverage::~MovingAverage() { delete[] data_; }
54
55void MovingAverage::Clear() {
56 count_ = 0;
57 head_ = 0;
58 sum_ = 0;
59}
60
61double MovingAverage::GetAverage() const {
62 if (count_ == 0) {

Callers 15

TESTFunction · 0.45
InsertLoggingFunction · 0.45
QuantizePlaceholdersFunction · 0.45
MergeAdjacentRequantizesFunction · 0.45
RemoveAttributeFunction · 0.45
RemoveDeviceFunction · 0.45
RenameAttributeFunction · 0.45
FilterGraphDefFunction · 0.45
RemoveAttributesFunction · 0.45

Calls

no outgoing calls

Tested by 9

TESTFunction · 0.36
MakeDenseShapesFunction · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
FuzzFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36