Skip to content

Conversation

@ysiraichi
Copy link
Collaborator

This PR removes the deprecated GetDefaultDevice(), and renames SafeGetDefaultDevice(), removing its Safe prefix. Then, it also adapts all GetDefaultDevice() call sites, so as to handle the returned status-like instance appropriately.

Key Changes:

  • Remove the deprecated GetDefaultDevice()
  • Rename SafeGetDefaultDevice() to GetDefaultDevice()
  • Handle the returned status-like instance of all GetDefaultDevice() call sites
  • Use [[deprecated(...)]] instead of ABSL_DEPRECATED for TryGetXlaTensor() function

@ysiraichi ysiraichi force-pushed the ysiraichi/use-safe-get-default-device branch from b12a901 to 8767c73 Compare December 3, 2025 12:56
@ysiraichi ysiraichi merged commit 6c47e43 into master Dec 3, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants