import torch

kernel2 = 2*torch.ones((3,3), dtype=torch.int8)
kernel2 = kernel2[None, None, ...]

X = torch.zeros((1,3,3), dtype=torch.int8); X[:,1,1] = 1;
X = X[:,None,:,:]

F.conv2d(X, kernel2, padding=1)

RuntimeError: _thnn_conv2d_forward is not implemented for type torch.CharTensor
I am guessing conv2d can’t handle dtype=int8. Anyone know workaround and why wouldn’t this be implemented?