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

Method ~VariableInfo

tensorflow/compiler/jit/xla_launch_util.cc:72–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72VariableInfo::~VariableInfo() {
73 // Release the variable's lock if we hold it. Ensures that the lock is
74 // released even on error. It does not matter in what order we release the
75 // locks.
76 if (var()) {
77 if (lock_held()) {
78 var()->mu()->unlock();
79 }
80
81 // Unref the variable so it can be released by ResourceManager.
82 var()->Unref();
83 }
84}
85
86// Returns a vector of VaribleInfo instances for the resource variable inputs to
87// the kernel with context `ctx`. The input indices for the resource variable

Callers

nothing calls this directly

Calls 4

varFunction · 0.50
unlockMethod · 0.45
muMethod · 0.45
UnrefMethod · 0.45

Tested by

no test coverage detected