# OpContext Source: https://www.tensorplay.cn/docs/generated/tensorplay.onnx.OpContext.html ```python 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) ``` Argument access plus emission helpers handed to every handler. ```python cast_like(value: Any, reference: Any, name_hint: str = 'const') → str ``` Name for value, materialized with reference’s dtype. ```python name(value: Any, name_hint: str = 'const') → str ``` ONNX value name for value, materializing constants on demand. ```python property x: Any ``` First declared argument (the input tensor for nearly every op).