Dimwit supports stacking of operations using val tensor = stack(Axis[NewAxis])(tensorSeq). Sometimes the revers is useful, namely to take a tensors apart (unstack) along a given dimension. It would be something like: val tensorSeq : Seq[Tensor[T]] = unstack(Axis[UnstackAxis])(tensors).
Currently, this can be achieved using the slice operation, which, however, obfuscates the meaning.
Dimwit supports stacking of operations using
val tensor = stack(Axis[NewAxis])(tensorSeq). Sometimes the revers is useful, namely to take a tensors apart (unstack) along a given dimension. It would be something like:val tensorSeq : Seq[Tensor[T]] = unstack(Axis[UnstackAxis])(tensors).Currently, this can be achieved using the slice operation, which, however, obfuscates the meaning.