threshold¶ class torch.ao.nn.quantized.functional.threshold(input, threshold, value)[source][source]¶ 逐元素应用阈值函数的量化版本 x={xif x>thresholdvalueotherwisex = \begin{cases} x & \text{if~} x > \text{threshold} \\ \text{value} & \text{otherwise} \end{cases} x={xvalueif x>thresholdotherwise有关更多详细信息,请参阅 Threshold。 返回类型 Tensor