【发布时间】:2022-01-29 21:23:03
【问题描述】:
我正在尝试执行转换器模型,但最终出现错误。
- Python 版本 == 3.7
- 张量流 == 2.0
- 变形金刚 == 4.15.0
我的代码:
import tensorflow
from transformers import pipeline, AutoModelForTokenClassification,BertTokenizer
pipeline("zero-shot-classification",model="cross-encoder/nli-deberta-v3-small")
错误:模块“tensorflow_core.keras.activations”没有属性“swish”
【问题讨论】:
标签: python nlp tensorflow2.0 bert-language-model transformer