# Which model is best for the generating accurate answers of the Boolean questions?

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

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