tensorflow API:tf.reduce_sum
来源:互联网 发布:汉仪南宫体简下载 mac 编辑:程序博客网 时间:2024/06/05 14:46
tf.reduce_sum
reduce_sum(
input_tensor,
axis=None,
keep_dims=False,
name=None,
reduction_indices=None
)
Computes the sum of elements across dimensions of a tensor.
计算tensor在各维度上的元素总和
Reduces input_tensor along the dimensions given in axis. Unless keep_dims is true, the rank of the tensor is reduced by 1 for each entry in axis. If keep_dims is true, the reduced dimensions are retained with length 1.
给出axis,然后在该轴上降维,除非keep_dims为true,则维度保持不变。
If axis has no entries, all dimensions are reduced, and a tensor with a single element is returned.
不给axis值,则所有维度进行降维,返回一个标量值
For example:
x = tf.constant([[1, 1, 1], [1, 1, 1]])tf.reduce_sum(x) # 6tf.reduce_sum(x, 0) # [2, 2, 2]tf.reduce_sum(x, 1) # [3, 3]tf.reduce_sum(x, 1, keep_dims=True) # [[3], [3]]tf.reduce_sum(x, [0, 1]) # 6
阅读全文
0 0
- tensorflow API:tf.reduce_sum
- tensorflow:tf.reduce_mean()和tf.reduce_sum()
- tf.reduce_sum (API r1.3)
- tf.reduce_sum tensorflow维度上的操作
- [tensorflow] which dimension to reduce in tf.reduce_sum()
- TensorFlow reduce_sum
- tf.sign和tf.reduce_sum
- tf.sign和tf.reduce_sum
- tensorflow API:tf.truncated_normal
- tensorflow API:tf.set_random_seed
- tensorflow API:tf.split
- tensorflow API:tf.tile
- tensorflow API:tf.slice
- tensorflow API: tf.unsorted_segment_sum
- tensorflow API:tf.control_dependencies
- tensorflow API:tf.not_equal
- tensorflow API:tf.argmin
- tensorflow API: tf.unsorted_segment_sum
- 入职第一天搭建环境 傻瓜文档
- 2017第四届国际现代经济技术与管理大会(ICMETM 2017)
- 谷歌VR展示360度全景图
- nodeJs-path模块
- before、after、prepend、append四个的区别
- tensorflow API:tf.reduce_sum
- iOS在同一个Https目录下放不同ID的包导致的下载问题
- Angularjs实现分页和分页算法
- Java虚拟机专题之内存分配(读书笔记)
- Unity 特效drawcall优化
- Linux下OpenSSL 安装图文详解
- eclipse导入MyEclipse项目之后运行不起来没有Run On Server
- Gobblin CLI
- 各种问题答案