tensorflow 基础(一)-----张量tensor
实数:1
一维张量(列表):[1,2,3]
二维张量(矩阵):[[1,2], [3, 4]]
三维张量:[[[1,2], [3,4], [5, 6]]]
进行张量运算时,需要注意tensor的形状
通过会话session()计算节点的值
import tensorflow as tf
# 定义a,b为常数
a = tf.constant(1)
b = tf.constant(2...
原创
2019-05-09 16:13:07 ·
558 阅读 ·
0 评论