Reshape an array to send a dimension forward or back
set_as_rows(X, which_dim) set_as_cols(X, which_dim)
X | an array |
---|---|
which_dim | scalar integer or string, which dim to bring forward. Negative numbers count from the back This is a powered by |
a reshaped array
base::aperm()
set_dim()
keras::array_reshape()