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)
| 5587 | // from the underlying container. If the underlying container |
| 5588 | // does not contain this key, the op will block until it does. |
| 5589 | func 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. |
| 5618 | type LoadAndRemapMatrixAttr func(optionalAttr) |
nothing calls this directly
no test coverage detected