tf.contrib.layers.convolution2d_in_plane(*args, **kwargs)
Performs the same in-plane convolution to each channel independently.
This is useful for performing various simple channel-independent convolution operations such as image gradients:
image = tf.constant(..., shape=(16, 240, 320, 3)) vert_gradients = layers.conv2d_in_plane(image, kernel=[1, -1], kernel_size=[2, 1]) horz_gradients = layers.conv2d_in_plane(image, kernel=[1, -1], kernel_size=[1, 2])
Args:
inputs: a 4-D tensor with dimensio