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

refactor: Remove context class, back to raw dictionaries #154

Merged
merged 2 commits into from
Oct 29, 2024

Conversation

nicholasjng
Copy link
Collaborator

With flattening and unflattening as functional methods moved into nnbench.util.

The class was pretty much just a wrapper around a dict with nesting support on a separator, and didn't provide a lot of value on its own.

Since we already typed the context provider as a callable returning a raw dictionary, it doesn't create any churn to switch the context out for a raw dict, either.

With flattening and unflattening as functional methods moved into
`nnbench.util`.

The class was pretty much just a wrapper around a dict with nesting
support on a separator, and didn't provide a lot of value on its own.

Since we already typed the context provider as a callable returning a raw
dictionary, it doesn't create any churn to switch the context out for a
raw dict, either.
@nicholasjng nicholasjng merged commit 3eefa56 into main Oct 29, 2024
14 checks passed
@nicholasjng nicholasjng deleted the remove-context-class branch October 29, 2024 18:08
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