Created by: Veipin
PaddleNLP\emotion_detection 模型预测封装为服务类,多线程调用,当超过3个线程以上运行时, pred = exe.run(infer_program, feed={feed_names[0]: data, feed_names[1]: seq_lens}, fetch_list=fetch_targets, return_numpy=True) 返回的pred是个空列表,没有情感预测的三个概率数值,有一定几率出现