-
Notifications
You must be signed in to change notification settings - Fork 83
Description
If I understand correctly it is currently not possible to match a pattern with a variadic list of output tensors, such as Split, and similarly matching variadic inputs, such as Concat, seems only possible via some workarounds (e.g., #2373)? Currently it seems possible to match a Split only if you know the number of outputs in advance and it is not possible to match against the _outputs parameter itself. This would actually allow for some workaround instantiating a set of rules sweeping the _outputs argument with some loop, i.e., explicitly instantiating every variadic version of the operator, but this does not seem sustainable as the ONNX spec allows for up to 2147483647 such inputs or outputs blowing up the number of rewrite rules quite a lot...
So, is there any plan to add proper support for variadic inputs/outputs to the rewriter/pattern matcher in the near future or any pointers on how I could approach implementing this?