阈值 ¶ 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 。 返回类型: 张量