当前位置:网站首页>Tensorflow and deep learning day 3

Tensorflow and deep learning day 3

2022-06-26 05:03:00 Rain and dew touch the real king

Data Container

list

np.array

tf.Tensor

 scalar: 1.1

vector: [1.1],[1.1, 2.2, … ]

matrix: [[1.1, 2.2],[3.3, 4.4],[5.5, 6.6]]

tensor: 𝑟𝑎𝑛𝑘 > 2:int float string double bool

b.name It is a problem left over from the version , No need to pay attention

is-tensor

isinstance (a,tf.Tensor) Judge whether it is tensor

tf.zeros(【】) by shape

原网站

版权声明
本文为[Rain and dew touch the real king]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202180508319436.html