osl_dynamics.inference.ops#
TensorFlow functions used by the layers in osl_dynamics.inference.layers.
Functions#
|
Add epsilon to the diagonal of square matrices or to every element. |
|
Multivariate normal log-likelihood with an analytic gradient. |
|
Multivariate normal log-likelihood for each state. |
|
Forward-backward recursions for a batch of sequences. |
|
Forward-backward recursions for a batch of sequences. |
|
func as a tf.function, compiled with XLA where it is supported. |
|
Sum or average over time and average over sequences. |
|
Sample from normal distributions. |
|
Sample from Gumbel-Softmax (relaxed one-hot categorical) distributions. |
|
KL divergence between the posterior and prior of a sequence of normal |
|
KL divergence between the posterior and prior of a sequence of |