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

Allow turning off context unrolling for post_generation decorator. #1110

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

m000
Copy link

@m000 m000 commented Jan 3, 2025

In some cases, it is desired to pass lazy functions as post-generation kwargs. E.g. provide a factory.LazyFunction, that will in turn be used as a keyword argument to create_batch().

Because context unrolling is enabled for PostGeneration, this is not possible because the lazy function will be evaluated (unrolled) before calling the post-generation function.

With this PR, it is possible to disable context unrolling for post-generation, depending on the use case.

@m000 m000 force-pushed the post-generation-unroll branch from e933211 to 78c2ec3 Compare January 3, 2025 22:55
@m000 m000 force-pushed the post-generation-unroll branch from 78c2ec3 to 2ecf6b1 Compare January 3, 2025 22:58
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