ImportError: cannot import name 'expand_1d' from 'keras.engine.data_adapter'

#2
by hipples - opened

I cannot figure out how to train your model due to the import error above.

Well, really this:

.venv\lib\site-packages\transformers\modeling_tf_utils.py", line 1476, in train_step
data = data_adapter.expand_1d(data)

AttributeError: module 'keras.engine.data_adapter' has no attribute 'expand_1d'

Hi @hipples . Could you provide an example of what you are trying to do?

Sign up or log in to comment