tensorly.norm

norm(tensor, order=2, axis=None)

Computes the l-order norm of a tensor.

Parameters

tensor : tl.tensor

order : int

axis : int or tuple

Returns

float or tensor

If axis is provided returns a tensor.