I would like to extend torch._C._functions.ConvNd. Can someone tell me where (which files) to get started? Appreciate any help!
Basically, I would like to fix two things:
(1) Allow kernel size > input size
(2) Convolute over individual channels separately, instead of summing up the convolution results of all channels as it is now.
Traceback (most recent call last):
File "<pyshell#47>", line 1, in <module>
o = x(img);
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/torch/nn/modules/module.py", line 206, in __call__
result = self.forward(*input, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/torch/nn/modules/conv.py", line 237, in forward
self.padding, self.dilation, self.groups)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/torch/nn/functional.py", line 39, in conv2d
return f(input, weight, bias)
RuntimeError: expected 3D tensor