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

equivariant_neural_networks notebook is broken #293

Open
stefanozampini opened this issue Oct 29, 2023 · 0 comments
Open

equivariant_neural_networks notebook is broken #293

stefanozampini opened this issue Oct 29, 2023 · 0 comments

Comments

@stefanozampini
Copy link

IrrepsArray.ones and IrrepsArray.cat are no longer available in e3nn-jax=0.20.2 and the notebook https://github.com/jax-md/jax-md/blob/main/notebooks/equivariant_neural_networks.ipynb is broken. My fix is to use IrrepsArray.concatenate instead of cat and the below method for ones. Is that ok?

def oldones(irreps, leading_shape, dtype=None):
    irreps = Irreps(irreps)
    array = jnp.ones(leading_shape + (irreps.dim,), dtype=dtype)
    return IrrepsArray(irreps, array)
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

1 participant