Home
last modified time | relevance | path

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

12

/external/tensorflow/tensorflow/core/platform/
Dintrusive_ptr_test.cc28 ASSERT_TRUE(ptr->RefCountIsOne()); in TEST()
35 ASSERT_FALSE(raw->RefCountIsOne()); in TEST()
37 ASSERT_TRUE(raw->RefCountIsOne()); in TEST()
43 ASSERT_FALSE(ptr2->RefCountIsOne()); in TEST()
52 ASSERT_FALSE(ptr2->RefCountIsOne()); in TEST()
53 ASSERT_TRUE(raw->RefCountIsOne()); in TEST()
61 ASSERT_FALSE(ptr2->RefCountIsOne()); in TEST()
67 ASSERT_TRUE(ptr2->RefCountIsOne()); in TEST()
75 ASSERT_TRUE(ptr2->RefCountIsOne()); in TEST()
83 ASSERT_TRUE(ptr2->RefCountIsOne()); in TEST()
[all …]
Drefcount_test.cc68 ASSERT_TRUE(ref->RefCountIsOne()); in TEST_F()
75 ASSERT_FALSE(ref->RefCountIsOne()); in TEST_F()
115 ASSERT_TRUE(obj->RefCountIsOne()); in TEST()
178 ASSERT_TRUE(obj->RefCountIsOne()); in TEST()
207 ASSERT_TRUE(obj->RefCountIsOne()); in TEST()
228 ASSERT_TRUE(obj->RefCountIsOne()); in TEST()
Drefcount.h55 bool RefCountIsOne() const;
298 inline bool RefCounted::RefCountIsOne() const { in RefCountIsOne() function
/external/tensorflow/tensorflow/core/framework/
Dresource_mgr_test.cc149 ASSERT_TRUE(cat->RefCountIsOne()); in TEST()
150 ASSERT_TRUE(kitty->RefCountIsOne()); in TEST()
155 EXPECT_TRUE(cat->RefCountIsOne()); in TEST()
160 EXPECT_TRUE(kitty->RefCountIsOne()); in TEST()
176 EXPECT_TRUE(kitty->RefCountIsOne()); in TEST()
210 EXPECT_TRUE(cat->RefCountIsOne()); in TEST()
211 EXPECT_TRUE(kitty->RefCountIsOne()); in TEST()
Dtensor.cc116 if (RefCountIsOne()) { in FillAllocationDescription()
766 bool Tensor::RefCountIsOne() const { in RefCountIsOne() function in tensorflow::Tensor
767 return buf_ != nullptr && buf_->RefCountIsOne() && in RefCountIsOne()
768 buf_->root_buffer()->RefCountIsOne() && buf_->OwnsMemory(); in RefCountIsOne()
/external/tensorflow/tensorflow/core/tfrt/utils/
Dfallback_tensor_test.cc34 EXPECT_FALSE(immutable_tensor.tensor().RefCountIsOne()); in TEST()
48 EXPECT_FALSE(immutable_tensor.tensor().RefCountIsOne()); in TEST()
Dfallback_tensor.h40 DCHECK(!tensor_.RefCountIsOne()) in ImmutableTensor()
/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()
197 if (copy_on_read_mode || !tensor->RefCountIsOne()) { in PrepareToUpdateVariable()
Dlist_kernels.cc114 if (tmp_out->RefCountIsOne()) { in ForwardInputOrCreateNewList()
389 if (out->RefCountIsOne()) { in Compute()
535 if (aliased == nullptr || !aliased->RefCountIsOne()) { in Compute()
Dmap_kernels.h59 if (tmp_out->RefCountIsOne()) { in ForwardInputOrCreateNewMap()
/external/tensorflow/tensorflow/cc/experimental/libtf/tests/
Dtensor_test.cc95 ASSERT_FALSE(x->RefCountIsOne()); in TEST_P()
97 ASSERT_TRUE(x->RefCountIsOne()); in TEST_P()
/external/tensorflow/tensorflow/compiler/tf2tensorrt/kernels/
Dtrt_engine_resource_ops_test.cc295 EXPECT_FALSE(resource->RefCountIsOne()); in TEST_P()
311 EXPECT_TRUE(resource->RefCountIsOne()); in TEST_P()
390 EXPECT_FALSE(resource->RefCountIsOne()); in TEST_P()
406 EXPECT_TRUE(resource->RefCountIsOne()); in TEST_P()
/external/tensorflow/tensorflow/core/util/
Dbatch_util.cc56 if (element.RefCountIsOne()) { in HandleElementToSlice()
69 if (element.RefCountIsOne()) { in HandleElementToSlice()
136 if (parent->RefCountIsOne()) { in HandleSliceToElement()
148 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()
/external/tensorflow/tensorflow/compiler/xrt/
Dxrt_compilation_cache.cc72 while (!entry.second->RefCountIsOne()) { in ~XRTCompilationCache()
111 if (entry->RefCountIsOne()) { in DiscardEntryRefLocked()
/external/tensorflow/tensorflow/core/kernels/mlir_generated/
Dbase_op.cc54 if (RefCountIsOne()) { in FillAllocationDescription()
/external/tensorflow/tensorflow/c/
Dtf_tensor.cc207 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.cc95 if (RefCountIsOne()) { in GrpcEagerClientThread()
/external/tensorflow/tensorflow/compiler/jit/
Dxla_launch_util.h229 if (RefCountIsOne()) { in FillAllocationDescription()
/external/tensorflow/tensorflow/core/tpu/kernels/
Dtpu_compilation_cache_interface.cc225 CHECK(entry->RefCountIsOne()); in UnloadAndDestroy()
250 if (entry->RefCountIsOne()) { in DiscardEntryRef()
Dtpu_reshard_variables_op_util.cc196 tensor.RefCountIsOne()); in BuildInputBuffers()
/external/tensorflow/tensorflow/core/lib/db/
Dsqlite.cc148 DCHECK((*db)->RefCountIsOne()); in Open()

12