Replace the uses of PjRtClient::Compile() with PjRtClient::CompileAndLoad().

This is to prepare for updating `PjRtClient::Compile()` to return an unloaded executable [1/N]

PiperOrigin-RevId: 737805623
This commit is contained in:
Changhui Lin 2025-03-17 17:17:28 -07:00 committed by jax authors
parent 8c35191725
commit f174b00f23

View File

@ -81,7 +81,7 @@ int main(int argc, char** argv) {
xla::XlaComputation xla_computation(test_module_proto);
xla::CompileOptions compile_options;
std::unique_ptr<xla::PjRtLoadedExecutable> executable =
client->Compile(xla_computation, compile_options).value();
client->CompileAndLoad(xla_computation, compile_options).value();
// Prepare inputs.
xla::Literal literal_x =