Skip to content

[TOSA] Add ONNX to TOSA ArgMax conversion pass#45

Open
ghost wants to merge 14 commits into
feature/onnx_to_torchfrom
philippb.tosa_argmax
Open

[TOSA] Add ONNX to TOSA ArgMax conversion pass#45
ghost wants to merge 14 commits into
feature/onnx_to_torchfrom
philippb.tosa_argmax

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Jul 15, 2022

  • Add support for direct ArgMax mapping from ONNX to TOSA

@ghost ghost marked this pull request as ready for review July 18, 2022 07:43
@ghost ghost requested a review from ljfitz July 18, 2022 07:43
@ghost ghost force-pushed the philippb.refactor_torch_to_tosa branch 4 times, most recently from 6397a18 to c334758 Compare July 20, 2022 11:22
return op.emitError(
"Only floating-point datatype legalization currently supported");
}
static bool isSignedInt(Type type) {
Copy link
Copy Markdown
Owner

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.)

Copy link
Copy Markdown
Collaborator

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.

@ghost ghost force-pushed the philippb.refactor_torch_to_tosa branch from 49ad859 to f8bdb7a Compare July 27, 2022 14:41
@ghost ghost force-pushed the philippb.refactor_torch_to_tosa branch from 59e583f to aac157c Compare September 23, 2022 17:58
@ljfitz ljfitz changed the base branch from philippb.refactor_torch_to_tosa to ferdinand.bring_upstream_onnxtotosa October 11, 2022 16:57
@ljfitz ljfitz changed the base branch from ferdinand.bring_upstream_onnxtotosa to feature/onnx_to_torch December 9, 2022 14:36
@mgehre-amd mgehre-amd self-requested a review June 26, 2023 09:40
Copy link
Copy Markdown
Collaborator

@mgehre-amd mgehre-amd left a 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?

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.

3 participants