microsoft/onnxscript

Constant-Folding Registry

Open

#2.507 geöffnet am 22. Aug. 2025

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (117 Forks)auto 404
category: questioncontribution welcomegood first issuemodule: optimizer

Repository-Metriken

Stars
 (445 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Authoring custom constant-folding for operators via the register method in onnxscript.optimizer._constant_folding feels quite convenient (see #2506 for example) - are there any plans to properly expose this to the user to make constant folding customizable? I mean, it is already possible to simply from onnxscript.optimizer._constant_folding import register, but this is importing from a protected memeber (at least the linter complains), so I guess it is not meant to be used this way, at least for now?

Contributor Guide