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

Type Conflict Between JAX NumPy and Python's float() in EvoJAX SlimeVolley #81

Open
Yuta-Kondo opened this issue Dec 4, 2024 · 0 comments

Comments

@Yuta-Kondo
Copy link

I think there exists the type conflict of jax numpy and python's float() function.
In evojax/task/slimevolley.py, jax.numpy.float32 is used, and this is the tax scaler constructor of type float 32. But, Jax represents scalars as zero dimensional arrays, which causes the conflict with python's float() function.
Image

When I ran examples/train_slimevolley.py file, I got this error after training the model.

TypeError: Only scalar arrays can be converted to Python scalars; got arr.ndim=1

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