TensorPlay
latest (dev)
Copy
View Markdown

Latest development documentation · Updated 2026-10-08

OpContext

class tensorplay.onnx.OpContext(builder: GraphBuilder, node_name: str, params: Sequence[str], args: Sequence[Any], kwargs: dict[str, Any], out_shape: tuple | None = None, out_dtype: dtype | None = None)[source]

Argument access plus emission helpers handed to every handler.

cast_like(value: Any, reference: Any, name_hint: str = 'const') → str[source]

Name for value, materialized with reference’s dtype.

name(value: Any, name_hint: str = 'const') → str[source]

ONNX value name for value, materializing constants on demand.

property x: Any

First declared argument (the input tensor for nearly every op).

On this page

Ask DeepWiki