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

Function AssignVariableOp

tensorflow/go/op/wrappers.go:14177–14188  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

14175//
14176// Returns the created operation.
14177func 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.
14191type LoadTPUEmbeddingRMSPropParametersGradAccumDebugAttr func(optionalAttr)

Calls 2

ErrMethod · 0.45
AddOperationMethod · 0.45

Tested by 2

TestControlDependenciesFunction · 0.56