-
Notifications
You must be signed in to change notification settings - Fork 2
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
[TOSA] Add ONNX to TOSA ArgMax conversion pass #45
base: feature/onnx_to_torch
Are you sure you want to change the base?
Conversation
ghost
commented
Jul 15, 2022
- Add support for direct ArgMax mapping from ONNX to TOSA
… into philippb.tosa_argmax
… into philippb.tosa_argmax
6397a18
to
c334758
Compare
return op.emitError( | ||
"Only floating-point datatype legalization currently supported"); | ||
} | ||
static bool isSignedInt(Type type) { |
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.
Wondering if this should be named isTosaSignedInt
- I know it is in a convert-to-tosa file, but I still had to read the contents carefully to understand it was limiting to TOSA supported types. SImilar comment for isFloat
.
Also wondering if there is any way to reuse Tosa_SignedInt
from mlir/include/mlir/Dialect/Tosa/IR/TosaTypesBase.td
directly? (I'm guessing not, but wondered if you knew for certain.)
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.
Yeah, there isn't. They turn into anonymous constraint functions in the .cpp files where they are used. That's the buf thing that my concepts proposal was to solve.
49ad859
to
f8bdb7a
Compare
59e583f
to
aac157c
Compare
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.
Could you please re-open this PR on https://github.com/xilinx/onnx-mlir and target feature/onnx-to-tosa
?