評價此頁

torch.nn.functional.threshold#

torch.nn.functional.threshold(input, threshold, value, inplace=False)[原始碼]#

對輸入 Tensor 的每個元素應用閾值。

更多詳情請參閱 Threshold

返回型別

張量