threshold¶ class torch.ao.nn.quantized.functional.threshold(input, threshold, value)[源][源]¶ 逐元素應用量化版本的閾值函式 x={x如果 x>thresholdvalue否則x = \begin{cases} x & \text{if~} x > \text{threshold} \\ \text{value} & \text{otherwise} \end{cases} x={xvalue如果 x>threshold否則更多詳情請參見 Threshold 。 返回型別 Tensor