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

Method DeleteNode

tensorflow/lite/delegates/gpu/common/model.h:338–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336 }
337
338 Status DeleteNode(NodeId id) final {
339 NodeDef* n;
340 RETURN_IF_ERROR(LookupNode(id, &n));
341 Node* node_ptr = n->node.get();
342 for (auto value : n->inputs) {
343 Erase(&values_[value->id].consumers, node_ptr);
344 }
345 for (auto value : n->outputs) {
346 values_[value->id].producer = nullptr;
347 }
348 n->inputs.clear();
349 n->outputs.clear();
350 n->node.reset();
351 return OkStatus();
352 }
353
354 Status DeleteValue(ValueId id) final {
355 ValueDef* v;

Callers 5

ApplyToNodeMethod · 0.80
TESTFunction · 0.80
RemovePrecedingNodeFunction · 0.80
RemoveFollowingNodeFunction · 0.80

Calls 4

OkStatusFunction · 0.85
getMethod · 0.45
clearMethod · 0.45
resetMethod · 0.45

Tested by 1

TESTFunction · 0.64