def cat(cls, entity_lists: Sequence['EntityList']) -> 'EntityList': return cls(torch.cat([el.tensor for el in entity_lists]), TensorList.cat(el.tensor_list for el in entity_lists))
def cat(cls, entity_lists: Sequence["EntityList"]) -> "EntityList": return cls( torch.cat([el.tensor for el in entity_lists]), TensorList.cat(el.tensor_list for el in entity_lists), )