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

[CUDA][ADD] add logsoftmax operator & unittest #1728

Merged
merged 5 commits into from
Jul 19, 2022
Merged

[CUDA][ADD] add logsoftmax operator & unittest #1728

merged 5 commits into from
Jul 19, 2022

Conversation

sjfeng1999
Copy link
Contributor

1.实现logsoftmax的cuda kernel和添加对应的trt plugin layer
2.添加logsoftmax算子在DEVICE_CUDA的单测

Signed-off-by: sjfeng1999 <j514681085@icloud.com>
Signed-off-by: sjfeng1999 <j514681085@icloud.com>
@sjfeng1999
Copy link
Contributor Author

@Maosquerade 把logsoftmax拆分成了softmax layer和unarg layer

@Maosquerade Maosquerade merged commit 6253ce4 into Tencent:master 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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants