Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

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

@Yuta-Kondo

Description

@Yuta-Kondo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions