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

ValueError: jaxlib.xla_extension.ArrayImpl #170

Open
alex-suspicious opened this issue Jan 30, 2024 · 0 comments
Open

ValueError: jaxlib.xla_extension.ArrayImpl #170

alex-suspicious opened this issue Jan 30, 2024 · 0 comments

Comments

@alex-suspicious
Copy link

python3 -m riffusion.streamlit.playground

Gives this error:

  File "/home/alex/.local/lib/python3.11/site-packages/flax/struct.py", line 100, in dataclass
    data_clz = dataclasses.dataclass(frozen=True)(clz)  # type: ignore
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/dataclasses.py", line 1220, in wrap
    return _process_class(cls, init, repr, eq, order, unsafe_hash,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/dataclasses.py", line 958, in _process_class
    cls_fields.append(_get_field(cls, name, type, kw_only))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/dataclasses.py", line 815, in _get_field
    raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'jaxlib.xla_extension.ArrayImpl'> for field derivatives is not allowed: use default_factory
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