# 导入模块tensorflow
import tensorflow as tf
# 定义一个变量 形状为1行2列
m1 = tf.constant([[3, 3]])
# 定义一个变量 形状为2行1列
m2 = tf.constant([[2], [3]])
# 矩阵相乘
product = tf.matmul(m1, m2)
# 定义一个会话
with tf.Session() as sess:
result = sess.run(product)
print(result)