@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.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 |
tensorflow.Unstack.Attrs
Optional attribute setters for Unstack
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
Unstack(Pointer p)
Pointer cast constructor.
|
Unstack(tensorflow.Scope scope,
tensorflow.Input value,
long num) |
Unstack(tensorflow.Scope scope,
tensorflow.Input value,
long num,
tensorflow.Unstack.Attrs attrs) |
| Modifier and Type | Method and Description |
|---|---|
static tensorflow.Unstack.Attrs |
Axis(long x) |
tensorflow.Output |
get(long index) |
tensorflow.Operation |
operation() |
tensorflow.Unstack |
operation(tensorflow.Operation operation) |
tensorflow.OutputVector |
output() |
tensorflow.Unstack |
output(tensorflow.OutputVector output) |
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 Unstack(Pointer p)
Pointer.Pointer(Pointer).public Unstack(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input value, @Cast(value="tensorflow::int64") long num)
public Unstack(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input value, @Cast(value="tensorflow::int64") long num, @Const @ByRef tensorflow.Unstack.Attrs attrs)
@ByVal @Name(value="operator []") public tensorflow.Output get(@Cast(value="size_t") long index)
@ByVal public static tensorflow.Unstack.Attrs Axis(@Cast(value="tensorflow::int64") long x)
@ByRef public tensorflow.Operation operation()
public tensorflow.Unstack operation(tensorflow.Operation operation)
@ByRef @Cast(value="tensorflow::OutputList*") public tensorflow.OutputVector output()
public tensorflow.Unstack output(tensorflow.OutputVector output)
Copyright © 2019. All rights reserved.