我有一个索贝尔滤波器如何在tensorflow中播放第三维?
sobel_x = tf.constant([[-1, 0, 1], [-2, 0, 2], [-1, 0, 1]], tf.float32)
我想要得到的64中深度的形状是暂时[3,3,1],但应引起[3,3,64]。
这怎么办?随着下面的行,我得到形状错误。
tf.tile(sobel_x, [1, 1, 64])
ValueError: Shape must be rank 2 but is rank 3 for 'Tile' (op: 'Tile') with input shapes: [3,3], [3].