快速鍵

clamp

class torch.ao.nn.quantized.functional.clamp(input, min_, max_)[原始碼][原始碼]

float(input, min_, max_) -> Tensor

逐元素套用 clamp 函數。請參閱 clamp 以取得更多詳細資訊。

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

  • min – clamping 的最小值

  • max – 鉗位的最大值

回傳類型

Tensor

文件

存取 PyTorch 的完整開發者文件

查看文件

教學

取得初學者和進階開發者的深入教學

查看教學

資源

尋找開發資源並獲得問題解答

查看資源