Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from __future__ import print_function
- import tensorflow as tf
- # Create a Constant op that produces a 1x2 matrix. The op is
- # added as a node to the default graph.
- matrix1 = tf.constant([[3., 3.]])
- # Create another Constant that produces a 2x1 matrix.
- matrix2 = tf.constant([[2.],[2.]])
- product = tf.matmul(matrix1, matrix2)
- with tf.Session() as sess:
- result = sess.run(product)
- print(result)
Add Comment
Please, Sign In to add comment