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

Fix main and add nnx.fori_loop test #4472

Merged
merged 1 commit into from
Jan 6, 2025
Merged

Fix main and add nnx.fori_loop test #4472

merged 1 commit into from
Jan 6, 2025

Conversation

cgarciae
Copy link
Collaborator

@cgarciae cgarciae commented Jan 6, 2025

What does this PR do?

  • Creates a custom copy of chex.set_n_cpu_devices that doesn't call jax.lib.xla_bridge._backends (which doesn't exist anymore) to fix jax_utils_test.py.
  • Adds a simple test to check that the sample specified in Why doesn't nnx.fori_loop work here? #4436 works now.

@cgarciae cgarciae changed the title [nnx] test fori_loop output Fix main and add test Jan 6, 2025
@cgarciae cgarciae changed the title Fix main and add test Fix main and add nnx.fori_loop test Jan 6, 2025
@copybara-service copybara-service bot merged commit 595e711 into main Jan 6, 2025
19 checks passed
@copybara-service copybara-service bot deleted the nnx-fix-fori branch January 6, 2025 22:50
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