14 #ifndef TENSORFLOW_COMPILER_XLA_CLIENT_COMPILE_ONLY_CLIENT_H_ 15 #define TENSORFLOW_COMPILER_XLA_CLIENT_COMPILE_ONLY_CLIENT_H_ 16 #include "tensorflow/compiler/xla/client/client.h" 17 #include "tensorflow/compiler/xla/client/computation.h" 20 #include "tensorflow/compiler/xla/statusor.h" 21 #include "tensorflow/compiler/xla/xla_data.pb.h" 22 #include "tensorflow/core/platform/stream_executor_no_cuda.h" 36 : Client(service), compiler_service_(service) {}
40 struct AotComputationInstance {
41 const Computation* computation;
43 std::vector<const Shape*> argument_layouts;
45 const Shape* result_layout;
50 StatusOr<std::vector<std::unique_ptr<AotCompilationResult>>>
52 const tensorflow::gtl::ArraySlice<AotComputationInstance> computations,
53 const AotCompilationOptions& options);
55 static int64 PointerSizeForTriple(tensorflow::StringPiece triple);
60 #endif // TENSORFLOW_COMPILER_XLA_CLIENT_COMPILE_ONLY_CLIENT_H_
Definition: compile_only_service.h:29
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 compi...
Definition: compile_only_client.cc:28
namespace for xla
Definition: client_library.cc:26
Definition: compile_only_client.h:33