@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.Stack extends Pointer
N rank-R tensors into one rank-(R+1) tensor.
Packs the N tensors in values into a tensor with rank one higher than each
tensor in values, by packing them along the axis dimension.
Given a list of tensors of shape (A, B, C);
if axis == 0 then the output tensor will have the shape (N, A, B, C).
if axis == 1 then the output tensor will have the shape (A, N, B, C).
Etc.
For example:
# 'x' is [1, 4]
# 'y' is [2, 5]
# 'z' is [3, 6]
pack([x, y, z]) => [[1, 4], [2, 5], [3, 6]] # Pack along first dim.
pack([x, y, z], axis=1) => [[1, 2, 3], [4, 5, 6]]
This is the opposite of unpack.
Arguments:
* scope: A Scope object
* values: Must be of same shape and type.
Optional attributes (see Attrs):
* axis: Dimension along which to pack. Negative values wrap around, so the
valid range is [-(R+1), R+1).
Returns:
* Output: The packed tensor.| Modifier and Type | Class and Description |
|---|---|
static class |
tensorflow.Stack.Attrs
Optional attribute setters for Stack
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
Stack(Pointer p)
Pointer cast constructor.
|
Stack(tensorflow.Scope scope,
tensorflow.InputList values) |
Stack(tensorflow.Scope scope,
tensorflow.InputList values,
tensorflow.Stack.Attrs attrs) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Input |
asInput() |
tensorflow.Output |
asOutput() |
static tensorflow.Stack.Attrs |
Axis(long x) |
tensorflow.Node |
node() |
tensorflow.Operation |
operation() |
tensorflow.Stack |
operation(tensorflow.Operation operation) |
tensorflow.Output |
output() |
tensorflow.Stack |
output(tensorflow.Output 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 Stack(Pointer p)
Pointer.Pointer(Pointer).public Stack(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.InputList values)
public Stack(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.InputList values, @Const @ByRef tensorflow.Stack.Attrs attrs)
@ByVal @Name(value="operator tensorflow::Output") public tensorflow.Output asOutput()
@ByVal @Name(value="operator tensorflow::Input") public tensorflow.Input asInput()
public tensorflow.Node node()
@ByVal public static tensorflow.Stack.Attrs Axis(@Cast(value="tensorflow::int64") long x)
@ByRef public tensorflow.Operation operation()
public tensorflow.Stack operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output output()
public tensorflow.Stack output(tensorflow.Output output)
Copyright © 2019. All rights reserved.