Skip to content

Conversation

@mgehre-amd
Copy link
Collaborator

DO NOT merge, just to look at our diff

@mgehre-amd mgehre-amd changed the title Feature/onnx_to_tosa feature/onnx-to-tosa Jun 26, 2023
jorickert and others added 29 commits July 2, 2025 16:24
…odel has missing output types.

Signed-off-by: Rickert, Jonas <[email protected]>
Signed-off-by: Rickert, Jonas <[email protected]>
…composition

Revert "chore: temporarily disable combine parallel conv recomposition."
…se_fixes

Use none instead of nullptr for bias and make sure the insertion point is after all weights
…ith_dq

Chaitany.handling convtranspose with dq
…ith_dq

Fixing the Quant and Dequant node output shapes
…le uses. This is fine as it is the last required operation in the Layer/RMSNorm and its recomposition pattern. The optional bias gets added in a separate pattern

Signed-off-by: Rickert, Jonas <[email protected]>
Recompose a Layer/RMSNorm even if the scale multiplication has multiple uses.
This is done by catching exceptions during shape inference (as they happen for example if the model
 uses custom ops) and by falling back to an onnx-mlir based type mapping for some kinds of invalid
 models.

Pass ImportOptions by const reference instead of value to avoid unnecessay copying.

Signed-off-by: Rickert, Jonas <[email protected]>
…ypes

Make parsing of models more robust if useOnnxModelTypes is enabled.
Fix problem of return type conversion that only works on some compilers/systems
jorickert and others added 30 commits October 31, 2025 17:16
Handle default attributes in decomposition
…ention_ops

Add support for RotaryEmbedding and Attention ONNX ops
ONNXConstantOp: Allow extra attributes (parser/printer)
…pying the element type not only for the first result
Always try to take the element type from custom ops from the model, instead of guessing
Allow the import of not-builtin domains and add support for AMD Quarks BFPQuantizeDequantizeOp
According to the onnx documentation, the default domain is "ai.onnx", but in practice it seems like the empty-string domain is used by default.
Add a canonicalization function to handle them in the same way.

Signed-off-by: Rickert, Jonas <[email protected]>
Handle aliasing of "" domain and "ai.onnx" domain.
Add BF16 support to AMDQuarkBFPQuantizeDequantizeOp
Add ResultNames attribute to imported ops
added slice decomposition, default off
…near-fix

[AIESW-17979] ONNXToTOSA reject DequantizeLinear on dynamic input
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.