Closed 8libra closed 2 months ago
Hey! would you like to open a PR to fix this?
Hi @ArthurZucker , I have checked the code. It seems this issue has been fixed in the current version of code. Please refer to this line of code
Thanks. I’m going to mark this as close.
System Info
Transformers v4.43.3, Python 3.12.4, Debian Linux
Who can help?
No response
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Install transformers v4.43.x.
Trigger the bug with this script:
The variable
p_mask
is of typelist
and has no numpy() method.Expected behavior
No crash