TypeError: forward() missing 2 required positional arguments: 'cap_lens' and 'hidden'

Are you referring to input_var using a Variable keyword? Instead of

input_var = Variable(torch.randn(27297, 300), requires_grad=True)

I should have it as

input_var = torch.randn(27297, 300)

What Happens with

requires_grad=True?