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

feat: add pipefunc cache example #26

Merged
merged 1 commit into from
Nov 28, 2024
Merged

feat: add pipefunc cache example #26

merged 1 commit into from
Nov 28, 2024

Conversation

egorchakov
Copy link
Contributor

https://pipefunc.readthedocs.io/en/stable/tutorial/

If calling the pipeline like a function (in contrast to using pipeline.map) keys of the cache are always in terms of the root arguments of the pipeline. When using pipeline.map, the keys are in terms of the arguments of the function.
The key is constructed from the function name and the (root) arguments passed to the function. If the arguments are not hashable, the pipefunc.cache.to_hashable function is used to attempt to convert them to a hashable form.

@egorchakov egorchakov merged commit 304b5ef into main Nov 28, 2024
1 check passed
@egorchakov egorchakov deleted the feat/cache branch November 28, 2024 16:43
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.

2 participants