Convolution, Cnn, Machinelearningalgorithms, Deep Learning, Relu.
it with the convolution. The kernel in this case is an “edge detection” kernel. You can define it with tf.constant just like you'd define an array in Numpy with np.array. This creates a tensor of the sort TensorFlow uses. import tensorflow as tf kernel = tf.constant([ [-1, -1, -1], [-1, 8, -1],