2016-10-25 21:43:06 +02:00
|
|
|
-- Hoogle documentation, generated by Haddock
|
|
|
|
-- See Hoogle, http://www.haskell.org/hoogle/
|
|
|
|
|
|
|
|
|
|
|
|
-- | Basic access to TensorFlow queues.
|
|
|
|
--
|
|
|
|
-- Please see README.md
|
|
|
|
@package tensorflow-queue
|
|
|
|
@version 0.1.0.0
|
|
|
|
|
|
|
|
|
|
|
|
-- | Queues in TensorFlow graph. Very limited support for now.
|
|
|
|
module TensorFlow.Queue
|
|
|
|
|
2017-04-08 16:14:47 +02:00
|
|
|
-- | A queue carrying tuples.
|
|
|
|
data Queue (as :: [*])
|
2016-10-25 21:43:06 +02:00
|
|
|
|
|
|
|
-- | Creates a new queue with the given capacity and shared name.
|
2017-04-08 16:14:47 +02:00
|
|
|
makeQueue :: (MonadBuild m, TensorTypes as) => Int64 -> ByteString -> m (Queue as)
|
2016-10-25 21:43:06 +02:00
|
|
|
|
|
|
|
-- | Adds the given values to the queue.
|
2017-04-08 16:14:47 +02:00
|
|
|
enqueue :: (MonadBuild m, TensorTypes as) => Queue as -> TensorList v as -> m ControlNode
|
2016-10-25 21:43:06 +02:00
|
|
|
|
|
|
|
-- | Retrieves the values from the queue.
|
2017-04-08 16:14:47 +02:00
|
|
|
dequeue :: (MonadBuild m, TensorTypes as) => Queue as -> m (TensorList Value as)
|