I want to train linear classifier with RNN encoder and decoder
train_fn(model, dataloaders)
model = LinearClassifier(encoder=encoder, enc_type=‘rnn’, H=H, C=C)
but I’m getting error here while training:
pbar = tqdm(enumerate(train_dataloader),total=len(train_dataloader))
The error is:
TypeError: ‘NoneType’ object cannot be interpreted as an integer

Screen Shot 2021-10-23 at 4.09.50 PM1636×236 30.5 KB