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

Method Ref

tensorflow/core/lib/core/refcount.h:96–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94inline RefCounted::~RefCounted() { DCHECK_EQ(ref_.load(), 0); }
95
96inline void RefCounted::Ref() const {
97 DCHECK_GE(ref_.load(), 1);
98 ref_.fetch_add(1, std::memory_order_relaxed);
99}
100
101inline bool RefCounted::Unref() const {
102 DCHECK_GT(ref_.load(), 0);

Callers 15

DatasetMethod · 0.45
DatasetMethod · 0.45
DatasetMethod · 0.45
DatasetMethod · 0.45
DatasetMethod · 0.45
BigtableTableResourceMethod · 0.45
DatasetMethod · 0.45
SendContentMethod · 0.45
LookupMethod · 0.45
InsertMethod · 0.45
GetHandleMethod · 0.45

Calls 1

loadMethod · 0.45

Tested by 13

TEST_FFunction · 0.36
DoGatherMethod · 0.36
DoReduceMethod · 0.36
FindOrCreateMethod · 0.36
CreateMethod · 0.36
TEST_FFunction · 0.36
DoBroadcastMethod · 0.36
TEST_FFunction · 0.36
PrepareDeviceContextMethod · 0.36
GetDatasetFromContextMethod · 0.36
DatasetMethod · 0.36
DatasetMethod · 0.36