| 478 | } |
| 479 | |
| 480 | void InferArgAttributes(const OpDef::ArgDef& arg, |
| 481 | std::unordered_map<string, string>* inferred_attrs) { |
| 482 | if (!arg.type_attr().empty()) { |
| 483 | gtl::InsertIfNotPresent(inferred_attrs, arg.type_attr(), arg.name()); |
| 484 | } else if (!arg.type_list_attr().empty()) { |
| 485 | gtl::InsertIfNotPresent(inferred_attrs, arg.type_list_attr(), arg.name()); |
| 486 | } |
| 487 | if (!arg.number_attr().empty()) { |
| 488 | gtl::InsertIfNotPresent(inferred_attrs, arg.number_attr(), arg.name()); |
| 489 | } |
| 490 | } |
| 491 | |
| 492 | void InferOpAttributes( |
| 493 | const OpDef& op_def, |
no test coverage detected