asc2.erf
- asc2.erf(input: LocalTensor) LocalTensor
- asc2.erf(input: RuntimeFloat) PlainValue
Computes the element-wise error function of
input.The supported data types for the input are:
float16,float32.- Parameters:
input – The input value (tensor or scalar)
- Returns:
The result tensor
- Return type:
- Raises:
RuntimeError – If the input dtype is not supported for this operation
Examples
Compute the element-wise error function of all tensor elements:
input = asc2.copy_in(tensor, [0, 0], [128, 256]) result = asc2.erf(input)
Compute the error function of given scalar value:
result = asc2.erf(1.0)
This function can also be called as a member function on
LocalTensor, asinput.erf(...)instead oferf(input, ...).