DEVICE_XLA_INTERPRETER, DEVICE_INTERPRETER_XLA_JIT);
(void)registrations;
+ XlaOpRegistry::DeviceRegistration registration;
+ registration.compilation_device_name = DEVICE_INTERPRETER_XLA_JIT;
+ registration.requires_compilation = true;
+ registration.enable_jit_by_default = false;
+ registration.compile_resource_ops = true;
+
std::unique_ptr<XlaDevice> device;
- TF_RETURN_IF_ERROR(XlaDevice::Create(
- "Interpreter", DEVICE_XLA_INTERPRETER, 0, DEVICE_INTERPRETER_XLA_JIT,
- options, name_prefix, /*register_device_for_compilation=*/true, &device));
+ TF_RETURN_IF_ERROR(XlaDevice::Create("Interpreter", DEVICE_XLA_INTERPRETER, 0,
+ DEVICE_INTERPRETER_XLA_JIT, options,
+ name_prefix, registration,
+ /*transfer_as_literal=*/false, &device));
devices->push_back(device.release());
return Status::OK();
}