Skip to content

What does linen.transforms.scan do? #1067

Answered by jheek
cccntu asked this question in Q&A
Discussion options

You must be logged in to vote

These are the "lifted" jax transformations for linen. The short story is that jax transforms don't work natively with stateful things (eg. variables, rng sequences) like linen Modules. These lifted transforms wrap the existing jax transforms and add functionality on top it to support modules fully. You can check flax.core.lift for their implementation and a short docstring. Over the last months we have stabilised the implementation and you can soon expect proper documentation and examples for these features.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by cccntu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants