快捷方式

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}

更多詳情請參見 Threshold

返回型別

Tensor

文件

獲取 PyTorch 的全面開發者文件

檢視文件

教程

獲取面向初學者和高階開發者的深度教程

檢視教程

資源

查詢開發資源並獲取問題的答案

檢視資源