-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Attribute Name and Type Mapping System (#1117)
### Ticket fixes: #1116 ### What's changed This PR introduces a new attribute mapping system that provides a clean way to handle attribute name remapping and type conversion when lowering from Forge-FE to MLIR. Key Changes: - Added new AttributeMapper class that manages attribute name mappings and type conversions - Updated MLIRGenerator to use AttributeMapper for attribute handling - Added default mappings for operations like repeat_interleave The new system allows: - Remapping attribute names (e.g., "kernel_size" -> "kernel_shape") - Specifying target types for MLIR conversion (e.g., int -> uint32_t) - Easy addition of new operation mappings - Better separation of concerns between mapping and conversion Example default mappings include: - repeat_interleave: "repeats" as uint32
- Loading branch information
1 parent
057277d
commit eac7778
Showing
1 changed file
with
92 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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