chore(release): v0.5.2#226
Merged
Merged
Conversation
Contributor
Reviewer's GuideRelease v0.5.2 wires up the new public predicate brainstate.transform.in_new_state_probe() (implemented elsewhere) by documenting it in the changelog and bumps the package version constant to 0.5.2 for distribution. Sequence diagram for in_new_state_probe interaction with vmap_new_states and a one-shot consumersequenceDiagram
participant vmap_new_states
participant wrapped_fn
participant in_new_state_probe
participant OneShotConsumer
rect rgb(230,230,255)
vmap_new_states->>wrapped_fn: probe_call()
wrapped_fn->>in_new_state_probe: in_new_state_probe()
in_new_state_probe-->>wrapped_fn: True
wrapped_fn->>OneShotConsumer: compile_graph(args)
OneShotConsumer->>in_new_state_probe: in_new_state_probe()
in_new_state_probe-->>OneShotConsumer: True
OneShotConsumer-->>wrapped_fn: [side effect deferred]
vmap_new_states-->>vmap_new_states: [discard probe states]
end
rect rgb(230,255,230)
vmap_new_states->>wrapped_fn: mapped_call()
wrapped_fn->>in_new_state_probe: in_new_state_probe()
in_new_state_probe-->>wrapped_fn: False
wrapped_fn->>OneShotConsumer: compile_graph(args)
OneShotConsumer->>in_new_state_probe: in_new_state_probe()
in_new_state_probe-->>OneShotConsumer: False
OneShotConsumer-->>wrapped_fn: [perform one-shot side effect]
vmap_new_states-->>vmap_new_states: [bind to real mapped states]
end
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release v0.5.2
A small, additive feature release for
brainstate.transform.What's in this release
brainstate.transform.in_new_state_probe()(feat(transform): in_new_state_probe() + complex/failure tests for *_new_states #225) — a public predicate thatlets state-bound, one-shot consumers cooperate with the eager discovery probe that
vmap_new_states/vmap2_new_states/pmap2_new_statesrun to enumerate therandom states a function creates before the real mapped pass. Code that performs a
one-shot side effect bound to the created state objects (e.g. a graph compiler that
caches a computation keyed on freshly-initialised states) can defer that work to the
real mapped pass, binding to the correctly-tagged, batched states rather than the
throwaway probe states. Implemented as a thread-local depth counter, so it composes
under nesting and resets cleanly on error.
_mapping1,_mapping2, and_mapping_core.No public APIs are removed or renamed; behavior is unchanged for code that does not
call the new helper.
Changes
__version__to0.5.2Version 0.5.2changelog sectionSee
changelog.mdfor the full release notes.Summary by Sourcery
Release version 0.5.2 with an additive helper in brainstate.transform and accompanying documentation and testing updates.
New Features:
Build:
Documentation:
Tests: