DiffEqML / torchdyn

A PyTorch library entirely dedicated to neural differential equations, implicit models and related numerical methods
https://torchdyn.org
Apache License 2.0
1.35k stars 125 forks source link

TypeError: conv2d() received an invalid combination of arguments #143

Closed KYMiao closed 2 years ago

KYMiao commented 2 years ago
When I try the code in tutorial m3a_image_classification.ipynb, I got this error: TypeError: conv2d() received an invalid combination of arguments - got (tuple, Parameter, Parameter, tuple, tuple, tuple, int), but expected one of: * (Tensor input, Tensor weight, Tensor bias, tuple of ints stride, tuple of ints padding, tuple of ints dilation, int groups) didn't match because some of the arguments have invalid types: (!tuple!, !Parameter!, !Parameter!, !tuple!, !tuple!, !tuple!, int) * (Tensor input, Tensor weight, Tensor bias, tuple of ints stride, str padding, tuple of ints dilation, int groups) didn't match because some of the arguments have invalid types: (!tuple!, !Parameter!, !Parameter!, !tuple!, !tuple!, !tuple!, int) I think that the train data has already been transformed to tensor, I don't know why it takes that as tuple?
KYMiao commented 2 years ago

I think it is because after neuralde, the output will be a tuple which contains time span