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

Method ResetTensorHandles

tensorflow/lite/delegates/flex/kernel.cc:154–161  ·  view source on GitHub ↗

Carefully unreference all the handles in the eager output vector.

Source from the content-addressed store, hash-verified

152
153 // Carefully unreference all the handles in the eager output vector.
154 void ResetTensorHandles() {
155 for (int i = 0; i < vector_.size(); ++i) {
156 if (vector_[i]) {
157 vector_[i]->Unref();
158 vector_[i] = nullptr;
159 }
160 }
161 }
162
163 tensorflow::gtl::InlinedVector<tensorflow::TensorHandle*, 2>*
164 GetTensorHandles() {

Callers 1

ExecuteFlexOpFunction · 0.80

Calls 2

sizeMethod · 0.45
UnrefMethod · 0.45

Tested by

no test coverage detected