| 513 | } |
| 514 | |
| 515 | static Status GetFunctionBody(const NameAttrList& function, |
| 516 | FunctionLibraryRuntime* flib_runtime, |
| 517 | const FunctionBody** fbody) { |
| 518 | FunctionLibraryRuntime::Handle handle; |
| 519 | TF_RETURN_IF_ERROR(flib_runtime->Instantiate( |
| 520 | function.name(), AttrSlice(&function.attr()), &handle)); |
| 521 | |
| 522 | *fbody = flib_runtime->GetFunctionBody(handle); |
| 523 | TF_RET_CHECK(*fbody); |
| 524 | return Status::OK(); |
| 525 | } |
| 526 | |
| 527 | Status XlaCompiler::FindFunctionBody(const NameAttrList& function, |
| 528 | const FunctionBody** fbody) { |
no test coverage detected