TensorFlow 数据生成
import tensorflow as tf#表示1X2的矩阵,数值为 3,3。后面加上小数点表示小数matrix1 = tf.constant([[3., 3.]])#创建2X1的矩阵,数值为 2,2。后面加上小数点表示小数
matrix2 = tf.constant([[2.],[2.]])
#乘积,职位
product = tf.matmul(matrix1, matrix2)se
原创
2017-12-29 15:16:58 ·
152 阅读 ·
0 评论