np.random.rand/newaxis/tf.multiply与tf.matmul的区别/tf.reduce_sum()函数和tf.reduce_mean()函数np.random.rand(d0,d1,d2……dn)newaxistf.multiply与tf.matmul的区别tf.reduce_sum()函数和tf.reduce_mean()函数Reference
np.random.rand()newaxistf.multiply与tf.matmul的区别tf.multiply()两个矩阵中对应元素各自相乘tf.matmul()将矩阵a乘以矩阵b,生成a * bimport tensorflow as tf#两个矩阵的对应元素各自相乘!!x=tf.constant([[1.0,2.0,3.0],[1.0,2.0,3.0],[1.0,2.0,3.0]])y=tf.constant([[0,0,1.0],[0,0,1.0],[0,0,1.0]