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

Method GetHandle

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

Returns a handle to a given tensor and, optionally, remove it from the internal vector.

Source from the content-addressed store, hash-verified

135 // Returns a handle to a given tensor and, optionally, remove it from the
136 // internal vector.
137 tensorflow::TensorHandle* GetHandle(int i, bool remove) {
138 auto* handle = vector_[i];
139 if (!remove) {
140 handle->Ref();
141 } else {
142 // Don't increase the ref-count. Instead, simply take it out of the
143 // vector.
144 vector_[i] = nullptr;
145 }
146 return handle;
147 }
148
149 int Size() const { return outputs_.size(); }
150

Callers 1

BuildEagerInputsMethod · 0.45

Calls 1

RefMethod · 0.45

Tested by

no test coverage detected