Skip to content

Non-nested graph definitions? #2154

Open
@dpotop

Description

@dpotop

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions