Erf#

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

00Computes the error function of the given input tensor element-wise.Computes the error function of the given input tensor element-wise.
11
22**Inputs****Inputs**
33
44* **input** (heterogeneous) - **T**:* **input** (heterogeneous) - **T**:
55 Input tensor Input tensor
66
77**Outputs****Outputs**
88
99* **output** (heterogeneous) - **T**:* **output** (heterogeneous) - **T**:
1010 The error function of the input tensor computed element-wise. It has The error function of the input tensor computed element-wise. It has
1111 the same shape and type of the input. the same shape and type of the input.
1212
1313**Type Constraints****Type Constraints**
1414
1515* **T** in (* **T** in (
16 tensor(bfloat16),
1617 tensor(double), tensor(double),
1718 tensor(float), tensor(float),
1819 tensor(float16), tensor(float16),
1920 tensor(int16), tensor(int16),
2021 tensor(int32), tensor(int32),
2122 tensor(int64), tensor(int64),
2223 tensor(int8), tensor(int8),
2324 tensor(uint16), tensor(uint16),
2425 tensor(uint32), tensor(uint32),
2526 tensor(uint64), tensor(uint64),
2627 tensor(uint8) tensor(uint8)
2728 ): ):
2829 Constrain input and output types to all numeric tensors. Constrain input and output types to all numeric tensors.

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.