mlr_pipeops_nn_flatten function

Flattens a Tensor