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

Method IsExclusiveOwner

tensorflow/compiler/xrt/xrt_state.cc:551–559  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

549}
550
551bool XRTTupleAllocation::IsExclusiveOwner() const {
552 for (const auto& index_buffer : buffers_) {
553 if (index_buffer.second != nullptr &&
554 !index_buffer.second->RefCountIsOne()) {
555 return false;
556 }
557 }
558 return true;
559}
560
561size_t XRTTupleAllocation::GetDeviceMemorySize() const {
562 return device_memory_size_;

Callers

nothing calls this directly

Calls 1

RefCountIsOneMethod · 0.45

Tested by

no test coverage detected