美文网首页我爱编程
TensorFlow学习笔记1.7:tf.zeros()

TensorFlow学习笔记1.7:tf.zeros()

作者: HBU_DAVID | 来源:发表于2018-04-14 01:25 被阅读84次

Creates a tensor with all elements set to zero.
创建一个张量,所有元素都设为零。
This operation returns a tensor of type dtype with shape shape and all elements set to zero.
这个操作返回一个具有shape形状的dtype类型的张量,所有元素都设置为零。
For example:

tf.zeros([3, 4], tf.int32)  # [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]
TIM截图20180414012637.jpg

相关文章

网友评论

    本文标题:TensorFlow学习笔记1.7:tf.zeros()

    本文链接:https://www.haomeiwen.com/subject/lsjkkftx.html