Fix Slice and Split derive_properties for dynamic axes#244
Conversation
When data_shape contains symbolic dimension names (e.g. "time"), Slice's derive_properties crashed with ValueError trying to cast the string to int64. Filter to fixed-shape axes only when computing starts_equal_shape and slice_all properties. Also fix Split derive_properties to use n_outputs from caller when split_value and attr_num_outputs are both absent.
Code reviewFound 1 issue:
The node path correctly uses The node path (used in 🤖 Generated with Claude Code - If this code review was useful, please react with 👍. Otherwise, react with 👎. |
Matching subgraph patterns with variadic outputs is out of scope of pattern matcher, as it complicates things tremendously and has no practical use cases for now. The current |
Summary
Slicederive_propertiescrash whendata_shapecontains symbolic dimension names (e.g."time"from dynamic axes). Filters to fixed-shape axes only when computingstarts_equal_shapeandslice_all.Splitderive_propertiesto usen_outputsfrom caller whensplit_valueandattr_num_outputsare both absent.