<!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.Nodes</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-Nodes.html");};
</script></head><body><divid="package-header"><ulclass="links"id="page-menu"><li><ahref="src/TensorFlow-Nodes.html">Source</a></li><li><ahref="index.html">Contents</a></li><li><ahref="doc-index.html">Index</a></li></ul><pclass="caption">tensorflow-0.1.0.0: TensorFlow bindings.</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.Nodes</p></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">class</span><ahref="#t:Nodes">Nodes</a> t <spanclass="keyword">where</span><ulclass="subs"><li><ahref="#v:getNodes">getNodes</a> :: t -><ahref="TensorFlow-Build.html#t:Build">Build</a> (<ahref="../containers-0.5.6.2/Data-Set.html#t:Set">Set</a><ahref="TensorFlow-Output.html#t:NodeName">NodeName</a>)</li></ul></li><liclass="src short"><spanclass="keyword">class</span><ahref="TensorFlow-Nodes.html#t:Nodes">Nodes</a> t =><ahref="#t:Fetchable">Fetchable</a> t a <spanclass="keyword">where</span><ulclass="subs"><li><ahref="#v:getFetch">getFetch</a> :: t -><ahref="TensorFlow-Build.html#t:Build">Build</a> (<ahref="TensorFlow-Nodes.html#t:Fetch">Fetch</a> a)</li></ul></li><liclass="src short"><spanclass="keyword">data</span><ahref="#t:Fetch">Fetch</a> a = <ahref="#v:Fetch">Fetch</a> {<ulclass="subs"><li><ahref="#v:fetches">fetches</a> :: <ahref="../containers-0.5.6.2/Data-Set.html#t:Set">Set</a><ahref="../text-1.2.2.1/Data-Text.html#t:Text">Text</a></li><li><ahref="#v:fetchRestore">fetchRestore</a> :: <ahref="../containers-0.5.6.2/Data-Map-Lazy.html#t:Map">Map</a><ahref="../text-1.2.2.1/Data-Text.html#t:Text">Text</a><ahref="TensorFlow-Internal-FFI.html#t:TensorData">TensorData</a> -> a</li></ul>}</li><liclass="src short"><ahref="#v:nodesUnion">nodesUnion</a> :: (<ahref="../base-4.8.2.0/Data-Monoid.html#t:Monoid">Monoid</a> b, <ahref="../base-4.8.2.0/Data-Traversable.html#t:Traversable">Traversable</a> t, <ahref="../base-4.8.2.0/Control-Applicative.html#t:Applicative">Applicative</a> f) => t (f b) -> f b</li><liclass="src short"><ahref="#v:fetchTensorList">fetchTensorList</a> :: <ahref="TensorFlow-Types.html#t:TensorType">TensorType</a> a =><ahref="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -><ahref="TensorFlow-Build.html#t:Build">Build</a> (<ahref="TensorFlow-Nodes.html#t:Fetch">Fetch</a> (<ahref="TensorFlow-Types.html#t:Shape">Shape</a>, [a]))</li><liclass="src short"><ahref="#v:fetchTensorVector">fetchTensorVector</a> :: <spanclass="keyword">forall</span> a v. <ahref="TensorFlow-Types.html#t:TensorType">TensorType</a> a =><ahref="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -><ahref="TensorFlow-Build.html#t:Build">Build</a> (<ahref="TensorFlow-Nodes.html#t:Fetch">Fetch</a> (<ahref="TensorFlow-Types.html#t:Shape">Shape</a>, <ahref="../vector-0.11.0.0/Data-Vector.html#t:Vector">Vector</a> a))</li><liclass="src short"><spanclass="keyword">newtype</span><ahref="#t:Scalar">Scalar</a> a = <ahref="#v:Scalar">Scalar</a> {<ulclass="subs"><li><ahref="#v:unScalar">unScalar</a> :: a</li></ul>}</li></ul></div><divid="interface"><h1>Documentation</h1><divclass="top"><pclass="src"><spanclass="keyword">class</span><aname="t:Nodes"class="def">Nodes</a> t <spanclass="keyword">where</span><ahref="src/TensorFlow-Nodes.html#Nodes"class="link">Source</a></p><divclass="doc"><p>Types that contain ops which can be run.</p></div><divclass="subs methods"><pclass="caption">Methods</p><pclass="src"><aname="v:getNodes"class="def">getNodes</a> :: t -><ahref="TensorFlow-Build.html#t:Build">Build</a> (<ahref="../containers-0.5.6.2/Data-Set.html#t:Set">Set</a><ahref="TensorFlow-Output.html#t:NodeName">NodeName</a>) <ahref="src/TensorFlow-Nodes.html#getNodes"class="link">Source</a></p></div><divclass="subs instances"><pid="co
fetched into.</p><p>Includes collections of tensors (e.g. tuples).</p></div><divclass="subs methods"><pclass="caption">Methods</p><pclass="src"><aname="v:getFetch"class="def">getFetch</a> :: t -><ahref="TensorFlow-Build.html#t:Build">Build</a> (<ahref="TensorFlow-Nodes.html#t:Fetch">Fetch</a> a) <ahref="src/TensorFlow-Nodes.html#getFetch"class="link">Source</a></p></div><divclass="subs instances"><pid="control.i:Fetchable"class="caption collapser"onclick="toggleSection('i:Fetchable')">Instances</p><divid="section.i:Fetchable"class="show"><table><tr><tdclass="src clearfix"><spanclass="inst-left">(~) * a () =><ahref="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a><ahref="TensorFlow-Output.html#t:ControlNode">ControlNode</a> a</span><ahref="src/TensorFlow-Nodes.html#line-98"class="link">Source</a></td><tdclass="doc empty"> </td></tr><tr><tdclass="src clearfix"><spanclass="inst-left"><ahref="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> t a =><ahref="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> [t] [a]</span><ahref="src/TensorFlow-Nodes.html#line-88"class="link">Source</a></td><tdclass="doc empty"> </td></tr><tr><tdclass="src clearfix"><spanclass="inst-left">(<ahref="TensorFlow-Types.html#t:TensorType">TensorType</a> a, (~) * a a') =><ahref="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> (<ahref="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a) (<ahref="TensorFlow-Nodes.html#t:Scalar">Scalar</a> a')</span><ahref="src/TensorFlow-Nodes.html#line-135"class="link">Source</a></td><tdclass="doc empty"> </td></tr><tr><tdclass="src clearfix"><spanclass="inst-left">(<ahref="TensorFlow-Types.html#t:TensorType">TensorType</a> a, (~) * a a') =><ahref="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> (<ahref="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a) (<ahref="../vector-0.11.0.0/Data-Vector.html#t:Vector">Vector</a> a')</span><ahref="src/TensorFlow-Nodes.html#line-128"class="link">Source</a></td><tdclass="doc empty"> </td></tr><tr><tdclass="src clearfix"><spanclass="inst-left">(<ahref="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> t1 a1, <ahref="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> t2 a2) =><ahref="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> (t1, t2) (a1, a2)</span><ahref="src/TensorFlow-Nodes.html#line-77"class="link">Source</a></td><tdclass="doc empty"> </td></tr><tr><tdclass="src clearfix"><spanclass="inst-left">(<ahref="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> t1 a1, <ahref="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> t2 a2, <ahref="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> t3 a3) =><ahref="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> (t1, t2, t3) (a1, a2, a3)</span><ahref="src/TensorFlow-Nodes.html#line-80"class="link">Source</a></td><tdclass="doc empty"> </td></tr></table></div></div></div><divclass="top"><pclass="src"><spanclass="keyword">data</span><aname="t:Fetch"class="def">Fetch</a> a <ahref="src/TensorFlow-Nodes.html#Fetch"class="link">Source</a></p><divclass="doc"><p>Fetch action. Keeps track of what needs to be fetched and how to decode
the fetched data.</p></div><divclass="subs constructors"><pclass="caption">Constructors</p><table><tr><tdclass="src"><aname="v:Fetch"class="def">Fetch</a></td><tdclass="doc empty"> </td></tr><tr><tdcolspan="2"><divclass="subs fields"><pclass="caption">Fields</p><dl><dtclass="src"><aname="v:fetches"class="def">fetches</a> :: <ahref="../containers-0.5.6.2/Data-Set.html#t:Set">Set</a><ahref="../text-1.2.2.1/Data-Text.html#t:Text">Text</a></dt><ddclass="doc"><p>Nodes to fetch</p></dd><dtclass="src"><aname="v:fetchRestore"class="def">fetchRestore</a> :: <ahref="../containers-0.5.6.2/Data-Map-Lazy.html#t:Map">Map</a><ahref="../text-1.2.2.1/Data-Text.html#t:Text">Text</a><ahref="TensorFlow-Internal-FFI.html#t:TensorData">TensorData</a> -> a</dt><ddclass="doc"><p>Function to create an <code>a</code> from the fetched data.</p></dd></dl><divclass="clear"></div></div></td></tr></table></div><divclass="subs instances"><pid="control.i:Fetch"class="caption collapser"onclick="toggleSection('i:Fetch')">Instances</p><divid="section.i:Fetch"class="show"><table><tr><tdclass="src clearfix"><spanclass="inst-left"><ahref="../base-4.8.2.0/Data-Functor.html#t:Functor">Functor</a><ahref="TensorFlow-Nodes.html#t:Fetch">Fetch</a></span><ahref="src/TensorFlow-Nodes.html#line-60"class="link">Source</a></td><tdclass="doc empty"> </td></tr><tr><tdclass="src clearfix"><spanclass="inst-left"><ahref="../base-4.8.2.0/Control-Applicative.html#t:Applicative">Applicative</a><ahref="TensorFlow-Nodes.html#t:Fetch">Fetch</a></span><ahref="src/TensorFlow-Nodes.html#line-63"class="link">Source</a></td><tdclass="doc empty"> </td></tr></table></div></div></div><divclass="top"><pclass="src"><aname="v:nodesUnion"class="def">nodesUnion</a> :: (<ahref="../base-4.8.2.0/Data-Monoid.html#t:Monoid">Monoid</a> b, <ahref="../base-4.8.2.0/Data-Traversable.html#t:Traversable">Traversable</a> t, <ahref="../base-4.8.2.0/Control-Applicative.html#t:Applicative">Applicative</a> f) => t (f b) -> f b <ahref="src/TensorFlow-Nodes.html#nodesUnion"class="link">Source</a></p></div><divclass="top"><pclass="src"><aname="v:fetchTensorList"class="def">fetchTensorList</a> :: <ahref="TensorFlow-Types.html#t:TensorType">TensorType</a> a =><ahref="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -><ahref="TensorFlow-Build.html#t:Build">Build</a> (<ahref="TensorFlow-Nodes.html#t:Fetch">Fetch</a> (<ahref="TensorFlow-Types.html#t:Shape">Shape</a>, [a])) <ahref="src/TensorFlow-Nodes.html#fetchTensorList"class="link">Source</a></p></div><divclass="top"><pclass="src"><aname="v:fetchTensorVector"class="def">fetchTensorVector</a> :: <spanclass="keyword">forall</span> a v. <ahref="TensorFlow-Types.html#t:TensorType">TensorType</a> a =><ahref="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -><ahref="TensorFlow-Build.html#t:Build">Build</a> (<ahref="TensorFlow-Nodes.html#t:Fetch">Fetch</a> (<ahref="TensorFlow-Types.html#t:Shape">Shape</a>, <ahref="../vector-0.11.0.0/Data-Vector.html#t:Vector">Vector</a> a)) <ahref="src/TensorFlow-Nodes.html#fetchTensorVector"class="link">Source</a></p></div><divclass="top"><pclass="src"><spanclass="keyword">newtype</span><aname="t:Scalar"class="def">Scalar</a> a <ahref="src/TensorFlow-Nodes.html#Scalar"class="link">Source</a></p><divclass="subs constructors"><pclass="caption">Constructors</p><table><tr><tdclass="src"><aname="v:Scalar"class="def">Scalar</a></td><tdclass="doc empty"> </td></tr><tr><tdcolspan="2"><divclass="subs fields"><pclass="caption">Fields</p><dl><dtclass="src"><aname="v:unScalar"class="def">unScalar</a> :: a</dt><ddclass="doc empty"> </dd></dl><divclass="clear"></div></div></td></tr></table></div><divclass="subs instances"><pid="control.i:Scalar"class="caption collapser"onclick="toggleSection('i:Scalar')">Instances</p><divid="section.i:Scalar"class="show"><table><tr><tdclass="src clearfix"><spanclass="inst-left"><ahref="../base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> a =><ahref="../base-4.8.