@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.InvertPermutation extends Pointer
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]
Arguments:
* scope: A Scope object
* x: 1-D.
Returns:
* Output: 1-D.Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
InvertPermutation(Pointer p)
Pointer cast constructor.
|
InvertPermutation(tensorflow.Scope scope,
tensorflow.Input x) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Input |
asInput() |
tensorflow.Output |
asOutput() |
tensorflow.Node |
node() |
tensorflow.Operation |
operation() |
tensorflow.InvertPermutation |
operation(tensorflow.Operation operation) |
tensorflow.Output |
y() |
tensorflow.InvertPermutation |
y(tensorflow.Output y) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic InvertPermutation(Pointer p)
Pointer.Pointer(Pointer).public InvertPermutation(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input x)
@ByVal @Name(value="operator tensorflow::Output") public tensorflow.Output asOutput()
@ByVal @Name(value="operator tensorflow::Input") public tensorflow.Input asInput()
public tensorflow.Node node()
@ByRef public tensorflow.Operation operation()
public tensorflow.InvertPermutation operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output y()
public tensorflow.InvertPermutation y(tensorflow.Output y)
Copyright © 2019. All rights reserved.