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

Method AllocatedBytes

tensorflow/core/framework/tensor.cc:1030–1038  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1028}
1029
1030size_t Tensor::AllocatedBytes() const {
1031 if (buf_) {
1032 size_t ret;
1033 if (buf_->GetAllocatedBytes(&ret)) {
1034 return ret;
1035 }
1036 }
1037 return TotalBytes();
1038}
1039
1040bool Tensor::CanUseDMA() const {
1041 CASES(dtype(), return is_simple_type<T>::value);

Callers 7

GetAllocatedBytesFunction · 0.45
RunMethod · 0.45
RunCallableMethod · 0.45
SendInputsMethod · 0.45
RecvOutputsMethod · 0.45
RecvOutputsAsyncMethod · 0.45
ExecuteAsyncMethod · 0.45

Calls 1

GetAllocatedBytesMethod · 0.45

Tested by

no test coverage detected