Bijector constructed from custom functions

tfb_inline(
  forward_fn = NULL,
  inverse_fn = NULL,
  inverse_log_det_jacobian_fn = NULL,
  forward_log_det_jacobian_fn = NULL,
  forward_event_shape_fn = NULL,
  forward_event_shape_tensor_fn = NULL,
  inverse_event_shape_fn = NULL,
  inverse_event_shape_tensor_fn = NULL,
  is_constant_jacobian = NULL,
  validate_args = FALSE,
  forward_min_event_ndims = NULL,
  inverse_min_event_ndims = NULL,
  name = "inline"
)

Arguments

forward_fn

Function implementing the forward transformation.

inverse_fn

Function implementing the inverse transformation.

inverse_log_det_jacobian_fn

Function implementing the log_det_jacobian of the forward transformation.

forward_log_det_jacobian_fn

Function implementing the log_det_jacobian of the inverse transformation.

forward_event_shape_fn

Function implementing non-identical static event shape changes. Default: shape is assumed unchanged.

forward_event_shape_tensor_fn

Function implementing non-identical event shape changes. Default: shape is assumed unchanged.

inverse_event_shape_fn

Function implementing non-identical static event shape changes. Default: shape is assumed unchanged.

inverse_event_shape_tensor_fn

Function implementing non-identical event shape changes. Default: shape is assumed unchanged.

is_constant_jacobian

Logical indicating that the Jacobian is constant for all input arguments.

validate_args

Logical, default FALSE. Whether to validate input with asserts. If validate_args is FALSE, and the inputs are invalid, correct behavior is not guaranteed.

forward_min_event_ndims

Integer indicating the minimal dimensionality this bijector acts on.

inverse_min_event_ndims

Integer indicating the minimal dimensionality this bijector acts on.

name

name prefixed to Ops created by this class.

Value

a bijector instance.

See also