評價此頁

clamp#

class torch.ao.nn.quantized.functional.clamp(input, min_, max_)[source]#

float(input, min_, max_) -> Tensor

逐元素應用 clamp 函式。更多詳細資訊請參閱 clamp

引數
  • input (Tensor) – 量化輸入

  • min – 夾緊的最小值

  • max – 夾緊的最大值

返回型別

張量