Transpose¶
- class
dragon.vm.tensorlayer.layers.
Transpose
(
perm=None,
name=None
)[source]¶ Layer to permute the dimensions of input.
Examples:
x = tl.layers.Input([8, 4, 3]) # Specify a explict permutation y = tl.layers.Transpose(perm=[0, 2, 1])(x) # [8, 4, 3] -> [8, 3, 4] # Or simply inverse all the dimensions z = tl.layers.Transpose()(x) # [8, 4, 3] -> [3, 4, 8]