1
0
Fork 0
mirror of https://github.com/tensorflow/haskell.git synced 2024-11-17 16:39:43 +01:00
tensorflow-haskell/docs/haddock/tensorflow-0.1.0.0/TensorFlow-Nodes.html
2016-11-23 10:55:35 -08:00

6 lines
No EOL
18 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>TensorFlow.Nodes</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_TensorFlow-Nodes.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/TensorFlow-Nodes.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">tensorflow-0.1.0.0: TensorFlow bindings.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">TensorFlow.Nodes</p></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">class</span> <a href="#t:Nodes">Nodes</a> t <span class="keyword">where</span><ul class="subs"><li><a href="#v:getNodes">getNodes</a> :: t -&gt; <a href="TensorFlow-Build.html#t:Build">Build</a> (<a href="../containers-0.5.6.2/Data-Set.html#t:Set">Set</a> <a href="TensorFlow-Output.html#t:NodeName">NodeName</a>)</li></ul></li><li class="src short"><span class="keyword">class</span> <a href="TensorFlow-Nodes.html#t:Nodes">Nodes</a> t =&gt; <a href="#t:Fetchable">Fetchable</a> t a <span class="keyword">where</span><ul class="subs"><li><a href="#v:getFetch">getFetch</a> :: t -&gt; <a href="TensorFlow-Build.html#t:Build">Build</a> (<a href="TensorFlow-Nodes.html#t:Fetch">Fetch</a> a)</li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:Fetch">Fetch</a> a = <a href="#v:Fetch">Fetch</a> {<ul class="subs"><li><a href="#v:fetches">fetches</a> :: <a href="../containers-0.5.6.2/Data-Set.html#t:Set">Set</a> <a href="../text-1.2.2.1/Data-Text.html#t:Text">Text</a></li><li><a href="#v:fetchRestore">fetchRestore</a> :: <a href="../containers-0.5.6.2/Data-Map-Lazy.html#t:Map">Map</a> <a href="../text-1.2.2.1/Data-Text.html#t:Text">Text</a> <a href="TensorFlow-Internal-FFI.html#t:TensorData">TensorData</a> -&gt; a</li></ul>}</li><li class="src short"><a href="#v:nodesUnion">nodesUnion</a> :: (<a href="../base-4.8.2.0/Data-Monoid.html#t:Monoid">Monoid</a> b, <a href="../base-4.8.2.0/Data-Traversable.html#t:Traversable">Traversable</a> t, <a href="../base-4.8.2.0/Control-Applicative.html#t:Applicative">Applicative</a> f) =&gt; t (f b) -&gt; f b</li><li class="src short"><a href="#v:fetchTensorList">fetchTensorList</a> :: <a href="TensorFlow-Types.html#t:TensorType">TensorType</a> a =&gt; <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -&gt; <a href="TensorFlow-Build.html#t:Build">Build</a> (<a href="TensorFlow-Nodes.html#t:Fetch">Fetch</a> (<a href="TensorFlow-Types.html#t:Shape">Shape</a>, [a]))</li><li class="src short"><a href="#v:fetchTensorVector">fetchTensorVector</a> :: <span class="keyword">forall</span> a v. <a href="TensorFlow-Types.html#t:TensorType">TensorType</a> a =&gt; <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -&gt; <a href="TensorFlow-Build.html#t:Build">Build</a> (<a href="TensorFlow-Nodes.html#t:Fetch">Fetch</a> (<a href="TensorFlow-Types.html#t:Shape">Shape</a>, <a href="../vector-0.11.0.0/Data-Vector.html#t:Vector">Vector</a> a))</li><li class="src short"><span class="keyword">newtype</span> <a href="#t:Scalar">Scalar</a> a = <a href="#v:Scalar">Scalar</a> {<ul class="subs"><li><a href="#v:unScalar">unScalar</a> :: a</li></ul>}</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">class</span> <a name="t:Nodes" class="def">Nodes</a> t <span class="keyword">where</span> <a href="src/TensorFlow-Nodes.html#Nodes" class="link">Source</a></p><div class="doc"><p>Types that contain ops which can be run.</p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:getNodes" class="def">getNodes</a> :: t -&gt; <a href="TensorFlow-Build.html#t:Build">Build</a> (<a href="../containers-0.5.6.2/Data-Set.html#t:Set">Set</a> <a href="TensorFlow-Output.html#t:NodeName">NodeName</a>) <a href="src/TensorFlow-Nodes.html#getNodes" class="link">Source</a></p></div><div class="subs instances"><p id="control.i:Nodes" class="caption collapser" onclick="toggleSection('i:Nodes')">Instances</p><div id="section.i:Nodes" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="TensorFlow-Nodes.html#t:Nodes">Nodes</a> <a href="TensorFlow-Output.html#t:ControlNode">ControlNode</a></span> <a href="src/TensorFlow-Nodes.html#line-91" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="TensorFlow-Nodes.html#t:Nodes">Nodes</a> t =&gt; <a href="TensorFlow-Nodes.html#t:Nodes">Nodes</a> [t]</span> <a href="src/TensorFlow-Nodes.html#line-85" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left">(<a href="TensorFlow-Nodes.html#t:Nodes">Nodes</a> t1, <a href="TensorFlow-Nodes.html#t:Nodes">Nodes</a> t2) =&gt; <a href="TensorFlow-Nodes.html#t:Nodes">Nodes</a> (t1, t2)</span> <a href="src/TensorFlow-Nodes.html#line-71" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="TensorFlow-Nodes.html#t:Nodes">Nodes</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a)</span> <a href="src/TensorFlow-Nodes.html#line-101" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left">(<a href="TensorFlow-Nodes.html#t:Nodes">Nodes</a> t1, <a href="TensorFlow-Nodes.html#t:Nodes">Nodes</a> t2, <a href="TensorFlow-Nodes.html#t:Nodes">Nodes</a> t3) =&gt; <a href="TensorFlow-Nodes.html#t:Nodes">Nodes</a> (t1, t2, t3)</span> <a href="src/TensorFlow-Nodes.html#line-74" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="TensorFlow-Nodes.html#t:Nodes">Nodes</a> t =&gt; <a name="t:Fetchable" class="def">Fetchable</a> t a <span class="keyword">where</span> <a href="src/TensorFlow-Nodes.html#Fetchable" class="link">Source</a></p><div class="doc"><p>Types that tensor representations (e.g. <code><a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a></code>, <code><a href="TensorFlow-Output.html#t:ControlNode">ControlNode</a></code>) can be
fetched into.</p><p>Includes collections of tensors (e.g. tuples).</p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:getFetch" class="def">getFetch</a> :: t -&gt; <a href="TensorFlow-Build.html#t:Build">Build</a> (<a href="TensorFlow-Nodes.html#t:Fetch">Fetch</a> a) <a href="src/TensorFlow-Nodes.html#getFetch" class="link">Source</a></p></div><div class="subs instances"><p id="control.i:Fetchable" class="caption collapser" onclick="toggleSection('i:Fetchable')">Instances</p><div id="section.i:Fetchable" class="show"><table><tr><td class="src clearfix"><span class="inst-left">(~) * a () =&gt; <a href="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> <a href="TensorFlow-Output.html#t:ControlNode">ControlNode</a> a</span> <a href="src/TensorFlow-Nodes.html#line-98" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> t a =&gt; <a href="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> [t] [a]</span> <a href="src/TensorFlow-Nodes.html#line-88" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left">(<a href="TensorFlow-Types.html#t:TensorType">TensorType</a> a, (~) * a a') =&gt; <a href="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a) (<a href="TensorFlow-Nodes.html#t:Scalar">Scalar</a> a')</span> <a href="src/TensorFlow-Nodes.html#line-135" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left">(<a href="TensorFlow-Types.html#t:TensorType">TensorType</a> a, (~) * a a') =&gt; <a href="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a) (<a href="../vector-0.11.0.0/Data-Vector.html#t:Vector">Vector</a> a')</span> <a href="src/TensorFlow-Nodes.html#line-128" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left">(<a href="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> t1 a1, <a href="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> t2 a2) =&gt; <a href="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> (t1, t2) (a1, a2)</span> <a href="src/TensorFlow-Nodes.html#line-77" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left">(<a href="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> t1 a1, <a href="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> t2 a2, <a href="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> t3 a3) =&gt; <a href="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> (t1, t2, t3) (a1, a2, a3)</span> <a href="src/TensorFlow-Nodes.html#line-80" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Fetch" class="def">Fetch</a> a <a href="src/TensorFlow-Nodes.html#Fetch" class="link">Source</a></p><div class="doc"><p>Fetch action. Keeps track of what needs to be fetched and how to decode
the fetched data.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Fetch" class="def">Fetch</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:fetches" class="def">fetches</a> :: <a href="../containers-0.5.6.2/Data-Set.html#t:Set">Set</a> <a href="../text-1.2.2.1/Data-Text.html#t:Text">Text</a></dt><dd class="doc"><p>Nodes to fetch</p></dd><dt class="src"><a name="v:fetchRestore" class="def">fetchRestore</a> :: <a href="../containers-0.5.6.2/Data-Map-Lazy.html#t:Map">Map</a> <a href="../text-1.2.2.1/Data-Text.html#t:Text">Text</a> <a href="TensorFlow-Internal-FFI.html#t:TensorData">TensorData</a> -&gt; a</dt><dd class="doc"><p>Function to create an <code>a</code> from the fetched data.</p></dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:Fetch" class="caption collapser" onclick="toggleSection('i:Fetch')">Instances</p><div id="section.i:Fetch" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="../base-4.8.2.0/Data-Functor.html#t:Functor">Functor</a> <a href="TensorFlow-Nodes.html#t:Fetch">Fetch</a></span> <a href="src/TensorFlow-Nodes.html#line-60" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="../base-4.8.2.0/Control-Applicative.html#t:Applicative">Applicative</a> <a href="TensorFlow-Nodes.html#t:Fetch">Fetch</a></span> <a href="src/TensorFlow-Nodes.html#line-63" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:nodesUnion" class="def">nodesUnion</a> :: (<a href="../base-4.8.2.0/Data-Monoid.html#t:Monoid">Monoid</a> b, <a href="../base-4.8.2.0/Data-Traversable.html#t:Traversable">Traversable</a> t, <a href="../base-4.8.2.0/Control-Applicative.html#t:Applicative">Applicative</a> f) =&gt; t (f b) -&gt; f b <a href="src/TensorFlow-Nodes.html#nodesUnion" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:fetchTensorList" class="def">fetchTensorList</a> :: <a href="TensorFlow-Types.html#t:TensorType">TensorType</a> a =&gt; <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -&gt; <a href="TensorFlow-Build.html#t:Build">Build</a> (<a href="TensorFlow-Nodes.html#t:Fetch">Fetch</a> (<a href="TensorFlow-Types.html#t:Shape">Shape</a>, [a])) <a href="src/TensorFlow-Nodes.html#fetchTensorList" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:fetchTensorVector" class="def">fetchTensorVector</a> :: <span class="keyword">forall</span> a v. <a href="TensorFlow-Types.html#t:TensorType">TensorType</a> a =&gt; <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -&gt; <a href="TensorFlow-Build.html#t:Build">Build</a> (<a href="TensorFlow-Nodes.html#t:Fetch">Fetch</a> (<a href="TensorFlow-Types.html#t:Shape">Shape</a>, <a href="../vector-0.11.0.0/Data-Vector.html#t:Vector">Vector</a> a)) <a href="src/TensorFlow-Nodes.html#fetchTensorVector" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a name="t:Scalar" class="def">Scalar</a> a <a href="src/TensorFlow-Nodes.html#Scalar" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Scalar" class="def">Scalar</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:unScalar" class="def">unScalar</a> :: a</dt><dd class="doc empty">&nbsp;</dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:Scalar" class="caption collapser" onclick="toggleSection('i:Scalar')">Instances</p><div id="section.i:Scalar" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="../base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> a =&gt; <a href="../base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> (<a href="TensorFlow-Nodes.html#t:Scalar">Scalar</a> a)</span> <a href="src/TensorFlow-Nodes.html#line-132" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="../base-4.8.2.0/Prelude.html#t:Floating">Floating</a> a =&gt; <a href="../base-4.8.2.0/Prelude.html#t:Floating">Floating</a> (<a href="TensorFlow-Nodes.html#t:Scalar">Scalar</a> a)</span> <a href="src/TensorFlow-Nodes.html#line-132" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="../base-4.8.2.0/Prelude.html#t:Fractional">Fractional</a> a =&gt; <a href="../base-4.8.2.0/Prelude.html#t:Fractional">Fractional</a> (<a href="TensorFlow-Nodes.html#t:Scalar">Scalar</a> a)</span> <a href="src/TensorFlow-Nodes.html#line-132" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="../base-4.8.2.0/Prelude.html#t:Num">Num</a> a =&gt; <a href="../base-4.8.2.0/Prelude.html#t:Num">Num</a> (<a href="TensorFlow-Nodes.html#t:Scalar">Scalar</a> a)</span> <a href="src/TensorFlow-Nodes.html#line-132" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="../base-4.8.2.0/Data-Ord.html#t:Ord">Ord</a> a =&gt; <a href="../base-4.8.2.0/Data-Ord.html#t:Ord">Ord</a> (<a href="TensorFlow-Nodes.html#t:Scalar">Scalar</a> a)</span> <a href="src/TensorFlow-Nodes.html#line-132" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="../base-4.8.2.0/Prelude.html#t:Real">Real</a> a =&gt; <a href="../base-4.8.2.0/Prelude.html#t:Real">Real</a> (<a href="TensorFlow-Nodes.html#t:Scalar">Scalar</a> a)</span> <a href="src/TensorFlow-Nodes.html#line-132" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="../base-4.8.2.0/Prelude.html#t:RealFloat">RealFloat</a> a =&gt; <a href="../base-4.8.2.0/Prelude.html#t:RealFloat">RealFloat</a> (<a href="TensorFlow-Nodes.html#t:Scalar">Scalar</a> a)</span> <a href="src/TensorFlow-Nodes.html#line-132" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="../base-4.8.2.0/Prelude.html#t:RealFrac">RealFrac</a> a =&gt; <a href="../base-4.8.2.0/Prelude.html#t:RealFrac">RealFrac</a> (<a href="TensorFlow-Nodes.html#t:Scalar">Scalar</a> a)</span> <a href="src/TensorFlow-Nodes.html#line-133" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="../base-4.8.2.0/Text-Show.html#t:Show">Show</a> a =&gt; <a href="../base-4.8.2.0/Text-Show.html#t:Show">Show</a> (<a href="TensorFlow-Nodes.html#t:Scalar">Scalar</a> a)</span> <a href="src/TensorFlow-Nodes.html#line-132" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="../base-4.8.2.0/Data-String.html#t:IsString">IsString</a> a =&gt; <a href="../base-4.8.2.0/Data-String.html#t:IsString">IsString</a> (<a href="TensorFlow-Nodes.html#t:Scalar">Scalar</a> a)</span> <a href="src/TensorFlow-Nodes.html#line-133" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left">(<a href="TensorFlow-Types.html#t:TensorType">TensorType</a> a, (~) * a a') =&gt; <a href="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a) (<a href="TensorFlow-Nodes.html#t:Scalar">Scalar</a> a')</span> <a href="src/TensorFlow-Nodes.html#line-135" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.1</p></div></body></html>