Compact-Transformers icon indicating copy to clipboard operation
Compact-Transformers copied to clipboard

Fixed text tokenizer mask shape

Open HosseinZaredar opened this issue 4 years ago • 0 comments

Hi,

There was a small problem with the mask returned from TextTokenizer forward function. The next function using this mask needs a 2D tensor. Therefore, in TextTokenizer, the mask should not be unsqueezed before being returned.

The problem is fixed in this pull request.

HosseinZaredar avatar Feb 13 '22 19:02 HosseinZaredar