Closed DougTrajano closed 9 months ago
Since the TorchTabularTextDataset accepts the labels as None, we have an issue in the __len__() method that uses the self.labels to return the len.
__len__()
self.labels
In this PR, we suggest replacing it with the length of self.encodings.
self.encodings
Thanks for all the effort Doug! I've merged both PRs in
Since the TorchTabularTextDataset accepts the labels as None, we have an issue in the
__len__()
method that uses theself.labels
to return the len.In this PR, we suggest replacing it with the length of
self.encodings
.