torch.positive
function positive(input: unknown, options: unknown): TensorReturns the input tensor unchanged. This is the unary + operator.
Parameters
inputunknown- The input tensor
optionsunknown- Optional settings including
outparameter
Returns
Tensor– A new tensor with the same values as input