Closed RoronoaZoro1665 closed 4 years ago
filter_x = tf.expand_dims(tf.stack([neg, pos]), 0) # [-1, 1] filter_y = tf.stack([tf.expand_dims(pos, 0), tf.expand_dims(neg, 0)]) # [[1],[-1]] filter_x like follow [[[[-1. -0. -0.] [-0. -1. -0.] [-0. -0. -1.]] [[ 1. 0. 0.] [ 0. 1. 0.] [ 0. 0. 1.]]]]
and how to get Operator [-1, 1] from 4-D filter_x ?
filter_x = tf.expand_dims(tf.stack([neg, pos]), 0) # [-1, 1] filter_y = tf.stack([tf.expand_dims(pos, 0), tf.expand_dims(neg, 0)]) # [[1],[-1]] filter_x like follow [[[[-1. -0. -0.] [-0. -1. -0.] [-0. -0. -1.]] [[ 1. 0. 0.] [ 0. 1. 0.] [ 0. 0. 1.]]]]
and how to get Operator [-1, 1] from 4-D filter_x ?