Skip to content

Prevent XLA from crashing when a Literal is too big to fit in memory. #97400

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 23, 2025

Conversation

copybara-service[bot]
Copy link

Prevent XLA from crashing when a Literal is too big to fit in memory.

The Literal(Shape) constructor is unsafe: it may crash when the shape is too large to fit in memory. Deprecate it in favor of a static factory Literal::Make(Shape), which returns a Status on allocation failure instead of crashing.

The `Literal(Shape)` constructor is unsafe: it may crash when the shape is too large to fit in memory. Deprecate it in favor of a static factory `Literal::Make(Shape)`, which returns a `Status` on allocation failure instead of crashing.

PiperOrigin-RevId: 786179524
@copybara-service copybara-service bot force-pushed the exported_pr_786130741 branch from fd914b3 to 42a44b1 Compare July 23, 2025 08:35
@copybara-service copybara-service bot merged commit 42a44b1 into master Jul 23, 2025
@copybara-service copybara-service bot deleted the exported_pr_786130741 branch July 23, 2025 08:35
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.

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy