Home
last modified time | relevance | path

Searched refs:RefCountIsOne (Results 1 – 25 of 26) sorted by relevance

12

/external/tensorflow/tensorflow/core/platform/
Drefcount.h49 bool RefCountIsOne() const;
101 if (RefCountIsOne() || ref_.fetch_sub(1) == 1) { in Unref()
111 inline bool RefCounted::RefCountIsOne() const { in RefCountIsOne() function
/external/tensorflow/tensorflow/compiler/tf2tensorrt/kernels/
Dtrt_engine_resource_ops_test.cc164 EXPECT_FALSE(resource->RefCountIsOne()); in TEST_F()
180 EXPECT_TRUE(resource->RefCountIsOne()); in TEST_F()
228 EXPECT_FALSE(resource->RefCountIsOne()); in TEST_F()
244 EXPECT_TRUE(resource->RefCountIsOne()); in TEST_F()
/external/tensorflow/tensorflow/core/lib/core/
Drefcount_test.cc64 ASSERT_TRUE(ref->RefCountIsOne()); in TEST_F()
71 ASSERT_FALSE(ref->RefCountIsOne()); in TEST_F()
/external/tensorflow/tensorflow/core/kernels/
Dtensor_list.h142 bool RefCountIsOne() const { return tensors_->RefCountIsOne(); } in RefCountIsOne() function
Dtensor_map.h163 bool RefCountIsOne() const { return tensors_->RefCountIsOne(); } in RefCountIsOne() function
Dtraining_op_helpers.h40 if (var->tensor()->RefCountIsOne()) { in EnsureSparseVariableAccess()
200 if (copy_on_read_mode || !tensor->RefCountIsOne()) { in PrepareToUpdateVariable()
Dlist_kernels.cc109 if (tmp_out->RefCountIsOne()) { in ForwardInputOrCreateNewList()
350 if (out->RefCountIsOne()) { in Compute()
479 if (aliased == nullptr || !aliased->RefCountIsOne()) { in Compute()
Dmap_kernels.h59 if (tmp_out->RefCountIsOne()) { in ForwardInputOrCreateNewMap()
Dresource_variable_ops.cc471 if (!variable->tensor()->RefCountIsOne() || in Compute()
Dlist_kernels.h922 if (tl_i == nullptr || !tl_i->RefCountIsOne()) { in Compute()
/external/tensorflow/tensorflow/core/util/
Dbatch_util.cc55 if (element.RefCountIsOne()) { in HandleElementToSlice()
68 if (element.RefCountIsOne()) { in HandleElementToSlice()
135 if (parent->RefCountIsOne()) { in HandleSliceToElement()
147 if (parent->RefCountIsOne()) { in HandleSliceToElement()
/external/tensorflow/tensorflow/core/common_runtime/eager/
Dexecute_node.h115 if (h->RefCountIsOne()) { in Run()
193 if (h->RefCountIsOne()) { in Run()
Dcontext.cc747 is_first_ref = registered_function->RefCountIsOne(); in AddFunctionDef()
776 is_last_ref = registered_function->RefCountIsOne(); in RemoveFunction()
/external/tensorflow/tensorflow/compiler/xrt/
Dxrt_compilation_cache.cc72 while (!entry.second->RefCountIsOne()) { in ~XRTCompilationCache()
111 if (entry->RefCountIsOne()) { in DiscardEntryRefLocked()
Dxrt_state.cc562 !index_buffer.second->RefCountIsOne()) { in IsExclusiveOwner()
/external/tensorflow/tensorflow/c/
Dtf_tensor.cc192 if (buf->RefCountIsOne() && buf->root_buffer()->RefCountIsOne() && in CanMove()
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/eager/
Dgrpc_eager_service_impl.h124 if (call->RefCountIsOne()) { in StreamingEnqueueHandler()
Dgrpc_eager_client.cc86 if (RefCountIsOne()) { in GrpcEagerClientThread()
/external/tensorflow/tensorflow/core/tpu/kernels/
Dtpu_compilation_cache_interface.cc221 CHECK(entry->RefCountIsOne()); in UnloadAndDestroy()
246 if (entry->RefCountIsOne()) { in DiscardEntryRef()
Dtpu_execute_op.cc329 bool can_reuse_buffers = tensor.RefCountIsOne() && may_reuse; in BuildComputationInputs()
/external/tensorflow/tensorflow/core/lib/db/
Dsqlite.cc148 DCHECK((*db)->RefCountIsOne()); in Open()
/external/tensorflow/tensorflow/core/framework/
Dtensor.cc111 if (RefCountIsOne()) { in FillAllocationDescription()
712 bool Tensor::RefCountIsOne() const { in RefCountIsOne() function in tensorflow::Tensor
713 return buf_ != nullptr && buf_->RefCountIsOne() && in RefCountIsOne()
714 buf_->root_buffer()->RefCountIsOne() && buf_->OwnsMemory(); in RefCountIsOne()
Dtensor.h655 bool RefCountIsOne() const;
/external/tensorflow/tensorflow/compiler/jit/
Dxla_launch_util.cc252 t->RefCountIsOne() && is_updated_resource_variable && in PopulateInputs()
/external/tensorflow/tensorflow/core/common_runtime/
Dexecutor_test.cc381 while (!rendez_->RefCountIsOne()) { in TEST_F()

12