MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / AssignAddVariableOp

Function AssignAddVariableOp

tensorflow/go/op/wrappers.go:31369–31380  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

31367//
31368// Returns the created operation.
31369func 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.
31383func ExperimentalIteratorGetDevice(scope *Scope, resource tf.Output) (device tf.Output) {

Callers 1

TestControlDependenciesFunction · 0.70

Calls 2

ErrMethod · 0.45
AddOperationMethod · 0.45

Tested by 1

TestControlDependenciesFunction · 0.56