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

Function TEST

tensorflow/core/framework/graph_def_util_test.cc:39–47  ·  view source on GitHub ↗

We can create a Graph containing a namespaced Op

Source from the content-addressed store, hash-verified

37
38// We can create a Graph containing a namespaced Op
39TEST(AddToGraphTest, MakeGraphDefWithNamespacedOpName) {
40 OpList op_list;
41 TF_ASSERT_OK(FinalizeOpDef(OpDefBuilder("Project>SomeOp"), op_list.add_op()));
42 OpListOpRegistry registry(&op_list);
43
44 GraphDef graph_def;
45 TF_ASSERT_OK(NodeDefBuilder("node", "Project>SomeOp", &registry)
46 .Finalize(graph_def.add_node()));
47}
48
49// Producer and consumer have default for an attr -> graph unchanged.
50TEST(RemoveNewDefaultAttrsFromGraphDefTest, NoChangeWithDefault) {

Callers

nothing calls this directly

Calls 15

FinalizeOpDefFunction · 0.85
OpDefBuilderClass · 0.85
NodeDefBuilderClass · 0.85
StrippedOpListForGraphFunction · 0.85
OpListOpRegistryClass · 0.85
OpsUsedByGraphFunction · 0.85
signatureMethod · 0.80
set_opMethod · 0.80
descriptionMethod · 0.80
nameMethod · 0.65
CreateFunction · 0.50

Tested by

no test coverage detected