Change not visible to public.
PiperOrigin-RevId: 314878442 Change-Id: Ife98e7f85a9c800caa1c24153f5edac15ef40b7c
This commit is contained in:
parent
6109ccc4ea
commit
3dcbf3c4fd
|
@ -24,9 +24,13 @@ limitations under the License.
|
|||
|
||||
typedef struct TpuSerializedProto TpuSerializedProto;
|
||||
|
||||
extern "C" {
|
||||
namespace tensorflow {
|
||||
namespace tpu {
|
||||
class TpuMeshStateInterface;
|
||||
} // namespace tpu
|
||||
} // namespace tensorflow
|
||||
|
||||
TFTPU_CAPI_EXPORT bool TPUHostInitialized();
|
||||
extern "C" {
|
||||
|
||||
TFTPU_CAPI_EXPORT void ConfigureDistributedTpuOp_DoWork(
|
||||
const size_t num_cores_per_host_size, const int32_t* num_cores_per_host,
|
||||
|
@ -36,6 +40,7 @@ TFTPU_CAPI_EXPORT void ConfigureDistributedTpuOp_DoWork(
|
|||
TFTPU_CAPI_EXPORT void WaitForDistributedTpuOp_DoWork(
|
||||
const size_t num_hosts, const size_t num_cores_per_host,
|
||||
const int32_t** host_ordinal_to_global_core_id_map,
|
||||
tensorflow::tpu::TpuMeshStateInterface* tpu_mesh_state_interface,
|
||||
size_t* tpu_topology_output_size, char** tpu_topology_output,
|
||||
TF_Status* status);
|
||||
|
||||
|
@ -58,7 +63,6 @@ TFTPU_CAPI_EXPORT void TpuConfigurationApi_FreeInt32Array(int32_t* output);
|
|||
}
|
||||
|
||||
struct TfTpu_ConfigApiFn {
|
||||
TFTPU_ADD_FN_IN_STRUCT(TPUHostInitialized);
|
||||
TFTPU_ADD_FN_IN_STRUCT(ConfigureDistributedTpuOp_DoWork);
|
||||
TFTPU_ADD_FN_IN_STRUCT(WaitForDistributedTpuOp_DoWork);
|
||||
TFTPU_ADD_FN_IN_STRUCT(ShutdownDistributedTpuOp_DoWork);
|
||||
|
|
|
@ -41,7 +41,6 @@ Status SetTpuInitializeStructFns(void* library_handle) {
|
|||
Status SetTpuConfigStructFns(void* library_handle) {
|
||||
auto* config_fn = ConfigApiFn();
|
||||
|
||||
TFTPU_SET_FN(config_fn, TPUHostInitialized);
|
||||
TFTPU_SET_FN(config_fn, ConfigureDistributedTpuOp_DoWork);
|
||||
TFTPU_SET_FN(config_fn, WaitForDistributedTpuOp_DoWork);
|
||||
TFTPU_SET_FN(config_fn, ShutdownDistributedTpuOp_DoWork);
|
||||
|
|
Loading…
Reference in New Issue