codertimo / codertimo/BERT-pytorch
What should be the shapes and example of values of x and segment_info in BERT.forward?
Open
- Dominant language
- Python
- Stars
- 6.5k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
I'm trying to add BERT as trainable part to my model and want to pass some data to it.
Could you complete my code example with some x and segment_info?
```
from bert_pytorch import BERT
N = 30000
bert_model = BERT(N)
x = ...
segment_info = ...
bert_model.forward(x, segment_info)
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.