.. _l-onnx-doc-Erf: === Erf === .. contents:: :local: .. _l-onnx-op-erf-13: Erf - 13 ======== **Version** * **name**: `Erf (GitHub) `_ * **domain**: **main** * **since_version**: **13** * **function**: False * **support_level**: SupportType.COMMON * **shape inference**: True This version of the operator has been available **since version 13**. **Summary** Computes the error function of the given input tensor element-wise. **Inputs** * **input** (heterogeneous) - **T**: Input tensor **Outputs** * **output** (heterogeneous) - **T**: The error function of the input tensor computed element-wise. It has the same shape and type of the input. **Type Constraints** * **T** in ( tensor(bfloat16), tensor(double), tensor(float), tensor(float16), tensor(int16), tensor(int32), tensor(int64), tensor(int8), tensor(uint16), tensor(uint32), tensor(uint64), tensor(uint8) ): Constrain input and output types to all numeric tensors. **Examples** **default** :: node = onnx.helper.make_node( "Erf", inputs=["x"], outputs=["y"], ) x = np.random.randn(1, 3, 32, 32).astype(np.float32) y = np.vectorize(math.erf)(x).astype(np.float32) expect(node, inputs=[x], outputs=[y], name="test_erf") **Differences** .. raw:: html
 0 0 Computes the error function of the given input tensor element-wise. Computes the error function of the given input tensor element-wise. 1 1 2 2 **Inputs** **Inputs** 3 3 4 4 * **input** (heterogeneous) - **T**: * **input** (heterogeneous) - **T**: 5 5 Input tensor Input tensor 6 6 7 7 **Outputs** **Outputs** 8 8 9 9 * **output** (heterogeneous) - **T**: * **output** (heterogeneous) - **T**: 10 10 The error function of the input tensor computed element-wise. It has The error function of the input tensor computed element-wise. It has 11 11 the same shape and type of the input. the same shape and type of the input. 12 12 13 13 **Type Constraints** **Type Constraints** 14 14 15 15 * **T** in ( * **T** in ( 16 tensor(bfloat16), 16 17 tensor(double), tensor(double), 17 18 tensor(float), tensor(float), 18 19 tensor(float16), tensor(float16), 19 20 tensor(int16), tensor(int16), 20 21 tensor(int32), tensor(int32), 21 22 tensor(int64), tensor(int64), 22 23 tensor(int8), tensor(int8), 23 24 tensor(uint16), tensor(uint16), 24 25 tensor(uint32), tensor(uint32), 25 26 tensor(uint64), tensor(uint64), 26 27 tensor(uint8) tensor(uint8) 27 28 ): ): 28 29 Constrain input and output types to all numeric tensors. Constrain input and output types to all numeric tensors.
.. _l-onnx-op-erf-9: Erf - 9 ======= **Version** * **name**: `Erf (GitHub) `_ * **domain**: **main** * **since_version**: **9** * **function**: False * **support_level**: SupportType.COMMON * **shape inference**: True This version of the operator has been available **since version 9**. **Summary** Computes the error function of the given input tensor element-wise. **Inputs** * **input** (heterogeneous) - **T**: Input tensor **Outputs** * **output** (heterogeneous) - **T**: The error function of the input tensor computed element-wise. It has the same shape and type of the input. **Type Constraints** * **T** in ( tensor(double), tensor(float), tensor(float16), tensor(int16), tensor(int32), tensor(int64), tensor(int8), tensor(uint16), tensor(uint32), tensor(uint64), tensor(uint8) ): Constrain input and output types to all numeric tensors.