# GraphBuilder Source: https://www.tensorplay.cn/docs/generated/tensorplay.onnx.GraphBuilder.html ```python class tensorplay.onnx.GraphBuilder(opset: int, name: str = 'tensorplay_model') ``` Accumulates ONNX nodes, initializers and unique value names. ```python constant(value: Any, dtype: Any = None, name_hint: str = 'const') → str ``` Materialize a python/tensor constant as a cached initializer. ```python op(op_type: str, inputs: Sequence[str], *, num_outputs: int = 1, name_hint: str | None = None, outputs: Sequence[str] | None = None, **attrs: Any) → Any ``` Emit one ONNX node and return its output name (or list of names). ```python static_dims: Callable[[Value], Sequence[int | None] | None] | None ``` Per-axis extents of a value that the exported graph fixes, None on the axes that vary at runtime. Unset, every sampled extent is taken as fixed.