| 569 | |
| 570 | template <typename TensorT> |
| 571 | Status 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 | |
| 580 | using GraphFloat32 = Model<TensorRef<BHWC>>; |
| 581 |