tensorly.base
.tensor_to_vec
- tensor_to_vec(tensor)[source]
Vectorises a tensor
- Parameters:
- tensorndarray
tensor of shape
(i_1, ..., i_n)
- Returns:
- 1D-array
vectorised tensor of shape
(i_1 * i_2 * ... * i_n)
tensorly.base
.tensor_to_vecVectorises a tensor
tensor of shape (i_1, ..., i_n)
vectorised tensor of shape (i_1 * i_2 * ... * i_n)