Skip to content

Remove deprecated GetDefaultDevice().#9724

Merged
ysiraichi merged 1 commit into
masterfrom
ysiraichi/use-safe-get-default-device
Dec 3, 2025
Merged

Remove deprecated GetDefaultDevice().#9724
ysiraichi merged 1 commit into
masterfrom
ysiraichi/use-safe-get-default-device

Conversation

@ysiraichi

Copy link
Copy Markdown
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.

2 participants