Skip to content

Always unwrap single-key state dicts - #206

Merged
joeyballentine merged 1 commit into
mainfrom
unwrap-key
Mar 23, 2024
Merged

joeyballentine merged 1 commit into
mainfrom
unwrap-key

Conversation

@RunDevelopment

Copy link
Copy Markdown
Member

This implements Joey's idea:

To potentially support more things that do that, could we check if the top level keys length is 1, and if that key contains a dict? If so, then unwrap it, regardless of what it is

@joeyballentine
joeyballentine merged commit 56b4fbc into main Mar 23, 2024
@joeyballentine
joeyballentine deleted the unwrap-key branch March 23, 2024 01:05
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