issue/843: 增加QY和NVIDIA上per_channel_quant_int8算子#855
Open
xgqdut2016 wants to merge 3 commits intomainfrom
Open
Conversation
73968c3 to
4543fa1
Compare
pengcheng888
reviewed
Jan 4, 2026
src/infiniop/ops/quant/per_channel_quant_int8/per_channel_quant_int8.h
Outdated
Show resolved
Hide resolved
whjthu
requested changes
Jan 28, 2026
| @@ -0,0 +1,40 @@ | |||
| #ifndef __QUANT_H__ | |||
| x_zero_desc, \ | ||
| x_desc); | ||
| switch (handle->device) { | ||
| #ifdef ENABLE_NVIDIA_API |
Contributor
There was a problem hiding this comment.
这个写法有些奇怪,为什么已经 switch 了,还要再 ifdef
| blockPerChannelQuantI8<Tdata, BLOCK_SIZE> | ||
| <<<M, BLOCK_SIZE, 0, stream>>>(x_packed, x_scale, x_zero, x, M, K); | ||
| } | ||
|
|
This file contains hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.