1
0
Fork 0
mirror of https://github.com/tensorflow/haskell.git synced 2024-12-26 03:29:45 +01:00
tensorflow-haskell/docs/haddock/tensorflow-queue-0.1.0.0/tensorflow-queue.txt

27 lines
875 B
Text
Raw Normal View History

-- 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
-- | A queue carrying tuples. The underlying structure is more versatile
-- and can be made to support arbitrary tuples.
data Queue2 a b
-- | Creates a new queue with the given capacity and shared name.
makeQueue2 :: (TensorType a, TensorType b) => Int64 -> ByteString -> Build (Queue2 a b)
-- | Adds the given values to the queue.
enqueue :: (TensorType a, TensorType b) => Queue2 a b -> Tensor v1 a -> Tensor v2 b -> Build ControlNode
-- | Retrieves the values from the queue.
dequeue :: (TensorType a, TensorType b) => Queue2 a b -> Build (Tensor Ref a, Tensor Ref b)