Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add cumprod op #35185

Merged
merged 28 commits into from
Sep 10, 2021
Merged

add cumprod op #35185

merged 28 commits into from
Sep 10, 2021

Conversation

liyagit21
Copy link
Contributor

@liyagit21 liyagit21 commented Aug 26, 2021

PR types

Others

PR changes

OPs

Describe

add cumprod op
中文文档PR链接:PaddlePaddle/docs#3865
截屏2021-09-09 下午4 04 35
截屏2021-09-10 下午7 08 12
截屏2021-09-10 下午7 08 21

@CLAassistant
Copy link

CLAassistant commented Aug 26, 2021

CLA assistant check
All committers have signed the CLA.

@paddle-bot-old
Copy link

paddle-bot-old bot commented Aug 26, 2021

✅ This PR's description meets the template requirements!
Please wait for other CI results.

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

paddle/fluid/operators/cumprod_op.cc Outdated Show resolved Hide resolved
paddle/fluid/operators/cumprod_op.cc Show resolved Hide resolved
paddle/fluid/operators/cumprod_op.cu Outdated Show resolved Hide resolved
paddle/fluid/operators/cumprod_op.cu Show resolved Hide resolved
paddle/fluid/operators/cumprod_op.cu Outdated Show resolved Hide resolved
python/paddle/fluid/tests/unittests/test_cumprod_op.py Outdated Show resolved Hide resolved
python/paddle/fluid/tests/unittests/test_cumprod_op.py Outdated Show resolved Hide resolved
python/paddle/tensor/math.py Outdated Show resolved Hide resolved
python/paddle/tensor/math.py Outdated Show resolved Hide resolved
python/paddle/tensor/math.py Outdated Show resolved Hide resolved
@liyagit21 liyagit21 changed the title Cumprod add cumprod op Sep 6, 2021
paddle/fluid/operators/cumprod_op.cc Outdated Show resolved Hide resolved
paddle/fluid/operators/cumprod_op.cc Outdated Show resolved Hide resolved
python/paddle/fluid/tests/unittests/test_cumprod_op.py Outdated Show resolved Hide resolved
['X'],
'Out',
user_defined_grads=[self.grad_x],
user_defined_grad_outputs=[self.grad_out])
Copy link
Collaborator

Choose a reason for hiding this comment

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

I prefer to using user_defined_grads and user_defined_grad_outputs only in complex cases.

python/paddle/fluid/tests/unittests/test_cumprod_op.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@sneaxiy sneaxiy left a comment

Choose a reason for hiding this comment

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

LGTM for codes. But not quite sure on the UT timeout settings. Please have a look @XieYunshen .

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.

LG API

Copy link
Contributor

@XieYunshen XieYunshen left a comment

Choose a reason for hiding this comment

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

LGTM for set_tests_properties(test_cumprod_op PROPERTIES TIMEOUT 120)

Copy link
Contributor

@TCChenlong TCChenlong left a comment

Choose a reason for hiding this comment

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

LGTM
TODO:fix api docs

Copy link
Contributor

@Superjomn Superjomn left a comment

Choose a reason for hiding this comment

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

LGTM

文档请继续修改

@sneaxiy sneaxiy merged commit 4e509f4 into PaddlePaddle:develop Sep 10, 2021
@liyagit21 liyagit21 deleted the cumprod branch September 10, 2021 07:46
AnnaTrainingG pushed a commit to AnnaTrainingG/Paddle that referenced this pull request Sep 29, 2021
* add test_cumprod_op

* Revert "add test_cumprod_op"

This reverts commit c96cf6d.

* recommit

* add error message

* test input(x) initialize

* test use cpu

* update test code

* add test type

* add test case

* solve ci problem

* add complex case test

* add complex case test

* fix review problem

* fix conflict

* fix some docs

* change test case

* change test case

* fix review problems again

* fix docs

* fix inclusivescan bug
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.

8 participants