| 2055 | ////////////////////////////////////////////////////////////////////////// |
| 2056 | |
| 2057 | static void FillInputs(const Node* n, |
| 2058 | gtl::InlinedVector<Node*, 4>* control_edges, |
| 2059 | gtl::InlinedVector<std::pair<Node*, int>, 4>* in) { |
| 2060 | control_edges->clear(); |
| 2061 | for (const Edge* e : n->in_edges()) { |
| 2062 | if (e->IsControlEdge()) { |
| 2063 | control_edges->push_back(e->src()); |
| 2064 | } else { |
| 2065 | (*in)[e->dst_input()] = std::make_pair(e->src(), e->src_output()); |
| 2066 | } |
| 2067 | } |
| 2068 | std::sort(control_edges->begin(), control_edges->end()); |
| 2069 | } |
| 2070 | |
| 2071 | void MklLayoutRewritePass::GetNodesProducingTFTensorList( |
| 2072 | const gtl::InlinedVector<std::pair<Node*, int>, 4>& inputs, int* input_idx, |
no test coverage detected