Hi,
Can you give the full error message of where it happens?
Also the convolution expects a Tensor as input, not just a python number. So you should make sure that you have a Tensor where the error happens.