Shortcuts

阈值

class torch.ao.nn.quantized.functional.threshold(input, threshold, value)[源代码]

对阈值函数的量化版本进行逐元素应用:

x={xif x>thresholdvalueotherwisex = \begin{cases} x & \text{if~} x > \text{threshold} \\ \text{value} & \text{otherwise} \end{cases}

更多详情请参见 Threshold

Return type

张量

优云智算