@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class Variable extends Pointer
Attrs
):
* container: If non-empty, this variable is placed in the given container.
Otherwise, a default container is used.
* shared_name: If non-empty, this variable is named in the given bucket
with this shared_name. Otherwise, the node name is used instead.
Returns:
* Output
: A reference to the variable tensor.Modifier and Type | Class and Description |
---|---|
static class |
Variable.Attrs
Optional attribute setters for Variable
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Variable(Pointer p)
Pointer cast constructor.
|
Variable(Scope scope,
PartialTensorShape shape,
int dtype) |
Variable(Scope scope,
PartialTensorShape shape,
int dtype,
Variable.Attrs attrs) |
Modifier and Type | Method and Description |
---|---|
Input |
asInput() |
Output |
asOutput() |
static Variable.Attrs |
Container(BytePointer x) |
static Variable.Attrs |
Container(String x) |
Node |
node() |
Operation |
operation() |
Variable |
operation(Operation setter) |
Output |
ref() |
Variable |
ref(Output setter) |
static Variable.Attrs |
SharedName(BytePointer x) |
static Variable.Attrs |
SharedName(String x) |
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 Variable(Pointer p)
Pointer(Pointer)
.public Variable(@Const @ByRef Scope scope, @ByVal PartialTensorShape shape, @Cast(value="tensorflow::DataType") int dtype)
public Variable(@Const @ByRef Scope scope, @ByVal PartialTensorShape shape, @Cast(value="tensorflow::DataType") int dtype, @Const @ByRef Variable.Attrs attrs)
public Node node()
@ByVal public static Variable.Attrs Container(@tensorflow.StringPiece BytePointer x)
@ByVal public static Variable.Attrs Container(@tensorflow.StringPiece String x)
@ByVal public static Variable.Attrs SharedName(@tensorflow.StringPiece BytePointer x)
@ByVal public static Variable.Attrs SharedName(@tensorflow.StringPiece String x)
Copyright © 2022. All rights reserved.