Skip to content

Conversation

@SamDuffield
Copy link
Contributor

@SamDuffield SamDuffield commented Jul 11, 2024

Adding the default argument meant a reordering of the signature.

This is in preparation for a refactor regarding #83 by changing TransformState to a NamedTuple.

This default tree_insert behaviour will be useful for updating tensor tree elements of a NamedTuple in-place, e.g. tree_insert_(state.aux, aux)

@SamDuffield SamDuffield requested a review from KaelanDt July 11, 2024 11:58
Copy link
Contributor

@KaelanDt KaelanDt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change makes sense, lgtm!

@SamDuffield SamDuffield merged commit 3dabd01 into main Jul 11, 2024
@SamDuffield SamDuffield deleted the default-f-tree-insert branch July 11, 2024 13:20
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.

3 participants