@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class Assign extends Pointer
Update 'ref' by assigning 'value' to it.
This operation outputs "ref" after the assignment is done.
This makes it easier to chain operations that need to use the reset value.
Arguments:
* scope: A Scope object
* ref: Should be from a Variable
node. May be uninitialized.
* value: The value to be assigned to the variable.
Optional attributes (see Attrs
):
* validate_shape: If true, the operation will validate that the shape
of 'value' matches the shape of the Tensor being assigned to. If false,
'ref' will take on the shape of 'value'.
* use_locking: If True, the assignment will be protected by a lock;
otherwise the behavior is undefined, but may exhibit less contention.
Returns:
* Output
: = Same as "ref". Returned as a convenience for operations that want
to use the new value after the variable has been reset.
Modifier and Type | Class and Description |
---|---|
static class |
Assign.Attrs
Optional attribute setters for Assign
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Assign(Pointer p)
Pointer cast constructor.
|
Assign(Scope scope,
Input ref,
Input value) |
Assign(Scope scope,
Input ref,
Input value,
Assign.Attrs attrs) |
Modifier and Type | Method and Description |
---|---|
Input |
asInput() |
Output |
asOutput() |
Node |
node() |
Operation |
operation() |
Assign |
operation(Operation setter) |
Output |
output_ref() |
Assign |
output_ref(Output setter) |
static Assign.Attrs |
UseLocking(boolean x) |
static Assign.Attrs |
ValidateShape(boolean 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 Assign(Pointer p)
Pointer(Pointer)
.public Node node()
@ByVal public static Assign.Attrs ValidateShape(@Cast(value="bool") boolean x)
@ByVal public static Assign.Attrs UseLocking(@Cast(value="bool") boolean x)
Copyright © 2022. All rights reserved.