def _EvaluateConvKernel(self, theta, inputs):
    'Apply convolution to inputs.'
    p = self.params
    filter_w = self._GetWeight(theta)
    return tf.nn.depthwise_conv2d(inputs, filter_w, strides=[1, p.filter_stride[0], p.filter_stride[1], 1], rate=p.dilation_rate, data_format='NHWC', padding='SAME')
Apply convolution to inputs.
def _EvaluateConvKernel(self, theta, inputs):
    
    p = self.params
    filter_w = self._GetWeight(theta)
    return tf.nn.depthwise_conv2d(inputs, filter_w, strides=[1, p.filter_stride[0], p.filter_stride[1], 1], rate=p.dilation_rate, data_format='NHWC', padding='SAME')