microsoft/onnxscript

Constant-Folding Registry

Open

#2,507 创建于 2025年8月22日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)Python (117 fork)auto 404
category: questioncontribution welcomegood first issuemodule: optimizer

仓库指标

Star
 (445 star)
PR 合并指标
 (PR 指标待抓取)

描述

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?

贡献者指南