@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.Unique extends Pointer
y containing all of the unique elements of x
sorted in the same order that they occur in x. This operation also returns a
tensor idx the same size as x that contains the index of each value of x
in the unique output y. In other words:
y[idx[i]] = x[i] for i in [0, 1,...,rank(x) - 1]
For example:
# tensor 'x' is [1, 1, 2, 4, 4, 4, 7, 8, 8]
y, idx = unique(x)
y ==> [1, 2, 4, 7, 8]
idx ==> [0, 0, 1, 2, 2, 2, 3, 4, 4]
Arguments:
* scope: A Scope object
* x: 1-D.
Returns:
* Output y: 1-D.
* Output idx: 1-D.| Modifier and Type | Class and Description |
|---|---|
static class |
tensorflow.Unique.Attrs
Optional attribute setters for Unique
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
Unique(Pointer p)
Pointer cast constructor.
|
Unique(tensorflow.Scope scope,
tensorflow.Input x) |
Unique(tensorflow.Scope scope,
tensorflow.Input x,
tensorflow.Unique.Attrs attrs) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Output |
idx() |
tensorflow.Unique |
idx(tensorflow.Output idx) |
tensorflow.Operation |
operation() |
tensorflow.Unique |
operation(tensorflow.Operation operation) |
static tensorflow.Unique.Attrs |
OutIdx(int x) |
tensorflow.Output |
y() |
tensorflow.Unique |
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 Unique(Pointer p)
Pointer.Pointer(Pointer).public Unique(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input x)
public Unique(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input x, @Const @ByRef tensorflow.Unique.Attrs attrs)
@ByVal public static tensorflow.Unique.Attrs OutIdx(@Cast(value="tensorflow::DataType") int x)
@ByRef public tensorflow.Operation operation()
public tensorflow.Unique operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output y()
public tensorflow.Unique y(tensorflow.Output y)
@ByRef public tensorflow.Output idx()
public tensorflow.Unique idx(tensorflow.Output idx)
Copyright © 2019. All rights reserved.