@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class Unstack extends Pointer
R
tensor into num
rank-(R-1)
tensors.
Unpacks num
tensors from value
by chipping it along the axis
dimension.
For example, given a tensor of shape (A, B, C, D)
;
If axis == 0
then the i'th tensor in output
is the slice value[i, :, :, :]
and each tensor in output
will have shape (B, C, D)
. (Note that the
dimension unpacked along is gone, unlike split
).
If axis == 1
then the i'th tensor in output
is the slice value[:, i, :, :]
and each tensor in output
will have shape (A, C, D)
.
Etc.
This is the opposite of pack
.
Arguments:
* scope: A Scope object
* value: 1-D or higher, with axis
dimension size equal to num
.
Optional attributes (see Attrs
):
* axis: Dimension along which to unpack. Negative values wrap around, so the
valid range is [-R, R)
.
Returns:
* OutputList
: The list of tensors unpacked from value
.Modifier and Type | Class and Description |
---|---|
static class |
Unstack.Attrs
Optional attribute setters for Unstack
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Unstack(Pointer p)
Pointer cast constructor.
|
Unstack(Scope scope,
Input value,
long num) |
Unstack(Scope scope,
Input value,
long num,
Unstack.Attrs attrs) |
Modifier and Type | Method and Description |
---|---|
static Unstack.Attrs |
Axis(long x) |
Output |
get(long index) |
Operation |
operation() |
Unstack |
operation(Operation setter) |
OutputVector |
output() |
Unstack |
output(OutputVector setter) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public Unstack(Pointer p)
Pointer(Pointer)
.public Unstack(@Const @ByRef Scope scope, @ByVal Input value, @Cast(value="tensorflow::int64") long num)
@ByVal public static Unstack.Attrs Axis(@Cast(value="tensorflow::int64") long x)
@ByRef @Cast(value="tensorflow::OutputList*") public OutputVector output()
public Unstack output(OutputVector setter)
Copyright © 2022. All rights reserved.