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

[JAX] Change jax.core.Trace subclasses to call super().__init__(). #814

Merged
merged 1 commit into from
Mar 13, 2025

Conversation

copybara-service[bot]
Copy link

[JAX] Change jax.core.Trace subclasses to call super().init().

Test the value of Trace._invalidated directly rather than using a hasattr test. I'm assuming the reason we did this is because we wanted to avoid updating all the subclasses to call super().init().

hasattr() tests are unnecessarily slow (did you know the one in jax.core.Trace builds an error message every time it fails?)

@copybara-service copybara-service bot force-pushed the test_736494932 branch 4 times, most recently from cf8ffcc to 371e273 Compare March 13, 2025 17:05
Test the value of Trace._invalidated directly rather than using a hasattr test. I'm assuming the reason we did this is because we wanted to avoid updating all the subclasses to call super().__init__().

hasattr() tests are unnecessarily slow (did you know the one in jax.core.Trace builds an error message every time it fails?)

PiperOrigin-RevId: 736555016
@copybara-service copybara-service bot merged commit d14f1b6 into main Mar 13, 2025
@copybara-service copybara-service bot deleted the test_736494932 branch March 13, 2025 17:27
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