What version of pytorch are you on? I’m having trouble running the code due to some other errors.
The error generally means that one of modules you used computed an output size that is not possible, ie, (100, 0, 1). This could mean that the input you passed in was too small, or that there’s some bug somewhere.
i thought of printing shape of embedding but seems to be wrong. My shape of input is (64L, 18L). I am new to this field and i don;t know what size fits and what size don’t fit
I’m having trouble running your model with CNN_Text(torch.randn(64, 18). In general, though, through some print statements like you’re doing right now you should be able to find out which layer you’re passing in the wrong input to. If it’s one of the conv layers, the docs have a formula for what size the output ends up to be.