BERT-pytorch
BERT-pytorch copied to clipboard
What should be the shapes and example of values of x and segment_info in BERT.forward?
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)