tensorflow-ops-0.2.0.0: Friendly layer around TensorFlow bindings.

Safe HaskellNone
LanguageHaskell2010

TensorFlow.Queue

Description

Queues in TensorFlow graph. Very limited support for now.

Synopsis

Documentation

data Queue (as :: [*]) Source #

A queue carrying tuples.

makeQueue Source #

Arguments

:: (MonadBuild m, TensorTypes as) 
=> Int64

The upper bound on the number of elements in this queue. Negative numbers mean no limit.

-> ByteString

If non-empty, this queue will be shared under the given name across multiple sessions.

-> m (Queue as) 

Creates a new queue with the given capacity and shared name.

enqueue :: forall as v m. (MonadBuild m, TensorTypes as) => Queue as -> TensorList v as -> m ControlNode Source #

Adds the given values to the queue.

dequeue Source #

Arguments

:: (MonadBuild m, TensorTypes as) 
=> Queue as 
-> m (TensorList Value as)

Dequeued tensors. They are coupled in a sense that values appear together, even if they are not consumed together.

Retrieves the values from the queue.