-
Notifications
You must be signed in to change notification settings - Fork 363
feat: Add converter files for torch::max #934
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
Conversation
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.
Thanks for the contribution. Please add a test case as well.
} | ||
uint32_t shiftDim = 1 << dim; | ||
|
||
auto TopKOperation = largest ? (nvinfer1::TopKOperation::kMAX) : (nvinfer1::TopKOperation::kMIN); |
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.
you can remove auto largest = true and change this line to auto TopKOperation = largest ? (nvinfer1::TopKOperation::kMAX)
since we are only using max always here
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.
I have removed "largest = true " and changed “ auto TopKOperation = largest ? (nvinfer1::TopKOperation::kMAX) ” to to TopKOperation = nvinfer1::TopKOperation::kMAX".
9ee9f86
to
a1880d4
Compare
Please sign your commits so that DCO passes |
a1880d4
to
62b6d05
Compare
get |
Signed-off-by: hongwei03 <[email protected]>
Signed-off-by: hongwei03 <[email protected]>
Signed-off-by: hongwei03 <[email protected]>
81db792
to
0b5673b
Compare
Signed-off-by: hongwei03 <[email protected]>
We still need a test case for this operator to merge |
Description
This PR is new feature,that add support for torch::max operator, the mainly implemented by using the topk of tensorrt.
Type of change
Checklist: