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

Method reset

tensorflow/compiler/xrt/xrt_refptr.h:85–88  ·  view source on GitHub ↗

Resets the RefPtr from a pointer. This is an ownership transfer operation, and the caller has to own a valid reference to ptr (unless ptr is nullptr).

Source from the content-addressed store, hash-verified

83 // Resets the RefPtr from a pointer. This is an ownership transfer operation,
84 // and the caller has to own a valid reference to ptr (unless ptr is nullptr).
85 void reset(T* ptr = nullptr) {
86 Release(ptr_);
87 ptr_ = ptr;
88 }
89
90 private:
91 static void Release(T* ptr) {

Callers 15

LookupMethod · 0.45
MakeOutputFunction · 0.45
XrtTfContextMethod · 0.45
TearDownMethod · 0.45
DeviceForResourceMethod · 0.45
ExecuteGraphFunction · 0.45
XlaCompilerMethod · 0.45
CompileGraphMethod · 0.45

Calls

no outgoing calls

Tested by 15

TearDownMethod · 0.36
SetUpMethod · 0.36
FunctionalizeCondTestMethod · 0.36
OpTestMethod · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
XLA_TEST_FFunction · 0.36
XLA_TEST_FFunction · 0.36
TEST_FFunction · 0.36
XLA_TEST_FFunction · 0.36
XLA_TEST_FFunction · 0.36