| 515 | } |
| 516 | |
| 517 | bool CanGenerateOp(const OpDef& op_def, const ApiDef& api_def) { |
| 518 | if (api_def.visibility() == ApiDef::SKIP) { |
| 519 | return false; |
| 520 | } |
| 521 | for (const auto& attr : op_def.attr()) { |
| 522 | if (attr.type() == "func" || attr.type() == "list(func)") { |
| 523 | return false; // TODO(karllessard) add support for function attributes |
| 524 | } |
| 525 | } |
| 526 | return true; |
| 527 | } |
| 528 | |
| 529 | } // namespace |
| 530 |