fix xfe ops td alignment#679
Draft
rachgupt-amd wants to merge 7 commits into
Draft
Conversation
… types - Change OptionalAttr to DefaultValuedAttr for ceil_mode, count_include_pad (AveragePool), storage_order (MaxPool) to match ONNX defaults - Make kernel_shape required (I64ArrayAttr) in AveragePool/MaxPool - Make blocksize required (SI64Attr) in DepthToSpace/SpaceToDepth - Add missing stash_type attribute to XFEGroupNormalizationOp - Fix element type ordering to BF16-first matching ONNX convention - Remove I8/UI8 from ops where ONNX spec does not include them; keep only in MaxPool - Remove I32 from Conv/ConvTranspose bias to match ONNX - Add remapQuantTypeNchw2Nhwc for GroupNorm output and forward stash_type - Update XFEVerify.cpp and XFEShapeInference.cpp accessor patterns
…pool and GroupNorm ops - Add kernel_shape to unranked pool verifier tests (now required) - Add ceil_mode, count_include_pad to AveragePool CHECK patterns - Add ceil_mode, storage_order to MaxPool CHECK patterns - Add stash_type to GroupNormalization CHECK patterns
jorickert
reviewed
Apr 10, 2026
…ions - Fix attribute types: add default_value for ceil_mode, count_include_pad, storage_order; mark kernel_shape and blocksize as required - Add missing stash_type attribute to GroupNormalization (default 1) - Remove int8/uint8 from ops where ONNX spec excludes them (Conv, AveragePool, BatchNorm, InstanceNorm, GlobalAvgPool, GlobalMaxPool, GroupNorm); retain int8/uint8 for MaxPool per ONNX spec - Remove int32 from Conv/ConvTranspose bias type constraints - Reorder element types with bfloat16 first across all XFE ops - Fix gen_onnx_mlir.py UTF-8 encoding for Windows compatibility - Regenerate XFEOps.td from updated YAML schema
sambanerxilinxamd
approved these changes
Apr 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
allign xfe ops definition to corresponding onnx ops