捷徑

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}

詳見Threshold

回傳類型

Tensor

文件

取得 PyTorch 的完整開發者文件

檢視文件

教學

取得針對初學者和進階開發者的深入教學

檢視教學

資源

尋找開發資源並取得問題解答

檢視資源