tensorFlow Helloworld

来源:互联网 发布:超星阅读器mac下载 编辑:程序博客网 时间:2024/05/15 23:38


import tensorflow as tfmatrix1 = tf.constant([[3., 3.]])matrix2 = tf.constant([[2.], [2.]])product = tf.matmul(matrix1, matrix2)sess = tf.Session()result = sess.run(product)print (result)sess.close()


0 0
原创粉丝点击