jaywonchung/BERT4Rec-VAE-Pytorch

About padding index number

ys201810 opened this issue · 1 comments

Hi!!

Thanks for great code!
I have one question about padding at dataloaders/bert.py.

tokens = [0] * mask_len + tokens

seq = [0] * padding_len + seq

At this code, if item length is not enough, then pad using [0].
But I think, index 0 already have a Corresponding itemID, so that is padding using real itemID, right?

Thanks