Help protect the Great Barrier Reef with TensorFlow on Kaggle

# tensorflow:: ops:: InvertPermutation

``` #include <array_ops.h> ```

Computes the inverse permutation of a tensor.

## Summary

This operation computes the inverse of an index permutation. It takes a 1-D integer tensor ``` x ``` , which represents the indices of a zero-based array, and swaps each value with its index position. In other words, for an output tensor ``` y ``` and an input tensor ``` x ``` , this operation computes the following:

``` y[x[i]] = i for i in [0, 1, ..., len(x) - 1] ```

The values must include 0. There can be no duplicate values or negative values.

For example:

```# tensor `x` is [3, 4, 0, 2, 1]
invert_permutation(x) ==> [2, 4, 3, 0, 1]
```

Args:

Returns:

• ``` Output ``` : 1-D.

### Constructors and Destructors

``` InvertPermutation (const :: tensorflow::Scope & scope, :: tensorflow::Input x) ```

### Public attributes

``` operation ```
``` Operation ```
``` y ```
``` :: tensorflow::Output ```

### Public functions

``` node () const ```
``` ::tensorflow::Node * ```
``` operator::tensorflow::Input () const ```
``` ```
``` operator::tensorflow::Output () const ```
``` ```

## Public attributes

### operation

`Operation operation`

### y

`::tensorflow::Output y`

## Public functions

### InvertPermutation

``` InvertPermutation(
const ::tensorflow::Scope & scope,
::tensorflow::Input x
)```

### node

`::tensorflow::Node * node() const `

### operator::tensorflow::Input

` operator::tensorflow::Input() const `

### operator::tensorflow::Output

` operator::tensorflow::Output() const `
[{ "type": "thumb-down", "id": "missingTheInformationINeed", "label":"Missing the information I need" },{ "type": "thumb-down", "id": "tooComplicatedTooManySteps", "label":"Too complicated / too many steps" },{ "type": "thumb-down", "id": "outOfDate", "label":"Out of date" },{ "type": "thumb-down", "id": "samplesCodeIssue", "label":"Samples / code issue" },{ "type": "thumb-down", "id": "otherDown", "label":"Other" }]
[{ "type": "thumb-up", "id": "easyToUnderstand", "label":"Easy to understand" },{ "type": "thumb-up", "id": "solvedMyProblem", "label":"Solved my problem" },{ "type": "thumb-up", "id": "otherUp", "label":"Other" }]