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

Function OrderedMapUnstage

tensorflow/go/op/wrappers.go:5241–5267  ·  view source on GitHub ↗

Op removes and returns the values associated with the key from the underlying container. If the underlying container does not contain this key, the op will block until it does.

(scope *Scope, key tf.Output, indices tf.Output, dtypes []tf.DataType, optional ...OrderedMapUnstageAttr)

Source from the content-addressed store, hash-verified

5239// from the underlying container. If the underlying container
5240// does not contain this key, the op will block until it does.
5241func OrderedMapUnstage(scope *Scope, key tf.Output, indices tf.Output, dtypes []tf.DataType, optional ...OrderedMapUnstageAttr) (values []tf.Output) {
5242 if scope.Err() != nil {
5243 return
5244 }
5245 attrs := map[string]interface{}{"dtypes": dtypes}
5246 for _, a := range optional {
5247 a(attrs)
5248 }
5249 opspec := tf.OpSpec{
5250 Type: "OrderedMapUnstage",
5251 Input: []tf.Input{
5252 key, indices,
5253 },
5254 Attrs: attrs,
5255 }
5256 op := scope.AddOperation(opspec)
5257 if scope.Err() != nil {
5258 return
5259 }
5260 var idx int
5261 var err error
5262 if values, idx, err = makeOutputList(op, idx, "values"); err != nil {
5263 scope.UpdateErr("OrderedMapUnstage", err)
5264 return
5265 }
5266 return values
5267}
5268
5269// OrderedMapPeekAttr is an optional argument to OrderedMapPeek.
5270type OrderedMapPeekAttr func(optionalAttr)

Callers

nothing calls this directly

Calls 5

aClass · 0.85
makeOutputListFunction · 0.85
UpdateErrMethod · 0.80
ErrMethod · 0.45
AddOperationMethod · 0.45

Tested by

no test coverage detected