Skip to content

Commit f174b00

Browse files
changhuilinGoogle-ML-Automation
authored andcommitted
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
1 parent 8c35191 commit f174b00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/jax_cpp/main.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ int main(int argc, char** argv) {
8181
xla::XlaComputation xla_computation(test_module_proto);
8282
xla::CompileOptions compile_options;
8383
std::unique_ptr<xla::PjRtLoadedExecutable> executable =
84-
client->Compile(xla_computation, compile_options).value();
84+
client->CompileAndLoad(xla_computation, compile_options).value();
8585

8686
// Prepare inputs.
8787
xla::Literal literal_x =

0 commit comments

Comments
 (0)