Assigns a new value to a variable. Any ReadVariableOp with a control dependency on this op is guaranteed to return this value or a subsequent newer value of the variable. Arguments: resource: handle to the resource in which to store the variable. value: the value to set the new tensor to use. R
(scope *Scope, resource tf.Output, value tf.Output)
| 14175 | // |
| 14176 | // Returns the created operation. |
| 14177 | func AssignVariableOp(scope *Scope, resource tf.Output, value tf.Output) (o *tf.Operation) { |
| 14178 | if scope.Err() != nil { |
| 14179 | return |
| 14180 | } |
| 14181 | opspec := tf.OpSpec{ |
| 14182 | Type: "AssignVariableOp", |
| 14183 | Input: []tf.Input{ |
| 14184 | resource, value, |
| 14185 | }, |
| 14186 | } |
| 14187 | return scope.AddOperation(opspec) |
| 14188 | } |
| 14189 | |
| 14190 | // LoadTPUEmbeddingRMSPropParametersGradAccumDebugAttr is an optional argument to LoadTPUEmbeddingRMSPropParametersGradAccumDebug. |
| 14191 | type LoadTPUEmbeddingRMSPropParametersGradAccumDebugAttr func(optionalAttr) |