Guide
Tutorials
API Documentation
Projects an input vector onto the box.
x – A tf.Tensor of shape [..., n].
[..., n]
lower_bound –
A scalar tf.Tensor of type x.dtype.real_dtype. The lower bound of the box. Defaults to -1.0.
x.dtype.real_dtype
upper_bound –
A scalar tf.Tensor of type x.dtype.real_dtype. The upper bound of the box. Defaults to 1.0.
name – A str. The name of this operation.
A tf.Tensor of shape [..., n] and dtype equal to x.dtype.
x.dtype