Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
53
MovingAverage::~MovingAverage() { delete[] data_; }
54
55
void MovingAverage::Clear() {
56
count_ = 0;
57
head_ = 0;
58
sum_ = 0;
59
}
60
61
double MovingAverage::GetAverage() const {
62
if (count_ == 0) {
Callers
15
create_new_meta_graph_def
Function · 0.45
TEST
Function · 0.45
BackportConcatV2Transform
Function · 0.45
InsertLogging
Function · 0.45
QuantizePlaceholders
Function · 0.45
MergeAdjacentRequantizes
Function · 0.45
RemoveAttribute
Function · 0.45
RemoveDevice
Function · 0.45
RenameAttribute
Function · 0.45
RemoveControlDependencies
Function · 0.45
FilterGraphDef
Function · 0.45
RemoveAttributes
Function · 0.45
Calls
no outgoing calls
Tested by
9
TEST
Function · 0.36
test_empty_graph_transform
Function · 0.36
MakeDenseShapes
Function · 0.36
TEST_F
Function · 0.36
TEST
Function · 0.36
TEST
Function · 0.36
Fuzz
Function · 0.36
TEST
Function · 0.36
TEST_F
Function · 0.36