I am trying to use the keras.layers.Permute(dims) in Keras core layers.
According to docs:
dims: Tuple of integers. Permutation pattern, does not include the samples dimension. Indexing starts at 1. For instance, (2, 1) permutes the first and second dimension of the input."
And it gives an example code as in the following,
The question is that: what does this (2,1) do? If my input features have 10 dimensions, and I need to change the order of the 1,3,5th features to be (5,1,3), then should I just use (5,1,3) as the value for parameter 'dim' of this function?
model = Sequential()
model.add(Permute((2, 1), input_shape=(10, 64)))
# now: model.output_shape == (None, 64, 10)
# note: `None` is the batch dimension