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

Function MapUnstage

tensorflow/go/op/wrappers.go:5589–5615  ·  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 ...MapUnstageAttr)

Source from the content-addressed store, hash-verified

5587// from the underlying container. If the underlying container
5588// does not contain this key, the op will block until it does.
5589func MapUnstage(scope *Scope, key tf.Output, indices tf.Output, dtypes []tf.DataType, optional ...MapUnstageAttr) (values []tf.Output) {
5590 if scope.Err() != nil {
5591 return
5592 }
5593 attrs := map[string]interface{}{"dtypes": dtypes}
5594 for _, a := range optional {
5595 a(attrs)
5596 }
5597 opspec := tf.OpSpec{
5598 Type: "MapUnstage",
5599 Input: []tf.Input{
5600 key, indices,
5601 },
5602 Attrs: attrs,
5603 }
5604 op := scope.AddOperation(opspec)
5605 if scope.Err() != nil {
5606 return
5607 }
5608 var idx int
5609 var err error
5610 if values, idx, err = makeOutputList(op, idx, "values"); err != nil {
5611 scope.UpdateErr("MapUnstage", err)
5612 return
5613 }
5614 return values
5615}
5616
5617// LoadAndRemapMatrixAttr is an optional argument to LoadAndRemapMatrix.
5618type LoadAndRemapMatrixAttr 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