TensorPlay
latest (dev)
Copy
View Markdown

Latest development documentation · Updated 2026-10-15

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).

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.

On this page

Ask DeepWiki