yongzhuo / Keras-TextClassification

中文长文本分类、短句子分类、多标签分类、两句子相似度(Chinese Text Classification of Keras NLP, multi-label classify, or sentence classify, long or short),字词句向量嵌入层(embeddings)和网络层(graph)构建基类,FastText,TextCNN,CharCNN,TextRNN, RCNN, DCNN, DPCNN, VDCNN, CRNN, Bert, Xlnet, Albert, Attention, DeepMoji, HAN, 胶囊网络-CapsuleNet, Transformer-encode, Seq2seq, SWEM, LEAM, TextGCN
https://blog.csdn.net/rensihui
MIT License
1.78k stars 405 forks source link

'embedding_type': 'bert' 改成bert后报错 #71

Closed tyn513 closed 2 years ago

tyn513 commented 2 years ago

pos_embeddings = K.tile( AttributeError: module 'tensorflow._api.v1.keras.backend' has no attribute 'tile'

目前用的是cpu版本的1.12.0 不知道是不是导致这个问题的原因。。。

yongzhuo commented 2 years ago

版本问题,tf用 1.14或者1.15吧, keras用2.2.4 bert-keras用0.41.0吧