We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
我现在也遇到这个问题,请问解决了吗
Sorry, something went wrong.
修改bert_base安装目录中的..\Lib\site-packages\bert_base\server_init_.py文件: line 465: return EstimatorSpec(mode=mode, predictions={ 'client_id': features['client_id'], 'encodes': tf.argmax(pred_probs[0], axis=-1), 'score': tf.reduce_max(pred_probs[0], axis=-1) }) 修改为: return EstimatorSpec(mode=mode, predictions={ 'client_id': features['client_id'], 'encodes': pred_probs[0], 'score': pred_probs[0] }) line 515: pred_label_result = [self.id2label.get(x, -1) for x in r['encodes']] 修改为: pred_label_result = r['encodes'].tolist()
return EstimatorSpec(mode=mode, predictions={ 'client_id': features['client_id'], 'encodes': tf.argmax(pred_probs[0], axis=-1), 'score': tf.reduce_max(pred_probs[0], axis=-1) })
return EstimatorSpec(mode=mode, predictions={ 'client_id': features['client_id'], 'encodes': pred_probs[0], 'score': pred_probs[0] })
pred_label_result = [self.id2label.get(x, -1) for x in r['encodes']]
pred_label_result = r['encodes'].tolist()
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: