You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
代码: model = BertForSequenceClassification.from_pretrained('/home/linux/FinBERT/bert_config.json',from_tf=True)
加载报错 ,安装tensorflow==1.14.0 会报错data_adapter 和 .keras_tensor 模块找不到
~/anaconda3/lib/python3.6/site-packages/transformers/modeling_tf_utils.py in <module>() 29 from tensorflow.python.keras import backend as K 30 from tensorflow.python.keras.engine import data_adapter ---> 31 from tensorflow.python.keras.engine.keras_tensor import KerasTensor 32 from tensorflow.python.keras.saving import hdf5_format 33 ModuleNotFoundError: No module named 'tensorflow.python.keras.engine.keras_tensor'
The text was updated successfully, but these errors were encountered:
代码:
model = BertForSequenceClassification.from_pretrained('/home/linux/FinBERT/bert_config.json',from_tf=True)
加载报错 ,安装tensorflow==1.14.0 会报错data_adapter 和 .keras_tensor 模块找不到
~/anaconda3/lib/python3.6/site-packages/transformers/modeling_tf_utils.py in <module>() 29 from tensorflow.python.keras import backend as K 30 from tensorflow.python.keras.engine import data_adapter ---> 31 from tensorflow.python.keras.engine.keras_tensor import KerasTensor 32 from tensorflow.python.keras.saving import hdf5_format 33 ModuleNotFoundError: No module named 'tensorflow.python.keras.engine.keras_tensor'
The text was updated successfully, but these errors were encountered: