TabFormer
TabFormer copied to clipboard
Issue in TransDataCollatorForLanguageModeling
AttributeError: 'TransDataCollatorForLanguageModeling' object has no attribute '_tensorize_batch'
I replaced that line with
if isinstance(examples[0], (list, tuple, np.ndarray)):
examples = [torch.tensor(e, dtype=torch.long) for e in examples]
and it does what (i think) is supposed to happen