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

Method TotalBytes

tensorflow/core/graph/costmodel.cc:194–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194Bytes CostModel::TotalBytes(const Node* node, int slot) const {
195 const int id = Id(node);
196 if (id < 0 || static_cast<size_t>(id) >= slot_bytes_.size() ||
197 slot_bytes_[id].size() <= static_cast<size_t>(slot)) {
198 return Bytes(0);
199 }
200 return slot_bytes_[id][slot];
201}
202
203Bytes CostModel::SizeEstimate(const Node* node, int slot) const {
204 int32 count = TotalCount(node);

Callers 15

RecvFromRemoteAsyncMethod · 0.45
AddRequestMethod · 0.45
StartMethod · 0.45
RecvBufCallMethod · 0.45
GrpcRecvTensorAsyncMethod · 0.45
ChecksumFunction · 0.45
ValidateChecksumFunction · 0.45
RecvHandlerMethod · 0.45
CloneMethod · 0.45
SendMetaDataMethod · 0.45
SendContentMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by 14

copyFromGPUMethod · 0.36
copyToGPUMethod · 0.36
DoAddChainMethod · 0.36
BuildImageTensorFunction · 0.36
RunFusedGraphFunction · 0.36
MakeReductionTestCaseMethod · 0.36
MakeGatherTestCaseMethod · 0.36
MakeBroadcastTestCaseMethod · 0.36
VerifyResultsMethod · 0.36
BM_TensorResponseFunction · 0.36
BM_TensorViaTensorProtoFunction · 0.36