@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.SetDiff1D extends Pointer
x and a list y, this operation returns a list out that
represents all values that are in x but not in y. The returned list out
is sorted in the same order that the numbers appear in x (duplicates are
preserved). This operation also returns a list idx that represents the
position of each out element in x. In other words:
out[i] = x[idx[i]] for i in [0, 1, ..., len(out) - 1]
For example, given this input:
x = [1, 2, 3, 4, 5, 6]
y = [1, 3, 5]
This operation would return:
out ==> [2, 4, 6]
idx ==> [1, 3, 5]
Arguments:
* scope: A Scope object
* x: 1-D. Values to keep.
* y: 1-D. Values to remove.
Returns:
* Output out: 1-D. Values present in x but not in y.
* Output idx: 1-D. Positions of x values preserved in out.| Modifier and Type | Class and Description |
|---|---|
static class |
tensorflow.SetDiff1D.Attrs
Optional attribute setters for SetDiff1D
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
SetDiff1D(Pointer p)
Pointer cast constructor.
|
SetDiff1D(tensorflow.Scope scope,
tensorflow.Input x,
tensorflow.Input y) |
SetDiff1D(tensorflow.Scope scope,
tensorflow.Input x,
tensorflow.Input y,
tensorflow.SetDiff1D.Attrs attrs) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Output |
idx() |
tensorflow.SetDiff1D |
idx(tensorflow.Output idx) |
tensorflow.Operation |
operation() |
tensorflow.SetDiff1D |
operation(tensorflow.Operation operation) |
tensorflow.Output |
out() |
tensorflow.SetDiff1D |
out(tensorflow.Output out) |
static tensorflow.SetDiff1D.Attrs |
OutIdx(int x) |
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 SetDiff1D(Pointer p)
Pointer.Pointer(Pointer).public SetDiff1D(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input x, @ByVal tensorflow.Input y)
public SetDiff1D(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input x, @ByVal tensorflow.Input y, @Const @ByRef tensorflow.SetDiff1D.Attrs attrs)
@ByVal public static tensorflow.SetDiff1D.Attrs OutIdx(@Cast(value="tensorflow::DataType") int x)
@ByRef public tensorflow.Operation operation()
public tensorflow.SetDiff1D operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output out()
public tensorflow.SetDiff1D out(tensorflow.Output out)
@ByRef public tensorflow.Output idx()
public tensorflow.SetDiff1D idx(tensorflow.Output idx)
Copyright © 2019. All rights reserved.