15 #include "tensorflow_serving/model_servers/device_runner_init_stub.h"
17 #include "absl/base/attributes.h"
18 #include "tensorflow/core/platform/errors.h"
19 #include "tensorflow/core/platform/status.h"
20 #include "tensorflow/core/tfrt/runtime/runtime.h"
22 namespace tensorflow::serving {
25 Status InitializeDeviceRunnerAndTopologyStub(tfrt_stub::Runtime&,
int*,
int*,
26 const DeviceRunnerOptions&) {
27 return tensorflow::errors::Internal(
28 "device_runner_init_impl is not linked into this binary");
32 Status InitializeDeviceRunnerAndTopology(tfrt_stub::Runtime& runtime,
33 int* num_local_devices,
35 const DeviceRunnerOptions& options) {
36 return InitializeDeviceRunnerAndTopologyFunc(runtime, num_local_devices,
37 cores_per_chip, options);
40 ABSL_CONST_INIT InitializeDeviceRunnerAndTopologyFuncType
41 InitializeDeviceRunnerAndTopologyFunc =
42 InitializeDeviceRunnerAndTopologyStub;