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

[Question/Request] Is it possible to make the framework back-end agnostic? #27

Open
juliobguedes opened this issue Jun 14, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@juliobguedes
Copy link

Is your feature request related to a problem? Please describe.
Currently, we have an interesting variety of possible back-ends for mathematical processing. However, to minimize the differences and allow a quick transition between them, frameworks like Ivy are growing and allowing users/developers/researchers/etc to implement their models through an agnostic interface and execute them in any back-end they want. This solution would also make PyTorch not a mandatory dependency for the project, and we would be able to install ClayRS along a specific back-end with commands like pip install clayrs[tf] or pip install clayrs[torch] - which also complies with HuggingFace, for instance.

Describe the solution you'd like
Something like this would be interesting if I have more than one backend available:

from clayrs.backend import use_tensorflow
use_tensorflow()

If there is only one backend available, use it as default with an info/warning message in the first usage.

Additional context
Filling this issue while attending Marco Polignano's lecture at RecSys Summer School 2023 :)

@juliobguedes juliobguedes added the enhancement New feature or request label Jun 14, 2023
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
None yet
Development

No branches or pull requests

1 participant