BERT 1 2月 2021 RuntimeError: The size of tensor a (1104) must match the size of tensor b (512) at non-singleton dimension 1 Hugging FaceのTransformersを使って,事前学習済モデルを読み込んで推定させるとタイトルのようなエラーがでることがある. このエラーはBERTにおけるトークン(サブワード)の最大長[…] 続きを読む