tensorflow/compiler/xla/python/transfer_guard_lib.cc
// Returns the transfer guard action for a host-to-device transfer.
// REQUIRES: Python GIL.
Returns the transfer guard action for a host-to-device transfer.
REQUIRES: Python GIL.
Returns the transfer guard action for a host - to - device transfer . REQUIRES : Python GIL .
TransferGuardAction GetTransferGuardActionForHostToDevice() {
  return GetTransferGuardAction(
      thread_local_state.host_to_device.value_or(
          global_state.host_to_device.value_or(kDefaultGuardLevel)),
      thread_local_state.explicit_device_put);
}
TransferGuardAction GetTransferGuardActionForHostToDevice ( ) { return GetTransferGuardAction ( thread_local_state . host_to_device . value_or ( global_state . host_to_device . value_or ( kDefaultGuardLevel ) ) , thread_local_state . explicit_device_put ) ; }
Returns the transfer guard action for a host-to-device transfer.
Returns the transfer guard action for a host - to - device transfer .