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

l2_normalize #102

Closed
abhinavsp0730 opened this issue Oct 22, 2020 · 2 comments
Closed

l2_normalize #102

abhinavsp0730 opened this issue Oct 22, 2020 · 2 comments

Comments

@abhinavsp0730
Copy link
Contributor

Hey, @cgarciae @charlielito I'm trying to add CosineSimalarity in elegy. But for this I want to use l2_normalize in either jax or in jax.numpy. Tensorflow is having tf.math.l2_normalize, So can I use this?. Or I've to implement my own l2_normalize in jax?

@cgarciae
Copy link
Collaborator

Hey @abhinavsp0730 !

I think you can implement it easily using jax.numpy.dot and jax.numpy.linalg.norm.

@abhinavsp0730
Copy link
Contributor Author

Thanks, closing this issue a it has been resolved.

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