0
$\begingroup$

I am trying to generate the question using T5 transformer answer of the questions but I am getting the error like below.

enter image description here

here is the code.

if hasattr(self.embeddings, "token_type_ids"):
    buffered_token_type_ids = self.embeddings.token_type_ids[:, :seq_length]
    buffered_token_type_ids_expanded = buffered_token_type_ids.expand(batch_size, seq_length)
    token_type_ids = buffered_token_type_ids_expanded
else:

here is the link of the whole code. https://www.dropbox.com/s/6acpi3y1mmpe0mt/modeling_roberta.py?dl=0

$\endgroup$

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.