transformers
dfd81842 - Fix attribute error problem (#20765)

Commit
3 years ago
Fix attribute error problem (#20765) fix: 修复Trainer无法使用use_legacy_prediction_loop参数的问题 解决使用use_legacy_prediction_loop参数在predict阶段使用prediction_loop进行预测时,遇到AttributeError: 'PredictionOutput' object has no attribute 'num_samples'的问题 Co-authored-by: ZhouHang <zhouhang@idataway.com>
Author
Parents
Loading