Shortcuts

clamp

class torch.ao.nn.quantized.functional.clamp(input, min_, max_)[source][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

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