Closed guotong1988 closed 5 years ago
https://github.com/codertimo/BERT-pytorch/blob/alpha0.0.1a5/bert_pytorch/model/embedding/position.py#L18
What are the shapes of position and div_term?
position
div_term
It's fairly easy to step through the code to find the shape. d_model is the embedding size and max_len is the maximum length of a sequence. Hope this helps
https://github.com/codertimo/BERT-pytorch/blob/alpha0.0.1a5/bert_pytorch/model/embedding/position.py#L18
What are the shapes of
position
anddiv_term
?