-
Notifications
You must be signed in to change notification settings - Fork 64
Non-nested graph definitions? #2154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@dpotop would you like to propose an example usage show show what you have in mind? |
Definitely! I will use the simplest example I can find in the distribution. Its original form is:
Ideally, I'd like to allow something like:
Notice the If this is too difficult (because
In this second case, the difficulty is that the |
Hello,
ONNX and onnxscript already allow the definition of hierarchical graphs, for operators such as Scan. However, as far as I understand, the nested graphs must have a nested definition, local to the operator using the Scan. This precludes any form of parametric graph definition, which could come handy, for instance, in the definition of a general RNN operator (that takes a Cell graph as argument).
I'd like to know if such a parametric graph definition style is compatible with onnxscript principles (nothing seems to prohibit it in ONNX, but I may be missing something). If it's compatible, I'd like to help adding it to the formalism (but some hints on how to do it would help).
Regards,
Dumitru
The text was updated successfully, but these errors were encountered: