View source on GitHub |
Computes the normalization for a CRF.
tfa.text.crf_log_norm(
inputs: tfa.types.TensorLike
,
sequence_lengths: tfa.types.TensorLike
,
transition_params: tfa.types.TensorLike
) -> tf.Tensor
Returns | |
---|---|
log_norm
|
A [batch_size] vector of normalizers for a CRF. |