Skip to content

Conversation

OYCN
Copy link

@OYCN OYCN commented Sep 10, 2025

ref: #4574

User can provide the custom operator libs by

so = ort.SessionOptions()
so.register_custom_ops_library(...)
g.fold_constants(..., ort_session_options=so)

Passing some options to avoid some ORT bug

so = ort.SessionOptions()
so.graph_optimization_level = ort.GraphOptimizationLevel.ORT_DISABLE_ALL
g.fold_constants(..., ort_session_options=so)

@OYCN OYCN requested a review from a team as a code owner September 10, 2025 06:00
@OYCN OYCN changed the title Support provide ORT session options in gs fold_constants Support provide ORT session options in onnx_graphsurgeon fold_constants Sep 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant