

def get_output_shape_for(self, input_shape):
    input_shape = list(input_shape)
    output_shape = copy.copy(input_shape)
    for (i, dim) in enumerate(dim.dims):
        target_dim = input_shape[dim]
        output_shape[(i + 1)] = target_dim
    return tuple(output_shape)

dataset/ETHPy150Open fchollet/keras/keras/layers/core.py Permute.get_output_shape_for/VarMisuse@37/51 `self`->`dim`