Expose TPU model server initialization.
PiperOrigin-RevId: 356631873 Change-Id: I488e73e403a8a761ea1e652bfe7e337033462514
This commit is contained in:
parent
4c01f5d82f
commit
52eb80d341
@ -79,6 +79,8 @@ tensorflow::Status SetTpuOpsStructFns(void* library_handle) {
|
||||
TFTPU_SET_FN(ops_api_fn, TpuProfiler_Stop);
|
||||
TFTPU_SET_FN(ops_api_fn, TpuProfiler_CollectData);
|
||||
|
||||
TFTPU_SET_FN(ops_api_fn, TfTpu_InitializeTpuModelServer);
|
||||
|
||||
return tensorflow::Status::OK();
|
||||
}
|
||||
|
||||
|
@ -426,6 +426,9 @@ void TpuNodeContext_CloseTpuHost(TF_Status* status);
|
||||
|
||||
void TpuNodeContext_Initialize(int device_ordinal, TF_Status* status);
|
||||
|
||||
// Globally initialize the TPU system for inference.
|
||||
TFTPU_CAPI_EXPORT void TfTpu_InitializeTpuModelServer();
|
||||
|
||||
struct TfTpu_OpsApiFn {
|
||||
TFTPU_ADD_FN_IN_STRUCT(TpuCompile_CompileAndBuild);
|
||||
TFTPU_ADD_FN_IN_STRUCT(TpuCompile_XrtCompileAndBuild);
|
||||
@ -492,6 +495,8 @@ struct TfTpu_OpsApiFn {
|
||||
TFTPU_ADD_FN_IN_STRUCT(TpuNodeContext_StopChipHeartbeats);
|
||||
TFTPU_ADD_FN_IN_STRUCT(TpuNodeContext_CloseTpuHost);
|
||||
TFTPU_ADD_FN_IN_STRUCT(TpuNodeContext_Initialize);
|
||||
|
||||
TFTPU_ADD_FN_IN_STRUCT(TfTpu_InitializeTpuModelServer);
|
||||
};
|
||||
|
||||
} // extern "C"
|
||||
|
Loading…
Reference in New Issue
Block a user