Dequeues `n` tuples of one or more tensors from the given queue. This operation is not supported by all queues. If a queue does not support DequeueUpTo, then an Unimplemented error is returned. If the queue is closed and there are more than 0 but less than `n` elements remaining, then instead of
(scope *Scope, handle tf.Output, n tf.Output, component_types []tf.DataType, optional ...QueueDequeueUpToV2Attr)
| 7118 | // |
| 7119 | // Returns One or more tensors that were dequeued as a tuple. |
| 7120 | func QueueDequeueUpToV2(scope *Scope, handle tf.Output, n tf.Output, component_types []tf.DataType, optional ...QueueDequeueUpToV2Attr) (components []tf.Output) { |
| 7121 | if scope.Err() != nil { |
| 7122 | return |
| 7123 | } |
| 7124 | attrs := map[string]interface{}{"component_types": component_types} |
| 7125 | for _, a := range optional { |
| 7126 | a(attrs) |
| 7127 | } |
| 7128 | opspec := tf.OpSpec{ |
| 7129 | Type: "QueueDequeueUpToV2", |
| 7130 | Input: []tf.Input{ |
| 7131 | handle, n, |
| 7132 | }, |
| 7133 | Attrs: attrs, |
| 7134 | } |
| 7135 | op := scope.AddOperation(opspec) |
| 7136 | if scope.Err() != nil { |
| 7137 | return |
| 7138 | } |
| 7139 | var idx int |
| 7140 | var err error |
| 7141 | if components, idx, err = makeOutputList(op, idx, "components"); err != nil { |
| 7142 | scope.UpdateErr("QueueDequeueUpToV2", err) |
| 7143 | return |
| 7144 | } |
| 7145 | return components |
| 7146 | } |
| 7147 | |
| 7148 | // QueueDequeueManyV2Attr is an optional argument to QueueDequeueManyV2. |
| 7149 | type QueueDequeueManyV2Attr func(optionalAttr) |
nothing calls this directly
no test coverage detected