| 495 | } |
| 496 | |
| 497 | const ApiDef::Attr* FindAttr(StringPiece name, const ApiDef& api_def) { |
| 498 | for (int i = 0; i < api_def.attr_size(); ++i) { |
| 499 | if (api_def.attr(i).name() == name) { |
| 500 | return &api_def.attr(i); |
| 501 | } |
| 502 | } |
| 503 | return nullptr; |
| 504 | } |
| 505 | |
| 506 | GenPythonOp::GenPythonOp(const OpDef& op_def, const ApiDef& api_def, |
| 507 | const string& function_name) |
no test coverage detected