-
Notifications
You must be signed in to change notification settings - Fork 762
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
[CUDA][ADD] add logsoftmax operator & unittest #1728
Merged
Merged
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
Signed-off-by: sjfeng1999 <j514681085@icloud.com>
Signed-off-by: sjfeng1999 <j514681085@icloud.com>
Maosquerade
reviewed
Jul 19, 2022
Signed-off-by: sjfeng1999 <j514681085@icloud.com>
@Maosquerade 把logsoftmax拆分成了softmax layer和unarg layer |
Maosquerade
approved these changes
Jul 19, 2022
darrenyao87
added a commit
that referenced
this pull request
Jul 19, 2022
* master: (59 commits) [CUDA][ADD] add logsoftmax operator & unittest (#1728) return error when mat.data_ == nullptr (#1733) [METAL] fix metal binary op (#1729) [BUG]fix reduce op convert with wrong axes (#1724) Hotfix m1 build (#1715) [DRQ][BUG]1. fix bug for max_values; (#1716) [UPD]update merge logic for swish groupnorm deconv (#1708) [BUG]fix coreml error of slicev2、padv2 and matmul; (#1703) [iOS][UPD]1. add missing file for xcode project; (#1705) [mac] 1. FIX X86 and ARM conflict; 2. ADD ARM arch on intel cpu (You can use ARM if rosetta-X86 crash). 3. Use ios project build/profile M1-Mac. (#1700) [METAL] fix stride slice crach when dims is 2 (#1701) Fix windows x86 build (#1697) Optimize dynamic range quantize (#1699) [FIX] fix compile macos framework (#1687) [UPD][DRQ] support quantizing matmul's const weight (#1698) Dev metal ngray (#1693) [UPD][TOOLS] 1.increase subs_length 2.align model support bool and int32 input 3. fix gather and onehot convert 4. gather_nd support indices_shape[-1] < r (#1686) avoid nullptr in IsSupport (#1685) [ARM] fix arm cross compile error caused by float-abi (#1678) Dev x86 layer adapter (#1683) ... # Conflicts: # platforms/ios/tnn.xcodeproj/project.pbxproj # source/tnn/device/x86/CMakeLists.txt
ZaoZhe6666
pushed a commit
to ZaoZhe6666/TNN
that referenced
this pull request
Aug 2, 2022
* add logsoftmax kernel and trt layer builder Signed-off-by: sjfeng1999 <j514681085@icloud.com> * add logsoftmax unittest Signed-off-by: sjfeng1999 <j514681085@icloud.com> * [CUDA][TRT] unpack logsoftmaxPlugin to SoftmaxLayer and UnargLayer Signed-off-by: sjfeng1999 <j514681085@icloud.com>
ZaoZhe6666
pushed a commit
to ZaoZhe6666/TNN
that referenced
this pull request
Aug 2, 2022
* add logsoftmax kernel and trt layer builder Signed-off-by: sjfeng1999 <j514681085@icloud.com> * add logsoftmax unittest Signed-off-by: sjfeng1999 <j514681085@icloud.com> * [CUDA][TRT] unpack logsoftmaxPlugin to SoftmaxLayer and UnargLayer Signed-off-by: sjfeng1999 <j514681085@icloud.com>
ZaoZhe6666
pushed a commit
to ZaoZhe6666/TNN
that referenced
this pull request
Aug 3, 2022
* add logsoftmax kernel and trt layer builder Signed-off-by: sjfeng1999 <j514681085@icloud.com> * add logsoftmax unittest Signed-off-by: sjfeng1999 <j514681085@icloud.com> * [CUDA][TRT] unpack logsoftmaxPlugin to SoftmaxLayer and UnargLayer Signed-off-by: sjfeng1999 <j514681085@icloud.com>
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.
1.实现logsoftmax的cuda kernel和添加对应的trt plugin layer
2.添加logsoftmax算子在DEVICE_CUDA的单测