tensorly.is_tensor

is_tensor(obj)

Returns if obj is a tensor for the current backend