espnet2.asr.transducer.rnnt_multi_blank.utils.rnnt_helper.add
Less than 1 minute
espnet2.asr.transducer.rnnt_multi_blank.utils.rnnt_helper.add
espnet2.asr.transducer.rnnt_multi_blank.utils.rnnt_helper.add(x, y)
Compute the sum of two values.
This function performs an addition operation on two input values, returning the result. It is designed to be used in a CUDA kernel.
- Parameters:
- x (float) – The first value to add.
- y (float) – The second value to add.
- Returns: The sum of the two input values.
- Return type: float
Examples
>>> result = add(3.5, 2.0)
>>> print(result)
5.5
>>> result = add(-1.5, 1.5)
>>> print(result)
0.0
NOTE
This function is optimized for use within a CUDA kernel context and should not be used outside of that environment.