How many approaches to expand dim?

Does anyone have a list of possible approaches to expand dim of dataset?

TF, Pytorch, Numpy, whatever

Here is what I know

np.newaxis

np.expand_dims()

:slight_smile:

1 Like

I don’t have an exhaustive list, but I know that you can also use:

np.reshape()

So, there’s another one!

np.stack() ?

https://numpy.org/doc/stable/reference/generated/numpy.stack.html