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

Function GetColocationConstraints

tensorflow/cc/framework/cc_ops_test.cc:34–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34void GetColocationConstraints(const Output& tensor,
35 std::vector<string>* constraints) {
36 constraints->clear();
37 TF_EXPECT_OK(GetNodeAttr(tensor.op().node()->attrs(), kColocationAttrName,
38 constraints));
39}
40
41TEST(CCOpTest, Basic) {
42 Scope root = Scope::NewRootScope();

Callers 1

TESTFunction · 0.70

Calls 5

GetNodeAttrFunction · 0.50
clearMethod · 0.45
attrsMethod · 0.45
nodeMethod · 0.45
opMethod · 0.45

Tested by

no test coverage detected