【tensorflow】矩阵乘法&卷积核

矩阵相乘:

a = tf.matmul(x,w1)

卷积核:

kernel = np.array([0,-1,0],[-1,5,-1],[0,-1,0])
dst = cv2.filter2D(img,-1, kernel  =kernel )

猜你喜欢

转载自blog.csdn.net/zhouzongzong/article/details/94436168