Skip to content

add reduce_all, reduce_any op#16320

Merged
phlrain merged 7 commits intoPaddlePaddle:developfrom
zhoukunsheng:all_any
Apr 11, 2019
Merged

add reduce_all, reduce_any op#16320
phlrain merged 7 commits intoPaddlePaddle:developfrom
zhoukunsheng:all_any

Conversation

@zhoukunsheng
Copy link
Contributor

resolve #16314

add reduce_all, reduce_any op
Copy link
Contributor

@XiaoguangHu01 XiaoguangHu01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. paddle/fluid/operators/reduce_ops/reduce_all_any_op.h
    建议分成2个文件,reduce_all_op.h和reduce_any_op.h,文件名更容易理解
  2. 请添加单元测试
  3. 文档请 @shanyi15 审核

@shanyi15
Copy link
Collaborator

please preview first, thanks! refer to here

split reduce_all_any_op.h into two files
add unit test for reduce_all, reduce_any
@zhoukunsheng
Copy link
Contributor Author

  • paddle/fluid/operators/reduce_ops/reduce_all_any_op.h
    建议分成2个文件,reduce_all_op.h和reduce_any_op.h,文件名更容易理解
  • 请添加单元测试
  • 文档请 @shanyi15 审核

谢谢,已经做了相应修改。

@zhoukunsheng
Copy link
Contributor Author

image
image

seems preview doc is really necessary :)

@shanyi15
Copy link
Collaborator

image
image

@zhoukunsheng
Copy link
Contributor Author

@shanyi15 reduce_all 计算的是tensor 中coefficient 的逻辑与,reduce_any 计算的是tensor 中coefficient的逻辑或。这两个op 的注释与其他reduce 操作的注释保持一致,请参考reduce_max。

@shanyi15
Copy link
Collaborator

@shanyi15 reduce_all 计算的是tensor 中coefficient 的逻辑与,reduce_any 计算的是tensor 中coefficient的逻辑或。这两个op 的注释与其他reduce 操作的注释保持一致,请参考reduce_max。

明白了,看与或非的英文那儿能否写rst语法,xxx 这样,比较醒目

@zhoukunsheng
Copy link
Contributor Author

👌

@zhoukunsheng
Copy link
Contributor Author

image
image

Copy link
Collaborator

@shanyi15 shanyi15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG comments

@phlrain phlrain merged commit afe0d64 into PaddlePaddle:develop Apr 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Operator] add reduce_all, reduce_any op

4 participants