| 79 | } |
| 80 | |
| 81 | SubstituteFunc 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 | |
| 92 | TEST(AttrValueUtil, Basic) { |
| 93 | auto v = F("MatMul", {{"dtype", P("T")}, |