MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / GetFunctionBody

Function GetFunctionBody

tensorflow/compiler/tf2xla/xla_compiler.cc:515–525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513}
514
515static 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
527Status XlaCompiler::FindFunctionBody(const NameAttrList& function,
528 const FunctionBody** fbody) {

Callers 6

FindFunctionBodyMethod · 0.70
GetRetTypesMethod · 0.50
CreateKernelMethod · 0.50
RunRemoteMethod · 0.50
RunMethod · 0.50

Calls 5

AttrSliceClass · 0.85
attrMethod · 0.80
GetFunctionBodyMethod · 0.80
nameMethod · 0.65
InstantiateMethod · 0.45

Tested by

no test coverage detected