10000 ImportError: cannot import name 'dtensor_api' from 'keras.dtensor' · Issue #507 · magenta/ddsp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
ImportError: cannot import name 'dtensor_api' from 'keras.dtensor' #507
Open
@ultranoise

Description

@ultranoise

Hi,
I am training a new model at the Colab linked from the VST (https://colab.research.google.com/github/magenta/ddsp/blob/main/ddsp/colab/demos/Train_VST.ipynb). I am running it connected with a T4.

During DDSP installation I get the error below. Is there any incompatibility between the version of tensorflow and keras? how can I solve it?


Installing DDSP...
This should take about 2 minutes...


ImportError Traceback (most recent call last)

/usr/local/lib/python3.10/dist-packages/ipyfilechooser/filechooser.py in _on_select_click(self, _b)
315 if self._callback is not None:
316 try:
--> 317 self._callback(self)
318 except TypeError:
319 # Support previous behaviour of not passing self

12 frames

/usr/local/lib/python3.10/dist-packages/keras/engine/base_layer_utils.py in
22
23 from keras import backend
---> 24 from keras.dtensor import dtensor_api as dtensor
25 from keras.utils import control_flow_util
26 from keras.utils import tf_inspect

ImportError: cannot import name 'dtensor_api' from 'keras.dtensor' (/usr/local/lib/python3.10/dist-packages/keras/dtensor/init.py)

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

      0