@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.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 |
tensorflow.Assign.Attrs
Optional attribute setters for Assign
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
Assign(Pointer p)
Pointer cast constructor.
|
Assign(tensorflow.Scope scope,
tensorflow.Input ref,
tensorflow.Input value) |
Assign(tensorflow.Scope scope,
tensorflow.Input ref,
tensorflow.Input value,
tensorflow.Assign.Attrs attrs) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Input |
asInput() |
tensorflow.Output |
asOutput() |
tensorflow.Node |
node() |
tensorflow.Operation |
operation() |
tensorflow.Assign |
operation(tensorflow.Operation operation) |
tensorflow.Output |
output_ref() |
tensorflow.Assign |
output_ref(tensorflow.Output output_ref) |
static tensorflow.Assign.Attrs |
UseLocking(boolean x) |
static tensorflow.Assign.Attrs |
ValidateShape(boolean 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 Assign(Pointer p)
Pointer.Pointer(Pointer).public Assign(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input ref, @ByVal tensorflow.Input value)
public Assign(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input ref, @ByVal tensorflow.Input value, @Const @ByRef tensorflow.Assign.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.Assign.Attrs ValidateShape(@Cast(value="bool") boolean x)
@ByVal public static tensorflow.Assign.Attrs UseLocking(@Cast(value="bool") boolean x)
@ByRef public tensorflow.Operation operation()
public tensorflow.Assign operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output output_ref()
public tensorflow.Assign output_ref(tensorflow.Output output_ref)
Copyright © 2019. All rights reserved.