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

Function CheckIndex

tensorflow/core/common_runtime/partitioning_utils_test.cc:170–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170void 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
177TEST_F(PartitioningUtilsTest, UpdateArgsAndRets) {
178 std::unique_ptr<Graph> graph = absl::make_unique<Graph>(OpRegistry::Global());

Callers 1

TEST_FFunction · 0.85

Calls 3

FindMethod · 0.45
attrsMethod · 0.45
iMethod · 0.45

Tested by

no test coverage detected