@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.TensorArray extends Pointer
Attrs):
* element_shape: The expected shape of an element, if known. Used to
validate the shapes of TensorArray elements. If this shape is not
fully specified, gathering zero-size TensorArrays is an error.
* dynamic_size: A boolean that determines whether writes to the TensorArray
are allowed to grow the size. By default, this is not allowed.
* clear_after_read: If true (default), Tensors in the TensorArray are cleared
after being read. This disables multiple read semantics but allows early
release of memory.
* identical_element_shapes: If true (default is false), then all
elements in the TensorArray will be expected to have have identical shapes.
This allows certain behaviors, like dynamically checking for
consistent shapes on write, and being able to fill in properly
shaped zero tensors on stack -- even if the element_shape attribute
is not fully defined.
* tensor_array_name: Overrides the name used for the temporary tensor_array
resource. Default value is the name of the 'TensorArray' op (which
is guaranteed unique).
Returns:
* Output handle: The handle to the TensorArray.
* Output flow: A scalar used to control gradient flow.| Modifier and Type | Class and Description |
|---|---|
static class |
tensorflow.TensorArray.Attrs
Optional attribute setters for TensorArray
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
TensorArray(Pointer p)
Pointer cast constructor.
|
TensorArray(tensorflow.Scope scope,
tensorflow.Input size,
int dtype) |
TensorArray(tensorflow.Scope scope,
tensorflow.Input size,
int dtype,
tensorflow.TensorArray.Attrs attrs) |
| Modifier and Type | Method and Description |
|---|---|
static tensorflow.TensorArray.Attrs |
ClearAfterRead(boolean x) |
static tensorflow.TensorArray.Attrs |
DynamicSize(boolean x) |
static tensorflow.TensorArray.Attrs |
ElementShape(tensorflow.PartialTensorShape x) |
tensorflow.Output |
flow() |
tensorflow.TensorArray |
flow(tensorflow.Output flow) |
tensorflow.Output |
handle() |
tensorflow.TensorArray |
handle(tensorflow.Output handle) |
static tensorflow.TensorArray.Attrs |
IdenticalElementShapes(boolean x) |
tensorflow.Operation |
operation() |
tensorflow.TensorArray |
operation(tensorflow.Operation operation) |
static tensorflow.TensorArray.Attrs |
TensorArrayName(BytePointer x) |
static tensorflow.TensorArray.Attrs |
TensorArrayName(String 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 TensorArray(Pointer p)
Pointer.Pointer(Pointer).public TensorArray(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input size, @Cast(value="tensorflow::DataType") int dtype)
public TensorArray(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input size, @Cast(value="tensorflow::DataType") int dtype, @Const @ByRef tensorflow.TensorArray.Attrs attrs)
@ByVal public static tensorflow.TensorArray.Attrs ElementShape(@ByVal tensorflow.PartialTensorShape x)
@ByVal public static tensorflow.TensorArray.Attrs DynamicSize(@Cast(value="bool") boolean x)
@ByVal public static tensorflow.TensorArray.Attrs ClearAfterRead(@Cast(value="bool") boolean x)
@ByVal public static tensorflow.TensorArray.Attrs IdenticalElementShapes(@Cast(value="bool") boolean x)
@ByVal public static tensorflow.TensorArray.Attrs TensorArrayName(@tensorflow.StringPiece BytePointer x)
@ByVal public static tensorflow.TensorArray.Attrs TensorArrayName(@tensorflow.StringPiece String x)
@ByRef public tensorflow.Operation operation()
public tensorflow.TensorArray operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output handle()
public tensorflow.TensorArray handle(tensorflow.Output handle)
@ByRef public tensorflow.Output flow()
public tensorflow.TensorArray flow(tensorflow.Output flow)
Copyright © 2019. All rights reserved.