albert_pytorch icon indicating copy to clipboard operation
albert_pytorch copied to clipboard

这个断言可以修改一下,前面内循环判断。 if len(masked_token_labels) >= num_to_mask:

Open moonblue333 opened this issue 6 years ago • 2 comments

moonblue333 avatar Nov 22 '19 15:11 moonblue333

我也遇到了这个情况,按照作者的原始意图,在下面的循环中加上 即可
if len(masked_token_labels) >= num_to_mask: break

bingoohe avatar Jan 06 '20 07:01 bingoohe

是加在内循环吧,我看着外循环已经有了

Vimos avatar Feb 23 '20 01:02 Vimos