Conv2dTo3d A convolution kernel that can take a 2D tensor (values are positive integers) as input but outputs a 3D tensor. Specifically, the 2D tensor is in essence a 3D tensor, the third dimension (0/1 string) is encoded to a number.