You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Relax] Add FDataDependent operator attribute for LegalizeOps (#18664)
## Why
The LegalizeOps transform was using string matching to detect
data-dependent operators by checking if "dynamic" appears in the
operator name. This approach is fragile and doesn't scale well as new
data-dependent operators are added.
## How
- Add FDataDependent operator attribute to properly mark data-dependent
operators
- Set FDataDependent=true for relax.dynamic_strided_slice operator
- Update LegalizeOps transform to check the FDataDependent attribute
instead of string matching
0 commit comments