tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.cc
// Finds the host CPU device for a given TPU device.
Finds the host CPU device for a given TPU device.
Finds the host CPU device for a given TPU device .
std::string GetCPUHostDeviceForTPUDevice(Device tpu_device) {
  tpu_device.type = DEVICE_CPU;
  tpu_device.id = 0;
  return DeviceNameUtils::ParsedNameToString(tpu_device);
}
std :: string GetCPUHostDeviceForTPUDevice ( Device tpu_device ) { tpu_device . type = DEVICE_CPU ; tpu_device . id = 0 ; return DeviceNameUtils :: ParsedNameToString ( tpu_device ) ; }
Finds the host CPU device for a given TPU device.
Finds the host CPU device for a given TPU device .