chainer.functions.permutate¶
-
chainer.functions.permutate(x, indices, axis=0, inv=False)[source]¶ Permutates a given variable along an axis.
This function permutate
xwith givenindices. That meansy[i] = x[indices[i]]for alli. Note that this result is same asy = x.take(indices).indicesmust be a permutation of[0, 1, ..., len(x) - 1].When
invisTrue,indicesis treated as its inverse. That meansy[indices[i]] = x[i].Parameters: Returns: Output variable.
Return type: