torch.nn.functional.relu torch.nn.functional.relu(input, inplace=False) → Tensor[源代码] 按元素应用修正线性单元(ReLU)函数。更多细节请参见 ReLU。 返回类型 Tensor