tf_1.8_xla_doc
Public Member Functions | List of all members
xla::CompileOnlyClient Class Reference

#include <compile_only_client.h>

Inherits Client.

Collaboration diagram for xla::CompileOnlyClient:
[legend]

Public Member Functions

StatusOr< std::vector< std::unique_ptr< AotCompilationResult > > > CompileAheadOfTime (const tensorflow::gtl::ArraySlice< AotComputationInstance > computations, const AotCompilationOptions &options)
 Compiles a list of computations for ahead-of-time execution. This is intended for use in static compilation. The |options| parameter describes the target for which the compiler should emit code. More...
 

Detailed Description

Google Docs:

An XLA Client specialization for doing ahead-of-time compilation. This does not require (or attempt to instantiate) an execution-capable backend for the relevant platform.

Member Function Documentation

◆ CompileAheadOfTime()

StatusOr< std::vector< std::unique_ptr< AotCompilationResult > > > xla::CompileOnlyClient::CompileAheadOfTime ( const tensorflow::gtl::ArraySlice< AotComputationInstance >  computations,
const AotCompilationOptions &  options 
)

Compiles a list of computations for ahead-of-time execution. This is intended for use in static compilation. The |options| parameter describes the target for which the compiler should emit code.

  1. Create a vector of CompileOnlyService::AotComputationInstance
  2. Convert all the xla::CompileOnlyClient::AotComputationInstance objects (basically represents an xla::Computation object) into the xla::CompileOnlyService::AotComputationInstance objects.
  3. Call xla::CompileOnlyService::CompileAheadOfTime
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: