Adds a value to the current value of a variable. Any ReadVariableOp with a control dependency on this op is guaranteed to see the incremented value or a subsequent newer one. Arguments: resource: handle to the resource in which to store the variable. value: the value by which the variable will b
(scope *Scope, resource tf.Output, value tf.Output)
| 31367 | // |
| 31368 | // Returns the created operation. |
| 31369 | func AssignAddVariableOp(scope *Scope, resource tf.Output, value tf.Output) (o *tf.Operation) { |
| 31370 | if scope.Err() != nil { |
| 31371 | return |
| 31372 | } |
| 31373 | opspec := tf.OpSpec{ |
| 31374 | Type: "AssignAddVariableOp", |
| 31375 | Input: []tf.Input{ |
| 31376 | resource, value, |
| 31377 | }, |
| 31378 | } |
| 31379 | return scope.AddOperation(opspec) |
| 31380 | } |
| 31381 | |
| 31382 | // Returns the name of the device on which `resource` has been placed. |
| 31383 | func ExperimentalIteratorGetDevice(scope *Scope, resource tf.Output) (device tf.Output) { |