tensorly.sign

sign(tensor)

Computes the element-wise sign of the given input tensor.

Parameters:tensor : tensor
Returns:out : tensor