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

Method CompileToExecutable

tensorflow/compiler/xla/tests/codegen_test_base.cc:20–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18namespace xla {
19
20StatusOr<std::unique_ptr<Executable>> CodegenTestBase::CompileToExecutable(
21 std::unique_ptr<HloModule> hlo_module) {
22 TF_ASSIGN_OR_RETURN(hlo_module, backend().compiler()->RunHloPasses(
23 std::move(hlo_module),
24 backend().default_stream_executor(),
25 /*device_allocator=*/nullptr));
26 return backend().compiler()->RunBackend(std::move(hlo_module),
27 backend().default_stream_executor(),
28 /*device_allocator=*/nullptr);
29}
30
31StatusOr<std::unique_ptr<AotCompilationResult>>
32CodegenTestBase::CompileToAotCompilationResult(

Callers

nothing calls this directly

Calls 6

backendFunction · 0.85
TF_ASSIGN_OR_RETURNFunction · 0.50
RunHloPassesMethod · 0.45
compilerMethod · 0.45
RunBackendMethod · 0.45

Tested by

no test coverage detected