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

Method Add

tensorflow/core/grappler/costs/utils.cc:345–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343}
344
345void TensorSizeHistogram::Add(const uint64 value) {
346 num_elem_++;
347 sum_elem_ += value;
348 min_ = std::min(min_, value);
349 max_ = std::max(max_, value);
350 buckets_[Index(value)]++;
351}
352
353void TensorSizeHistogram::Merge(const TensorSizeHistogram& src) {
354 num_elem_ += src.num_elem_;

Callers 15

FlushMethod · 0.45
SparsifyGatherInternalFunction · 0.45
InsertLoggingFunction · 0.45
MergeDuplicateNodesFunction · 0.45
QuantizePlaceholdersFunction · 0.45
RemoveAttributeFunction · 0.45
RemoveDeviceFunction · 0.45
RenameAttributeFunction · 0.45
AddNodeInputFunction · 0.45
FilterGraphDefFunction · 0.45
RemoveAttributesFunction · 0.45

Calls 3

minFunction · 0.50
maxFunction · 0.50
IndexClass · 0.50