-
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
【Hackathon 5th No.20】为 Paddle 新增 Exponential 和 Gamma API -part #57899
Merged
Merged
Changes from all commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
b91f93c
add exponential
MayYouBeProsperous 32c4130
add gamma distribution
MayYouBeProsperous e813442
refine docs
MayYouBeProsperous 98f2468
add kl_divergence and test
MayYouBeProsperous 143609e
resolve conflicts
MayYouBeProsperous f66bd5b
resolve conflicts
MayYouBeProsperous c4648c1
fix bug
MayYouBeProsperous 319a4fa
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
MayYouBeProsperous 5dfc996
refine test
MayYouBeProsperous d815a11
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
MayYouBeProsperous 2f4cb60
fix test timeout
MayYouBeProsperous aaac78d
refine code
MayYouBeProsperous e5629e9
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
MayYouBeProsperous 9f2504b
add standard_gamma kernel
MayYouBeProsperous 86d9e50
fix comments
MayYouBeProsperous 82f22e1
fix tests
MayYouBeProsperous c983d80
fix tests
MayYouBeProsperous 6b7762f
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
MayYouBeProsperous 56f8e6f
fix comments
MayYouBeProsperous 7efcb44
fix tests
MayYouBeProsperous 79b1b44
fix gamma grad
MayYouBeProsperous 7d37b9f
fix yaml
MayYouBeProsperous 5f5c6b3
fix bugs
MayYouBeProsperous 9ce0d26
fix tests
MayYouBeProsperous 159db50
fix standard_gamma_grad
MayYouBeProsperous 3ded65e
fix test
MayYouBeProsperous 0cc68a4
fix test
MayYouBeProsperous 26a6398
add cdf & icdf
MayYouBeProsperous 7bb01c1
add cdf & icdf
MayYouBeProsperous 15b0898
refine comments
MayYouBeProsperous a8c6a5c
fix
MayYouBeProsperous 196067d
Merge branch 'develop' into dis
MayYouBeProsperous 62680b8
fix
MayYouBeProsperous c42931f
fix head file
MayYouBeProsperous 72266f9
fix
MayYouBeProsperous 27f45ea
fix cuda op
MayYouBeProsperous c4cf2f9
fix
MayYouBeProsperous 42198d7
fix
MayYouBeProsperous 0f0e613
refine test
MayYouBeProsperous a5f6e37
fix test
MayYouBeProsperous 4703cb4
refine comments
MayYouBeProsperous 30c3fa2
fix comments
MayYouBeProsperous df74f48
fix
MayYouBeProsperous 59d4968
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
MayYouBeProsperous 7ac279d
fix
MayYouBeProsperous 6c687c1
fix type check
MayYouBeProsperous e8c7dae
fix docs
MayYouBeProsperous a018a66
delete useless comments
MayYouBeProsperous 075ef78
resolve conflict
MayYouBeProsperous File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
#include "paddle/phi/backends/cpu/cpu_context.h" | ||
#include "paddle/phi/core/kernel_registry.h" | ||
#include "paddle/phi/kernels/impl/standard_gamma_kernel_impl.h" | ||
|
||
PD_REGISTER_KERNEL( | ||
standard_gamma, CPU, ALL_LAYOUT, phi::StandardGammaKernel, float, double) {} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. */ | ||
|
||
#include "paddle/phi/backends/gpu/gpu_context.h" | ||
#include "paddle/phi/backends/gpu/gpu_launch_config.h" | ||
#include "paddle/phi/core/kernel_registry.h" | ||
#include "paddle/phi/kernels/impl/standard_gamma_kernel_impl.h" | ||
|
||
PD_REGISTER_KERNEL(standard_gamma, | ||
GPU, | ||
ALL_LAYOUT, | ||
phi::StandardGammaKernel, | ||
float, | ||
double, | ||
phi::dtype::float16, | ||
phi::dtype::bfloat16) {} |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
反向为什么又去掉了,按照这个实现方式,这个传入的tensor x 应该会有反向吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
暂不实现反向算子