[ 无参数 ] torch.Tensor.negative

torch.Tensor.negative

torch.Tensor.negative()

paddle.Tensor.neg

paddle.Tensor.neg()

两者功能一致,均无参数,用于计算输入 x 的相反数并返回。