clamp
-
class
torch.nn.quantized.functional.
clamp
(input, min_, max_)[source] float(input, min_, max_) -> Tensor
Applies the clamp function element-wise. See
clamp
for more details.- Parameters
input – quantized input
min – minimum value for clamping
max – maximum value for clamping