latest (dev)
Latest development documentation · Updated 2026-10-08
GraphBuilder
-
class tensorplay.onnx.GraphBuilder(opset: int, name: str = 'tensorplay_model')[source]
Accumulates ONNX nodes, initializers and unique value names.
-
constant(value: Any, dtype: Any = None, name_hint: str = 'const') → str[source]
Materialize a python/tensor constant as a cached initializer.
-
op(op_type: str, inputs: Sequence[str], *, num_outputs: int = 1, name_hint: str | None = None, outputs: Sequence[str] | None = None, **attrs: Any) → Any[source]
Emit one ONNX node and return its output name (or list of names).
Help improve this page
Found an error, an unclear step, or a missing example?