Module math

Module math 

Source
Expand description

Tensor math used in optimizer algorithms

Implements functions that burn_tensor does not provide.

Functionsยง

digamma_tensor
Approximate derivative of the log gamma function (digamma)
ln_gamma_tensor
Approximate log-gamma function
logsumexp
LogSumExp over a dimension on a 2D tensor
logsumexp_mask
LogSumExp on a masked 2D tensor
logsumexp_mat
LogSumExp on a 2D tensor