I have been using the introductory example of matrix multiplication in TensorFlow.
matrix1 = tf.constant([[3., 3.]]) matrix2 = tf.constant([[2.],[2.]]) produ
import tensorflow as tf sess = tf.InteractiveSession() x = [[1.,2.,1.],[1.,1.,1.]] y = tf.nn.softmax(x) matrix1 = tf.constant([[3., 3.]]) matrix2 = tf.constant([[2.],[2.]]) product = tf.matmul(matrix1, matrix2) print(product.eval()) tf.reset_default_graph() sess.close()