Register HostCount and ChipsPerHost API to executor_fn.

PiperOrigin-RevId: 336166509
Change-Id: Ib70ad53a95ba52ef0c9ed75d9c279405b9253d0f
This commit is contained in:
A. Unique TensorFlower 2020-10-08 14:33:04 -07:00 committed by TensorFlower Gardener
parent 913e0999ec
commit 3eed7f3438

View File

@ -112,6 +112,8 @@ tensorflow::Status SetExecutorStructFn(void* library_handle) {
TFTPU_SET_FN(executor_fn, TpuTopology_LogicalDevicesPerHost);
TFTPU_SET_FN(executor_fn, TpuTopology_LogicalDevicesPerChip);
TFTPU_SET_FN(executor_fn, TpuTopology_HostCount);
TFTPU_SET_FN(executor_fn, TpuTopology_ChipsPerHost);
TFTPU_SET_FN(executor_fn, TpuTopology_ChipBounds_X);
TFTPU_SET_FN(executor_fn, TpuTopology_ChipBounds_Y);
TFTPU_SET_FN(executor_fn, TpuTopology_ChipBounds_Z);