Searched refs:RefCountIsOne (Results 1 – 17 of 17) sorted by relevance
49 bool RefCountIsOne() const;101 if (RefCountIsOne() || ref_.fetch_sub(1) == 1) { in Unref()111 inline bool RefCounted::RefCountIsOne() const { in RefCountIsOne() function
64 ASSERT_TRUE(ref->RefCountIsOne()); in TEST_F()71 ASSERT_FALSE(ref->RefCountIsOne()); in TEST_F()
30 /*static*/ bool XlaTensor::RefCountIsOne(const Tensor& tensor) { in RefCountIsOne() function in tensorflow::XlaTensor31 return tensor.RefCountIsOne(); in RefCountIsOne()
42 static bool RefCountIsOne(const Tensor& tensor);
63 while (!entry.second->RefCountIsOne()) { in ~XRTCompilationCache()102 if (entry->RefCountIsOne()) { in DiscardEntryRefLocked()
494 if (!buffer.second->RefCountIsOne()) return false; in IsExclusiveOwner()
39 if (var->tensor()->RefCountIsOne()) { in EnsureSparseVariableAccess()201 if (copy_on_read_mode || !tensor->RefCountIsOne()) { in PrepareToUpdateVariable()
441 if (!variable->tensor()->RefCountIsOne() || in Compute()
127 bool can_move = element.RefCountIsOne(); in CopyElementToSlice()172 bool can_move = parent->RefCountIsOne(); in MaybeMoveSliceToElement()
89 if (RefCountIsOne()) { in FillAllocationDescription()682 bool Tensor::RefCountIsOne() const { in RefCountIsOne() function in tensorflow::Tensor683 return buf_ != nullptr && buf_->RefCountIsOne() && in RefCountIsOne()684 buf_->root_buffer()->RefCountIsOne() && buf_->OwnsMemory(); in RefCountIsOne()
592 bool RefCountIsOne() const;
546 if (!input->RefCountIsOne()) { in forward_input()
148 DCHECK((*db)->RefCountIsOne()); in Open()
369 while (!rendez_->RefCountIsOne()) in TEST_F()
927 if (!op_inputs[i]->RefCountIsOne()) { in EagerKernelExecute()
9052 << " is 1?: " << handle->RefCountIsOne(); in getOrCreateSymbolicTensor()9143 << " is 1?: " << handle->RefCountIsOne(); in TFE_ConsumeInputConcreteTensorFromTraceContext()
248 if (buf->RefCountIsOne() && buf->root_buffer()->RefCountIsOne() && in TF_TensorMaybeMove()