Rate this Page
โ˜… โ˜… โ˜… โ˜… โ˜…

clamp#

class torch.ao.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 (Tensor) โ€“ quantized input

  • min โ€“ minimum value for clamping

  • max โ€“ maximum value for clamping

Return type

Tensor