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

Create a common interface for weight conversion #411

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

thodkatz
Copy link

@thodkatz thodkatz commented Aug 15, 2024

I have attempted to resolve the #383.

Initially I did minor fixes to the weight convresions while adding tests. Each weight conversion method returns the corresponding WeightDescr (fbbfc57).

Then, to enforce a common approach for different weight conversion formats, we could use an absrtact class to define the interface (a37b568). Basically I moved the implementation of each function per module to their respective class, non functional change.

Potentially we could have a factory class for all the converters as well.

- Instead of having one module per conversion, use one module, and individual classes will handle the logic of the conversion
- Create an abstract class to have a common interface among conversions
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