torch.nn.functional.threshold¶ torch.nn.functional.threshold(input, threshold, value, inplace=False)[來源]¶ 將閾值應用於輸入張量的每個元素。 有關更多詳細資訊,請參閱 Threshold。 傳回類型 張量