espnet2.asr.transducer.rnnt_multi_blank.utils.global_constants.RNNTStatus
Less than 1 minute
espnet2.asr.transducer.rnnt_multi_blank.utils.global_constants.RNNTStatus
class espnet2.asr.transducer.rnnt_multi_blank.utils.global_constants.RNNTStatus(value)
Bases: Enum
Enumeration for the status codes used in the RNNT (Recurrent Neural Network Transducer) operations.
RNNT_STATUS_SUCCESS
Indicates that the operation was successful.
- Type: int
RNNT_STATUS_INVALID_VALUE
Indicates that an invalid value was provided to the operation.
- Type: int
Examples
>>> status = RNNTStatus.RNNT_STATUS_SUCCESS
>>> if status == RNNTStatus.RNNT_STATUS_SUCCESS:
... print("Operation completed successfully.")
...
Operation completed successfully.
>>> status = RNNTStatus.RNNT_STATUS_INVALID_VALUE
>>> if status == RNNTStatus.RNNT_STATUS_INVALID_VALUE:
... print("An invalid value was encountered.")
...
An invalid value was encountered.
RNNT_STATUS_INVALID_VALUE
RNNT_STATUS_SUCCESS