Dequeues `n` tuples of one or more tensors from the given queue. If the queue is closed and there are fewer than `n` elements, then an OutOfRange error is returned. This operation concatenates queue-element component tensors along the 0th dimension to make a single component tensor. All of the co
(scope *Scope, handle tf.Output, n tf.Output, component_types []tf.DataType, optional ...QueueDequeueManyV2Attr)
| 7183 | // |
| 7184 | // Returns One or more tensors that were dequeued as a tuple. |
| 7185 | func QueueDequeueManyV2(scope *Scope, handle tf.Output, n tf.Output, component_types []tf.DataType, optional ...QueueDequeueManyV2Attr) (components []tf.Output) { |
| 7186 | if scope.Err() != nil { |
| 7187 | return |
| 7188 | } |
| 7189 | attrs := map[string]interface{}{"component_types": component_types} |
| 7190 | for _, a := range optional { |
| 7191 | a(attrs) |
| 7192 | } |
| 7193 | opspec := tf.OpSpec{ |
| 7194 | Type: "QueueDequeueManyV2", |
| 7195 | Input: []tf.Input{ |
| 7196 | handle, n, |
| 7197 | }, |
| 7198 | Attrs: attrs, |
| 7199 | } |
| 7200 | op := scope.AddOperation(opspec) |
| 7201 | if scope.Err() != nil { |
| 7202 | return |
| 7203 | } |
| 7204 | var idx int |
| 7205 | var err error |
| 7206 | if components, idx, err = makeOutputList(op, idx, "components"); err != nil { |
| 7207 | scope.UpdateErr("QueueDequeueManyV2", err) |
| 7208 | return |
| 7209 | } |
| 7210 | return components |
| 7211 | } |
| 7212 | |
| 7213 | // QueueDequeueV2Attr is an optional argument to QueueDequeueV2. |
| 7214 | type QueueDequeueV2Attr func(optionalAttr) |
nothing calls this directly
no test coverage detected