kpe / bert-for-tf2

A Keras TensorFlow 2.0 implementation of BERT, ALBERT and adapter-BERT.
https://github.com/kpe/bert-for-tf2
MIT License
803 stars 193 forks source link

tensorflow.python.keras.layer.input_spec should be replaced with tensorflow.keras.layers.InputSpec #98

Open Caolongjie opened 1 year ago

Caolongjie commented 1 year ago

https://github.com/tensorflow/tensorflow/issues/59863

Caolongjie commented 1 year ago

it caused the bert-for-tf2 cannot run on tensorflow-2.6.0 on python3.9