Graph Builder TutorialsΒΆ GraphBuilder Tutorial Setup Adding Operations Basic graph construction Shape inference Naming Default output names Custom output names Hierarchical naming (module context) Constant Promotion and Auto-Casting Scalars Schema-aware type casting Dynamic CastLike for unknown types Constant caching Sequences Custom Domains Inline domain override OpBuilder for a custom domain Specifying Attributes Scalar attributes List attributes Mixing with builder kwargs Initializers Building Subgraphs for Control-Flow Ops Type annotations for subgraph inputs and outputs Example: cumulative sum with Scan Nested subgraphs Putting It All Together Recovering the Builder from OpBuilder Calling Script Functions from OpBuilder Basic function inlining Renaming outputs with _outputs Adding hierarchical context with _prefix Using OpBuilder as the default_opset