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

Method SharesBufferWith

tensorflow/core/framework/tensor.cc:1298–1301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1296}
1297
1298bool Tensor::SharesBufferWith(const Tensor& b) const {
1299 return buf_ != nullptr && b.buf_ != nullptr &&
1300 buf_->root_buffer() == b.buf_->root_buffer();
1301}
1302
1303string Tensor::DebugString(int num_values) const {
1304 return strings::StrCat("Tensor<type: ", DataTypeString(dtype()),

Callers 15

TESTFunction · 0.45
operator()Method · 0.45
TESTFunction · 0.45
AddMethod · 0.45
TESTFunction · 0.45
IsUsefulToSwapMethod · 0.45
operator()Method · 0.45
ComputeMethod · 0.45
ComputeAsyncMethod · 0.45
ComputeAsyncMethod · 0.45
ComputeAsyncMethod · 0.45
ComputeAsyncMethod · 0.45

Calls 1

root_bufferMethod · 0.45

Tested by 3

TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36