baidu / Senta

Baidu's open-source Sentiment Analysis System.
Apache License 2.0
1.91k stars 371 forks source link

无法正常使用(Please compile with MKLDNN first to use MKLDNN) #44

Closed ou-bing closed 3 years ago

ou-bing commented 4 years ago

OS:macOS catalina 10.15.6 (19G73) Python:3.7.8

from senta import Senta my_senta = Senta() use_cuda =False my_senta.init_model(model_class="ernie_1.0_skep_large_ch", task="sentiment_classify", use_cuda=use_cuda)

提示:E0910 08:57:15.549779 135937472 analysis_config.cc:190] Please compile with MKLDNN first to use MKLDNN

我用 brew install mkl-dnn 后还是提示这个错误。

tongchuchu commented 3 years ago

请问这个问题解决了吗?我也遇到了一毛一样的问题

ou-bing commented 3 years ago

请问这个问题解决了吗?我也遇到了一毛一样的问题

没解决,建议使用docker镜像