@Operator public final class AssignVariableOp extends PrimitiveOp
Any ReadVariableOp with a control dependency on this op is guaranteed to return this value or a subsequent newer value of the variable.
operation| Modifier and Type | Method and Description |
|---|---|
static <T> AssignVariableOp |
create(Scope scope,
Operand<?> resource,
Operand<T> value)
Factory method to create a class to wrap a new AssignVariableOp operation to the graph.
|
equals, hashCode, toStringpublic static <T> AssignVariableOp create(Scope scope, Operand<?> resource, Operand<T> value)
scope - current graph scoperesource - handle to the resource in which to store the variable.value - the value to set the new tensor to use.Copyright © 2015–2019. All rights reserved.