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)
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?