Vincent131499 / Multi_Label_Classifier_finetune

微调预训练语言模型,解决多标签分类任务(可加载BERT、Roberta、Bert-wwm以及albert等知名开源tf格式的模型)
138 stars 25 forks source link

eval_dict添加eval_loss key时报错 #3

Open wharstr9027 opened 3 years ago

wharstr9027 commented 3 years ago

FAILED: Failed 20210520082028730gvn0uw8a_1b9034b2_0afc_41f2_8580_17231ee747f7:ODPS-1202005:Algo Job Failed-User Error-Tensorflow script runs failed with exit code: 123, please see the details in logview. The tail contents of the stderr file: eval_metric_ops must be (metric_value, update_op) tuples, given: {'0': (<tf.Tensor 'auc/value:0' shape=() dtype=float32>, <tf.Tensor 'auc/update_op:0' shape=() dtype=float32>), '1': (<tf.Tensor 'auc_1/value:0' shape=() dtype=float32>, <tf.Tensor 'auc_1/update_op:0' shape=() dtype=float32>), '2': (<tf.Tensor 'auc_2/value:0' shape=() dtype=float32>, <tf.Tensor 'auc_2/update_op:0' shape=() dtype=float32>), '3': (<tf.Tensor 'auc_3/value:0' shape=() dtype=float32>, <tf.Tensor 'auc_3/update_op:0' shape=() dtype=float32>), 'eval_loss_auc': (<tf.Tensor 'mean_1/value:0' shape=() dtype=float32>, <tf.Tensor 'mean_1/update_op:0' shape=() dtype=float32>)} for key:

wharstr9027 commented 3 years ago

有哪位大佬遇到过,麻烦指点迷津呀~多谢多谢!