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

Function ConnectTwoNodes

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

Source from the content-addressed store, hash-verified

569
570template <typename TensorT>
571Status ConnectTwoNodes(Graph<TensorT>* graph, const Node* from_node,
572 const Node* to_node, Value<TensorT>** output) {
573 Value<TensorT>* link;
574 RETURN_IF_ERROR(AddOutput(graph, from_node, &link));
575 RETURN_IF_ERROR(graph->AddConsumer(to_node->id, link->id));
576 *output = link;
577 return OkStatus();
578}
579
580using GraphFloat32 = Model<TensorRef<BHWC>>;
581

Callers 7

TESTFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85

Calls 3

AddOutputFunction · 0.85
OkStatusFunction · 0.85
AddConsumerMethod · 0.80

Tested by 7

TESTFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68