Returns the result of the forward evaluation of the log determinant of the Jacobian
tfb_forward_log_det_jacobian(
bijector,
x,
event_ndims,
name = "forward_log_det_jacobian"
)
a tensor
The bijector to apply
Tensor. The input to the "forward" Jacobian determinant evaluation.
Number of dimensions in the probabilistic events being transformed. Must be greater than or equal to bijector$forward_min_event_ndims. The result is summed over the final dimensions to produce a scalar Jacobian determinant for each event, i.e. it has shape x$shape$ndims - event_ndims dimensions.
name of the operation
Other bijector_methods:
tfb_forward()
,
tfb_inverse_log_det_jacobian()
,
tfb_inverse()
# \donttest{
b <- tfb_affine_scalar(shift = 1, scale = 2)
x <- 10
b %>% tfb_forward_log_det_jacobian(x, event_ndims = 0)
# }
Run the code above in your browser using DataLab