threshold¶ class torch.ao.nn.quantized.functional.threshold(input, threshold, value)[來源][來源]¶ 以元素方式應用 threshold 函式的量化版本 x={xif x>thresholdvalueotherwisex = \begin{cases} x & \text{if~} x > \text{threshold} \\ \text{value} & \text{otherwise} \end{cases} x={xvalueif x>thresholdotherwise詳見Threshold。 回傳類型 Tensor