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

Function RefIfNonNull

tensorflow/core/framework/tensor.cc:666–668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

664}
665
666void RefIfNonNull(core::RefCounted* buf) {
667 if (buf) buf->Ref();
668}
669
670void UnrefIfNonNull(core::RefCounted* buf) {
671 if (buf) buf->Unref();

Callers 3

TensorMethod · 0.85
CopyFromInternalMethod · 0.85
BitcastFromMethod · 0.85

Calls 1

RefMethod · 0.45

Tested by

no test coverage detected