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

cannot import name 'dtensor' from 'tensorflow.compat.v2.experimental' #82

Open
masakiaota opened this issue May 5, 2023 · 1 comment

Comments

@masakiaota
Copy link

masakiaota commented May 5, 2023

Situation

After basic-pitch installation with poetry, I tried to import predict_and_save.
The version is 0.2.4.

from basic_pitch.inference import predict_and_save
>>> cannot import name 'dtensor' from 'tensorflow.compat.v2.experimental'

How to solve (Coping)

Downgrade the keras version to 2.6.0 (2.12.0 will be installed by default when you install basic-pich).

For example.

poetry add "keras==2.6.0"

See https://stackoverflow.com/questions/72255562/cannot-import-name-dtensor-from-tensorflow-compat-v2-experimental

How to solve (Fundamental)

Please solve the dependence problems...

@bgenchel
Copy link
Collaborator

bgenchel commented May 19, 2023

Hey! Thanks for letting us know about this. Would you mind posting your pyproject.toml file here? It would also be helpful to know what system you are running on.

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