Skip to content

Installation Issue from flax vs jax compatibility #192

@david2611

Description

@david2611

Following the install instructions on the main README page caused an error seemingly due to incompatibilities between jax and flax.

Following install instructions gave jax version 0.4.16 and flax version 0.5.3

Running the example training code gave the following error ImportError: cannot import name 'ShapedArray' from 'jax'

I have not used jax or flax before but from doing some digging this seems to be because jax hasn't provided ShapedArray since version 0.4.14.

Upgrading flax to version 0.7.0 got past this problem but opened up a new issue of flax.optim no longer being a part of the flax library.

What is the recommended solution to this problem and can code/documentation be updated to reflect this compatibility issue?

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