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

【PaddlePaddle Hackathon 2】18、为 Paddle 新增 paddle.heaviside 和 paddle.Tensor.heaviside API #40827

Closed

Conversation

BrilliantYuKaimin
Copy link
Contributor

PR types

New features

PR changes

OPs

Describe

解决了issue:#40315
实现了paddle.heaviside。paddle.heaviside(x, y)在x>0时返回1,在x=0时返回y,在x<0时返回0。

BrilliantYuKaimin and others added 30 commits March 22, 2022 18:35
* move mutable_data to context alloc

* move mutable_data to context alloc

* remvoe duplicate code
* async prepare deps

* fix bug that std::future is not set

* add ut

* refine code

* fix standalone ut

* disable prof
* Fix test case timeout

* test=document_fix

* test=document_fix
* Removed redundant use of declarations.h

* Fixed minor bug
* add kernel profiler

* add gpu timer tool

* remove warmup

* fix rocm complilation error
* [KP] fix compilation bug in phi

* delete the comment

* delete useless comment
…ddle#40784)

* add full_batch_size_like phi kernel

* remove fill constant bs like

* update year
* transfer unsqueeze to phi

* fix conflict

* add squeeze

* add infershape

* fix xpu and npu error
…ddlePaddle#40207)

* [Auto Parallel] Add distributed mul for the old version
* add event record for model profiling

* fix format

* fix format

* fix code example bug

* no

* add profiler statistic

* add profiler feature

* fix bug

* fix bug

* fix bug

* fix bug

* required: gpu

* required: gpu

* fix bug

* required: gpu

* fix ci bug

* fix ci error

* fix ci error

* upgrade document

* fix doc

* fix ci bug

* add doc and fix bug

* nothing

* fix bug

* fix format bug

* modify format

* add deprecated description for old profiler

* fix bug

* fix bug

* fix

* add load_profiler_reuslt doc

* add load_profiler_reuslt doc

* add load_profiler_reuslt doc

* help fix old profiler sample code

* add api doc

* fix format

* fix api doc

* fix api doc format

* fix api doc format

* fix api doc c format

* fix api doc format
)

* Performance optimize

* Optimize GetAllocator, RWLock and ProcessUnfreedAllocation

* Remove test file

* Fix CI error

* Fix CI errors

* Fix CI errors
…e#40113)

* Add stft_op.

* Add stft_grad_op.

* Add stft_op unittest.

* [DLTP-45176] Add complex compatibility in static mode for stft api.

* [DLTP-45176] Add complex compatibility in static mode for stft api.

* Add doc.

* Update unitests of stft op.

* Update spectral helper.

* fix coding style.
zyfncg and others added 29 commits March 24, 2022 19:56
* support intermediate for saprse api

* close intermediate in yaml

* fix dygraph_api dep for eager
…ddle#40812)

* fix build_cinn_pass internal var may be control var problem

* add annotation and vlog by review advice
* move batch size like infershape

* revert other op change

* call infermeta in infershape

* adjust batchsize like pos
* add mean phi kernel

* remove original mean kernel

* add alias name
…e#40829)

* support get_item where the index is a bool scalar tensor

* add unittests for supporting get_item where the index is a bool scalar tensor
* Scalar support marking data_type in yaml

* fix code-gene bug
* [NPU] add merged_momentum

* fix

* fix device
* Fix loop index for FillZeroForEmptyGradInputs

* Call fill zero in run_program_grad
* 1. add the python api grad 2. add final and intermediate state vlog 3. change the python_api error logic

* add python api or close the check_eager=True

* fix the compatibility

* matmul

* disable unittests: test_elementwise_add_op test_scatter_nd_op test_gather_nd_op test_scatter_op test_index_sample_op test_elementwise_add_mkldnn_op

* refine the logic of prepara_parameter logic

* fix Tensor(gpu) 2 Scalar segment fault.

* add multi-attribute. (test_unsqueeze_op); add python_sig_out for customizing op sig out

* fix some bugs, support python_out_sig
* refactor eager flags

* fix flags error when we switch from eager to dygraph

* fix ci problem

* fix ci

* fix ci

* merge develop and fix code style

* merge develop and fix code style

* fix op test error

* fix op test error

* fix op test error

* fix op test error

* fix op test error

* merge develop
* Update transforms.py

* Update transforms.py

* Update transforms.py

* Update functional.py
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.