.. _l-onnx-doc-Affine: ====== Affine ====== .. contents:: :local: .. _l-onnx-op-affine-1: Affine - 1 ========== **Version** * **name**: `Affine (GitHub) `_ * **domain**: **main** * **since_version**: **1** * **function**: * **support_level**: * **shape inference**: This version of the operator has been available **since version 1**. **Summary** Affine takes one input data (Tensor) and produces one output data (Tensor) where the affine function, y = alpha * x + beta, is applied to the tensor elementwise. **Attributes** * **alpha**: Value of alpha Default value is ``?``. * **beta**: Value of beta Default value is ``?``. **Inputs** * **X** (heterogeneous) - **T**: 1D input tensor **Outputs** * **Y** (heterogeneous) - **T**: 1D output tensor **Examples**