-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
BrilliantYuKaimin
wants to merge
109
commits into
PaddlePaddle:develop
from
BrilliantYuKaimin:heaviside
Closed
【PaddlePaddle Hackathon 2】18、为 Paddle 新增 paddle.heaviside 和 paddle.Tensor.heaviside API #40827
BrilliantYuKaimin
wants to merge
109
commits into
PaddlePaddle:develop
from
BrilliantYuKaimin:heaviside
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* 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
* move activation * fix bugs when run ce
* 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
…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.
* 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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。