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

View source: R/bijector-methods.R

tfb_forwardR Documentation

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")

Arguments

bijector

The bijector to apply

x

Tensor. The input to the "forward" evaluation.

name

name of the operation

Value

a tensor

See Also

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

Examples


  b <- tfb_affine_scalar(shift = 1, scale = 2)
  x <- 10
  b %>% tfb_forward(x)


tfprobability documentation built on Sept. 1, 2022, 5:07 p.m.