原创 [Pytorch --- 6] Roberta分類任務,出現RuntimeError: Creating MTGP constants failed

1. 原因 Roberta 模型的輸入,不能包括token_type_ids,否則就會出現上述bug 2. 解決方案 將token_type_ids輸入設置爲None   inputs = { "input_ids":