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

Method RemoveProducer

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

Source from the content-addressed store, hash-verified

284 }
285
286 Status RemoveProducer(ValueId value) final {
287 ValueDef* v;
288 RETURN_IF_ERROR(LookupValue(value, &v));
289 Value<TensorT>* value_ptr = v->value.get();
290 if (v->producer == nullptr) {
291 return InvalidArgumentError("Value does not have a producer");
292 }
293 Erase(&nodes_[v->producer->id].outputs, value_ptr);
294 v->producer = nullptr;
295 return OkStatus();
296 }
297
298 Status AddConsumer(NodeId consumer, ValueId value) final {
299 ValueDef* v;

Callers 1

TESTFunction · 0.80

Calls 3

OkStatusFunction · 0.85
InvalidArgumentErrorFunction · 0.70
getMethod · 0.45

Tested by 1

TESTFunction · 0.64