Closed kumar-mahendra closed 3 years ago
Nice catch Kumar! Since our inputs are of the same length I have to stack them here. In subsequent lessons with variable sequence lengths within a batch, we have to use batch[:, i]. I'll push this fix later today.
class
Dataset
's methodcollate_fn
needs a little change as otherwise following error in thrown when creating dataloaderValueError: setting an array element with a sequence
Given Code
Suggested solution