| 168 | } |
| 169 | |
| 170 | void CheckIndex(const Node& node, int expected_index) { |
| 171 | const AttrValue* attr_value; |
| 172 | TF_ASSERT_OK(node.attrs().Find("index", &attr_value)); |
| 173 | int index = static_cast<int>(attr_value->i()); |
| 174 | ASSERT_EQ(expected_index, index); |
| 175 | } |
| 176 | |
| 177 | TEST_F(PartitioningUtilsTest, UpdateArgsAndRets) { |
| 178 | std::unique_ptr<Graph> graph = absl::make_unique<Graph>(OpRegistry::Global()); |