T - data type for output() output@Operator public final class ClipByValue<T> extends PrimitiveOp implements Operand<T>
Given a tensor `t`, this operation returns a tensor of the same type and shape as `t` with its values clipped to `clip_value_min` and `clip_value_max`. Any values less than `clip_value_min` are set to `clip_value_min`. Any values greater than `clip_value_max` are set to `clip_value_max`.
operation| Modifier and Type | Method and Description |
|---|---|
Output<T> |
asOutput()
Returns the symbolic handle of a tensor.
|
static <T> ClipByValue<T> |
create(Scope scope,
Operand<T> t,
Operand<T> clipValueMin,
Operand<T> clipValueMax)
Factory method to create a class to wrap a new ClipByValue operation to the graph.
|
Output<T> |
output()
A clipped `Tensor` with the same shape as input 't'.
|
equals, hashCode, toStringpublic static <T> ClipByValue<T> create(Scope scope, Operand<T> t, Operand<T> clipValueMin, Operand<T> clipValueMax)
scope - current graph scopet - A `Tensor`.clipValueMin - A 0-D (scalar) `Tensor`, or a `Tensor` with the same shape
as `t`. The minimum value to clip by.clipValueMax - A 0-D (scalar) `Tensor`, or a `Tensor` with the same shape
as `t`. The maximum value to clip by.public Output<T> asOutput()
OperandInputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.
asOutput in interface Operand<T>OperationBuilder.addInput(Output)Copyright © 2015–2019. All rights reserved.