tensorly.sign

sign(tensor)

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

Parameters
tensortensor
Returns
outtensor