Skip to content
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

feat: early fail if not correct region #1008

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

feat: early fail if not correct region #1008

wants to merge 2 commits into from

Conversation

avik-pal
Copy link
Collaborator

No description provided.

function create_operation(args...; kwargs...)
res = create_operation_common(args...; kwargs...)
res = create_operation_common_with_checks(args...; kwargs...)
if _has_block()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

technically speaking the actual issue here is actually on like 349, where we're accidentally creating a stablehlo.constant operation, and pushing it into a module. It's probably better to figure out we're creating it at the wrong place, rather than figure out during the use stage that we're using an operation which is itself in the wrong place

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We had an older issue where a concreteRNG state wasn't being reset, so the region was completely different. We can't capture that without adding checks here

@avik-pal
Copy link
Collaborator Author

currently low priority, will deal with this later

@avik-pal avik-pal marked this pull request as draft March 23, 2025 02:29
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