Skip to content

Handle cases where memstats are not available for the device.#739

Merged
copybara-service[bot] merged 1 commit into
mainfrom
memstats
Jul 3, 2024
Merged

Handle cases where memstats are not available for the device.#739
copybara-service[bot] merged 1 commit into
mainfrom
memstats

Conversation

@lukebaumann

Copy link
Copy Markdown
Collaborator

Memstats are not guaranteed to be available and can throw an exception or return None. This change will handle both jaxlib.xla_extension.XlaRuntimeError if the device is not a PjRt addressable device or KeyError if the memstats returns None if they are not available.

Memstats are not guaranteed to be available and can throw an error or return None. This change will handle both `jaxlib.xla_extension.XlaRuntimeError` if the device is not a PjRt addressable device or `KeyError` if the memstats returns None if they are not available.
@copybara-service copybara-service Bot merged commit 89edace into main Jul 3, 2024
@copybara-service copybara-service Bot deleted the memstats branch July 3, 2024 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants