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

Function OrderedMapUnstageNoKey

tensorflow/go/op/wrappers.go:5144–5171  ·  view source on GitHub ↗

Op removes and returns the (key, value) element with the smallest key from the underlying container. If the underlying container does not contain elements, the op will block until it does.

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

Source from the content-addressed store, hash-verified

5142// key from the underlying container. If the underlying container
5143// does not contain elements, the op will block until it does.
5144func OrderedMapUnstageNoKey(scope *Scope, indices tf.Output, dtypes []tf.DataType, optional ...OrderedMapUnstageNoKeyAttr) (key tf.Output, values []tf.Output) {
5145 if scope.Err() != nil {
5146 return
5147 }
5148 attrs := map[string]interface{}{"dtypes": dtypes}
5149 for _, a := range optional {
5150 a(attrs)
5151 }
5152 opspec := tf.OpSpec{
5153 Type: "OrderedMapUnstageNoKey",
5154 Input: []tf.Input{
5155 indices,
5156 },
5157 Attrs: attrs,
5158 }
5159 op := scope.AddOperation(opspec)
5160 if scope.Err() != nil {
5161 return
5162 }
5163 var idx int
5164 var err error
5165 key = op.Output(idx)
5166 if values, idx, err = makeOutputList(op, idx, "values"); err != nil {
5167 scope.UpdateErr("OrderedMapUnstageNoKey", err)
5168 return
5169 }
5170 return key, values
5171}
5172
5173// Concatenates tensors along one dimension.
5174//

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected