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

Add stubs for jax.ArrayN.{min,max,std,mean} #14

Open
mrahtz opened this issue May 11, 2023 · 1 comment
Open

Add stubs for jax.ArrayN.{min,max,std,mean} #14

mrahtz opened this issue May 11, 2023 · 1 comment

Comments

@mrahtz
Copy link
Collaborator

mrahtz commented May 11, 2023

In JAX, array classes have methods .min(), .max(), .std() and .mean(). We should provide stubs for these.

@hylkedonker
Copy link

Would it also be possible to add .sum() to the list? I currently use jnp.sum(X) instead of X.sum() to infer the right index semantics. Ideally, I prefer to use X.sum() instead of jnp.sum(X), but this raises mypy errors such as:

error: "ArrayN[DType, ...]" has no attribute "sum"  [attr-defined]

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