Searched refs:RefCountIsOne (Results 1 – 12 of 12) sorted by relevance
47 bool RefCountIsOne() const;90 if (RefCountIsOne() || ref_.fetch_sub(1) == 1) { in Unref()100 inline bool RefCounted::RefCountIsOne() const { in RefCountIsOne() function
64 ASSERT_TRUE(ref->RefCountIsOne()); in TEST_F()71 ASSERT_FALSE(ref->RefCountIsOne()); in TEST_F()
38 if (!tensor->RefCountIsOne()) { in PrepareToUpdateVariable()
97 bool can_move = element.RefCountIsOne(); in CopyElementToSlice()
262 if (!variable->tensor()->RefCountIsOne() || in Compute()
84 if (RefCountIsOne()) { in FillAllocationDescription()662 bool Tensor::RefCountIsOne() const { in RefCountIsOne() function in tensorflow::Tensor663 return buf_ != nullptr && buf_->RefCountIsOne() && in RefCountIsOne()664 buf_->root_buffer()->RefCountIsOne() && buf_->OwnsMemory(); in RefCountIsOne()
463 bool RefCountIsOne() const;
465 if (input.tensor == nullptr || input.is_ref() || !input->RefCountIsOne()) { in forward_input()
147 DCHECK((*db)->RefCountIsOne()); in Open()
369 while (!rendez_->RefCountIsOne()) in TEST_F()
296 if (RefCountIsOne()) { in GetNext()
232 if (buf->RefCountIsOne() && buf->root_buffer()->RefCountIsOne() && in TF_TensorMaybeMove()