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

Using Elegy with Equinox? #235

Open
nalzok opened this issue May 17, 2022 · 1 comment
Open

Using Elegy with Equinox? #235

nalzok opened this issue May 17, 2022 · 1 comment

Comments

@nalzok
Copy link

nalzok commented May 17, 2022

I am under the impression that Elegy is not really an NN framework by itself. Instead, it wraps NN frameworks like Treex/Equinox/Flax/Haiku to automate the training loop and provide handy utilities like elegy.Model.summary. If that is the case, could you provide a quick example of using Elegy with Equinox?

@cgarciae
Copy link
Collaborator

cgarciae commented May 23, 2022

Hey @nalzok, this version of Elegy relies heavily on Treex to wrap other frameworks, checkout FlaxModule and HaikuModule e.g.

https://github.com/cgarciae/treex/blob/c35d68b261144ed9f04babc4434419ff576d36ad/treex/nn/flax_module.py#L16

Using arbitrary frameworks will be much easier with #236. I expect to roll a dev version of Elegy soon, if you want to try it out I'd be happy to help you get started.

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

No branches or pull requests

2 participants