Shortcuts

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

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources