| 70 | } |
| 71 | |
| 72 | std::vector<NodeBuilder::NodeOut> AsNodeOutList(const Scope& scope, |
| 73 | const InputList& inp) { |
| 74 | std::vector<NodeBuilder::NodeOut> out; |
| 75 | for (const auto& i : inp) { |
| 76 | const auto node_out = AsNodeOut(scope, i); |
| 77 | if (!scope.ok()) { |
| 78 | return {}; |
| 79 | } |
| 80 | out.push_back(node_out); |
| 81 | } |
| 82 | return out; |
| 83 | } |
| 84 | |
| 85 | } // namespace ops |
| 86 | } // namespace tensorflow |