Learn R Programming

tfprobability (version 0.15.2)

tfb_forward: Returns the forward Bijector evaluation, i.e., X = g(Y).

Description

Returns the forward Bijector evaluation, i.e., X = g(Y).

Usage

tfb_forward(bijector, x, name = "forward")

Value

a tensor

Arguments

bijector

The bijector to apply

x

Tensor. The input to the "forward" evaluation.

name

name of the operation

See Also

Other bijector_methods: tfb_forward_log_det_jacobian(), tfb_inverse(), tfb_inverse_log_det_jacobian()

Examples

Run this code
if (FALSE) {
  b <- tfb_affine_scalar(shift = 1, scale = 2)
  x <- 10
  b %>% tfb_forward(x)
}

Run the code above in your browser using DataLab