<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type"content="text/html; charset=UTF-8"/><title>TensorFlow.Queue</title><linkhref="ocean.css"rel="stylesheet"type="text/css"title="Ocean"/><scriptsrc="haddock-util.js"type="text/javascript"></script><scripttype="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_TensorFlow-Queue.html");};
</script></head><body><divid="package-header"><ulclass="links"id="page-menu"><li><ahref="index.html">Contents</a></li><li><ahref="doc-index.html">Index</a></li></ul><pclass="caption">tensorflow-queue-0.1.0.0: Basic access to TensorFlow queues.</p></div><divid="content"><divid="module-header"><tableclass="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><pclass="caption">TensorFlow.Queue</p></div><divid="description"><pclass="caption">Description</p><divclass="doc"><p>Queues in TensorFlow graph. Very limited support for now.</p></div></div><divid="synopsis"><pid="control.syn"class="caption expander"onclick="toggleSection('syn')">Synopsis</p><ulid="section.syn"class="hide"onclick="toggleSection('syn')"><liclass="src short"><spanclass="keyword">data</span><ahref="#t:Queue2">Queue2</a> a b</li><liclass="src short"><ahref="#v:makeQueue2">makeQueue2</a> :: <spanclass="keyword">forall</span> a b. (<ahref="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a, <ahref="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> b) =><ahref="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> -><ahref="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -><ahref="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> (<ahref="TensorFlow-Queue.html#t:Queue2">Queue2</a> a b)</li><liclass="src short"><ahref="#v:enqueue">enqueue</a> :: <spanclass="keyword">forall</span> a b v1 v2. (<ahref="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a, <ahref="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> b) =><ahref="TensorFlow-Queue.html#t:Queue2">Queue2</a> a b -><ahref="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v1 a -><ahref="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v2 b -><ahref="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a><ahref="../tensorflow-0.1.0.0/TensorFlow-Output.html#t:ControlNode">ControlNode</a></li><liclass="src short"><ahref="#v:dequeue">dequeue</a> :: <spanclass="keyword">forall</span> a b. (<ahref="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a, <ahref="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> b) =><ahref="TensorFlow-Queue.html#t:Queue2">Queue2</a> a b -><ahref="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> (<ahref="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Ref">Ref</a> a, <ahref="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Ref">Ref</a> b)</li></ul></div><divid="interface"><h1>Documentation</h1><divclass="top"><pclass="src"><spanclass="keyword">data</span><aname="t:Queue2"class="def">Queue2</a> a b</p><divclass="doc"><p>A queue carrying tuples. The underlying structure is more
versatile and can be made to support arbitrary tuples.</p></div></div><divclass="top"><pclass="src"><aname="v:makeQueue2"class="def">makeQueue2</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: (<ahref="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a, <ahref="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> b)</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a></td><tdclass="doc"><p>The upper bound on the number of elements in
this queue. Negative numbers mean no limit.</p></td></tr><tr><tdclass="src">-><ahref="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><tdclass="doc"><p>If non-empty, this queue will be shared
under the given name across multiple sessions.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> (<ahref="TensorFlow-Queue.html#t:Queue2">Queue2</a> a b)</td><tdclass="doc empty"> </td></tr></table></div><divclass="doc"><p>Creates a new queue with the given capacity and shared name.</p></div></div><divclass="top"><pclass="src"><aname="v:enqueue"class="def">enqueue</a> :: <spanclass="keyword">forall</span> a b v1 v2. (<ahref="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a, <ahref="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> b) =><ahref="TensorFlow-Queue.html#t:Queue2">Queue2</a> a b -><ahref="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v1 a -><ahref="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v2 b -><ahref="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a><ahref="../tensorflow-0.1.0.0/TensorFlow-Output.html#t:ControlNode">ControlNode</a></p><divclass="doc"><p>Adds the given values to the queue.</p></div></div><divclass="top"><pclass="src"><aname="v:dequeue"class="def">dequeue</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: (<ahref="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a, <ahref="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> b)</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="TensorFlow-Queue.html#t:Queue2">Queue2</a> a b</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> (<ahref="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Ref">Ref</a> a, <ahref="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Ref">Ref</a> b)</td><tdclass="doc"><p>Dequeued tensors. They are paired in a sense
not consumed together.</p></td></tr></table></div><divclass="doc"><p>Retrieves the values from the queue.</p></div></div></div></div><divid="footer"><p>Produced by <ahref="http://www.haskell.org/haddock/">Haddock</a> version 2.16.1</p></div></body></html>