@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 wrapping a new AssignVariableOp operation.
|
equals, hashCode, op, toString
public static <T> AssignVariableOp create(Scope scope, Operand<?> resource, Operand<T> value)
scope
- current scoperesource
- handle to the resource in which to store the variable.value
- the value to set the new tensor to use.Copyright © 2022. All rights reserved.