Skip to content

Use eager execution for is_masking property.#99

Open
copybara-service[bot] wants to merge 1 commit intomainfrom
test_912434914
Open

Use eager execution for is_masking property.#99
copybara-service[bot] wants to merge 1 commit intomainfrom
test_912434914

Conversation

@copybara-service
Copy link
Copy Markdown

Use eager execution for is_masking property.

Running the previous is_masking in a jitted function failed with a ConcretizationTypeError. This is due to jnp.array(invariant_probs) creating abstract traced values instead of concrete ones.

Here, we instead evaluate the is_masking configuration in pure Python (using numpy) so that the result is known at trace time.

Running the previous is_masking in a jitted function failed with a ConcretizationTypeError. This is due to jnp.array(invariant_probs) creating abstract traced values instead of concrete ones.

Here, we instead evaluate the is_masking configuration in pure Python (using numpy) so that the result is known at trace time.

PiperOrigin-RevId: 912434914
@google-cla
Copy link
Copy Markdown

google-cla Bot commented May 8, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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.

0 participants