Skip to content

Edit Clip Operator #5299

Answered by gramalingam
IzanCatalan asked this question in Q&A
Discussion options

You must be logged in to vote

(This question may be better off in the onnxruntime repo.) This feels a bit odd. It seems better to do this as a model-transformation, instead of altering the implementation of the clip operator. Eg., you can explicitly rewrite it to check if the value is outside some range and return 0, using a Where op. Alternatively, you can rewrite it into a custom op, and add a kernel for that in onnxruntime

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by justinchuby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants