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

Function ReplaceTWith

tensorflow/core/framework/attr_value_util_test.cc:81–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81SubstituteFunc ReplaceTWith(const AttrValue& val) {
82 return [val](const string& placeholder, AttrValue* target) {
83 if (placeholder == "T") {
84 *target = val;
85 return true;
86 } else {
87 return false;
88 }
89 };
90}
91
92TEST(AttrValueUtil, Basic) {
93 auto v = F("MatMul", {{"dtype", P("T")},

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected