torch.nn.functional.threshold¶ torch.nn.functional.threshold(input, threshold, value, inplace=False)[source]¶ 对输入张量中的每个元素应用阈值。 更多详情请见 Threshold 。 返回类型: 张量