Permutes the rightmost dimension of a Tensor

tfb_permute(permutation, axis = -1L, validate_args = FALSE, name = NULL)

Arguments

permutation

An integer-like vector-shaped Tensor representing the permutation to apply to the axis dimension of the transformed Tensor.

axis

Scalar integer Tensor representing the dimension over which to tf$gather. axis must be relative to the end (reading left to right) thus must be negative. Default value: -1 (i.e., right-most).

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.

name

name prefixed to Ops created by this class.

Value

a bijector instance.

See also