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

[linen] generalize transform caching #4057

Merged
merged 1 commit into from
Jul 22, 2024
Merged

[linen] generalize transform caching #4057

merged 1 commit into from
Jul 22, 2024

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Jul 4, 2024

[linen] generalize transform caching

  • Renames decorator_lift_transform_jit to decorator_lift_transform_cached and module_class_lift_transform_jit to module_class_lift_transform_cached, and generalizes them to accept a transform.
  • Adds lift_transfom_cached to allow lifting any transform using the functions above.
  • Updates lift.checkpoint so it can be used with lift_transfom_cached.
  • Fixes potential bug in lift.jit.

* Renames `decorator_lift_transform_jit` to `decorator_lift_transform_cached` and `module_class_lift_transform_jit` to `module_class_lift_transform_cached`, and generalizes them to accept a `transform`.
* Adds `lift_transfom_cached` to allow lifting any transform using the functions above.
* Updates `lift.checkpoint` so it can be used with `lift_transfom_cached`.
* Fixes potential bug in `lift.jit`.

PiperOrigin-RevId: 654696043
@copybara-service copybara-service bot merged commit 4e83e09 into main Jul 22, 2024
@copybara-service copybara-service bot deleted the test_649420171 branch July 22, 2024 11:44
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