This is the problem I encountered when implementing “Transformers”. What should I put in src_key_padding_mask (float? bool? byte? int?)?
What is the possible cause of this error?

螢幕擷取畫面 2021-03-23 1446071377×706 72.1 KB


螢幕擷取畫面 2021-03-23 1446461680×792 63.2 KB


螢幕擷取畫面 2021-03-23 1447331340×787 41.4 KB


螢幕擷取畫面 2021-03-23 1447571727×418 24.5 KB

I don’t know where the possible error is, he didn’t give a hint