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

Proper backend support #13

Merged
merged 14 commits into from
Aug 5, 2022
Merged

Conversation

andreped
Copy link
Collaborator

@andreped andreped commented Aug 5, 2022

This PR is the result of the discussion from #11.

The aim was to be able to use different backends, without the need to install all backends. This is useful as torch/tf often collides, which may hinder people to use staintools out-of-the-box.

What I did was to make subpackages within the main package, totally stratified into three packages: base, tf_backend, torch_backend. The numpy backend is part of the base, as both tf and torch depends on numpy. I also added more CIs to properly verify that it works, but more can be added if necessary. But it should be fine for now.

Last that remains is to simplify imports, as mentioned #11 (comment).

Milestones:

  • Stratified package into three subpackages for the code base and the two backens.
  • Added specific CIs to verify that the tool works for tf/torch, without the need for both.
  • Simplify imports.
  • Final refactoring when everything works as intended.

@andreped andreped linked an issue Aug 5, 2022 that may be closed by this pull request
@carloalbertobarbano
Copy link
Member

Thanks for the PR, I will merge it into a new branch and work on fixing the imports

@carloalbertobarbano carloalbertobarbano changed the base branch from main to backends August 5, 2022 17:44
Copy link
Member

@carloalbertobarbano carloalbertobarbano left a comment

Choose a reason for hiding this comment

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

Seems ok

@carloalbertobarbano carloalbertobarbano merged commit 4448536 into EIDOSLAB:backends Aug 5, 2022
@andreped andreped added the enhancement New feature or request label Aug 5, 2022
@andreped andreped self-assigned this Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Multiple backends support
2 participants