# Import statement from hottbox.core import unfold
unfold
Unfolds N-dimensional array into a 2D array.
N-dimensional array to be unfolded
Specifies a mode along which a tensor will be unfolded
Unfolded version of a tensor with a shape (tensor.shape[mode], -1)
(tensor.shape[mode], -1)