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

Method Merge

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

Source from the content-addressed store, hash-verified

351}
352
353void TensorSizeHistogram::Merge(const TensorSizeHistogram& src) {
354 num_elem_ += src.num_elem_;
355 sum_elem_ += src.sum_elem_;
356 min_ = std::min(min_, src.min_);
357 max_ = std::max(max_, src.max_);
358 std::transform(buckets_.begin(), buckets_.end(), src.buckets_.begin(),
359 buckets_.begin(), std::plus<uint64>());
360}
361
362string TensorSizeHistogram::ToString() const {
363 string r;

Callers 15

string_ops.ccFile · 0.45
ScatterUpdateShapeFunction · 0.45
MakeBatchSquareMatrixFunction · 0.45
MatrixSolveShapeFnFunction · 0.45
SelfAdjointEigV2ShapeFnFunction · 0.45
LuShapeFnFunction · 0.45
TridiagonalMatMulShapeFnFunction · 0.45
TridiagonalSolveShapeFnFunction · 0.45
linalg_ops.ccFile · 0.45
ctc_ops.ccFile · 0.45
lookup_ops.ccFile · 0.45

Calls 5

minFunction · 0.50
maxFunction · 0.50
transformFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by 1

TESTFunction · 0.36