mirror of
https://github.com/tensorflow/haskell.git
synced 2024-11-27 05:19:45 +01:00
6 lines
30 KiB
HTML
6 lines
30 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 src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
|
||
|
window.onload = function () {pageLoad();};
|
||
|
//]]>
|
||
|
</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.2.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"></ul></li><li class="src short"><span class="keyword">class</span> <a href="TensorFlow-Nodes.html#t:Nodes">Nodes</a> t => <a href="#t:Fetchable">Fetchable</a> t a <span class="keyword">where</span><ul class="subs"></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.10.2/Data-Set-Internal.html#t:Set">Set</a> Text</li><li><a href="#v:fetchRestore">fetchRestore</a> :: <a href="../containers-0.5.10.2/Data-Map-Internal.html#t:Map">Map</a> Text <a href="TensorFlow-Internal-FFI.html#t:TensorData">TensorData</a> -> a</li></ul>}</li><li class="src short"><a href="#v:nodesUnion">nodesUnion</a> :: (<a href="../base-4.10.1.0/Data-Monoid.html#t:Monoid">Monoid</a> b, <a href="../base-4.10.1.0/Data-Traversable.html#t:Traversable">Traversable</a> t, <a href="../base-4.10.1.0/Control-Applicative.html#t:Applicative">Applicative</a> f) => t (f b) -> f b</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 => <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -> <a href="TensorFlow-Build.html#t:Build">Build</a> (<a href="TensorFlow-Nodes.html#t:Fetch">Fetch</a> (<a href="TensorFlow-Types.html#t:TensorData">TensorData</a> a))</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">class</span> <a id="t:Nodes" class="def">Nodes</a> t <span class="keyword">where</span> <a href="src/TensorFlow.Nodes.html#Nodes" class="link">Source</a> <a href="#t:Nodes" class="selflink">#</a></p><div class="doc"><p>Types that contain ops which can be run.</p></div><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="TensorFlow-Nodes.html#v:getNodes">getNodes</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:getNodes" class="def">getNodes</a> :: t -> <a href="TensorFlow-Build.html#t:Build">Build</a> (<a href="../containers-0.5.10.2/Data-Set-Internal.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> <a href="#v:getNodes" class="selflink">#</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"><span id="control.i:ic:Nodes:Nodes:1" class="instance expander" onclick="toggleSection('i:ic:Nodes:Nodes:1')"></span> <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-98" class="link">Source</a> <a href="#t:Nodes" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Nodes:Nodes:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:getNodes">getNodes</a> :: <a href="TensorFlow-Output.html#t:ControlNode">ControlNode</a> -> <a hre
|
||
|
fetched into.</p><p>Includes collections of tensors (e.g. tuples).</p></div><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="TensorFlow-Nodes.html#v:getFetch">getFetch</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:getFetch" class="def">getFetch</a> :: t -> <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> <a href="#v:getFetch" class="selflink">#</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"><span id="control.i:ic:Fetchable:Fetchable:1" class="instance expander" onclick="toggleSection('i:ic:Fetchable:Fetchable:1')"></span> (~) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> a () => <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-105" class="link">Source</a> <a href="#t:Fetchable" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Fetchable:Fetchable:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:getFetch">getFetch</a> :: <a href="TensorFlow-Output.html#t:ControlNode">ControlNode</a> -> <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> <a href="#v:getFetch" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Fetchable:Fetchable:2" class="instance expander" onclick="toggleSection('i:ic:Fetchable:Fetchable:2')"></span> <a href="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> t a => <a href="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> [t] [a]</span> <a href="src/TensorFlow.Nodes.html#line-89" class="link">Source</a> <a href="#t:Fetchable" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Fetchable:Fetchable:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:getFetch">getFetch</a> :: [t] -> <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> <a href="#v:getFetch" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Fetchable:Fetchable:3" class="instance expander" onclick="toggleSection('i:ic:Fetchable:Fetchable:3')"></span> <a href="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> t a => <a href="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> (<a href="../base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> t) (<a href="../base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> a)</span> <a href="src/TensorFlow.Nodes.html#line-95" class="link">Source</a> <a href="#t:Fetchable" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Fetchable:Fetchable:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:getFetch">getFetch</a> :: <a href="../base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> t -> <a href="TensorFlow-Build.html#t:Build">Build</a> (<a href="TensorFlow-Nodes.html#t:Fetch">Fetch</a> (<a href="../base-4.10.1.0/Data-Maybe.html#t:Maybe">Maybe</a> a)) <a href="src/TensorFlow.Nodes.html#getFetch" class="link">Source</a> <a href="#v:getFetch" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Fetchable:Fetchable:4" class="instance expander" onclick="toggleSection('
|
||
|
the fetched data.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:Fetch" class="def">Fetch</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:fetches" class="def">fetches</a> :: <a href="../containers-0.5.10.2/Data-Set-Internal.html#t:Set">Set</a> Text</dfn><div class="doc"><p>Nodes to fetch</p></div></li><li><dfn class="src"><a id="v:fetchRestore" class="def">fetchRestore</a> :: <a href="../containers-0.5.10.2/Data-Map-Internal.html#t:Map">Map</a> Text <a href="TensorFlow-Internal-FFI.html#t:TensorData">TensorData</a> -> a</dfn><div class="doc"><p>Function to create an <code>a</code> from the fetched data.</p></div></li></ul></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"><span id="control.i:id:Fetch:Functor:1" class="instance expander" onclick="toggleSection('i:id:Fetch:Functor:1')"></span> <a href="../base-4.10.1.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-61" class="link">Source</a> <a href="#t:Fetch" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Fetch:Functor:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> <a href="TensorFlow-Nodes.html#t:Fetch">Fetch</a> a -> <a href="TensorFlow-Nodes.html#t:Fetch">Fetch</a> b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> <a href="TensorFlow-Nodes.html#t:Fetch">Fetch</a> b -> <a href="TensorFlow-Nodes.html#t:Fetch">Fetch</a> a <a href="#v:-60--36-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Fetch:Applicative:2" class="instance expander" onclick="toggleSection('i:id:Fetch:Applicative:2')"></span> <a href="../base-4.10.1.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-64" class="link">Source</a> <a href="#t:Fetch" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Fetch:Applicative:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:pure">pure</a> :: a -> <a href="TensorFlow-Nodes.html#t:Fetch">Fetch</a> a <a href="#v:pure" class="selflink">#</a></p><p class="src"><a href="#v:-60--42--62-">(<*>)</a> :: <a href="TensorFlow-Nodes.html#t:Fetch">Fetch</a> (a -> b) -> <a href="TensorFlow-Nodes.html#t:Fetch">Fetch</a> a -> <a href="TensorFlow-Nodes.html#t:Fetch">Fetch</a> b <a href="#v:-60--42--62-" class="selflink">#</a></p><p class="src"><a href="#v:liftA2">liftA2</a> :: (a -> b -> c) -> <a href="TensorFlow-Nodes.html#t:Fetch">Fetch</a> a -> <a href="TensorFlow-Nodes.html#t:Fetch">Fetch</a> b -> <a href="TensorFlow-Nodes.html#t:Fetch">Fetch</a> c <a href="#v:liftA2" class="selflink">#</a></p><p class="src"><a href="#v:-42--62-">(*>)</a> :: <a href="TensorFlow-Nodes.html#t:Fetch">Fetch</a> a -> <a href="TensorFlow-Nodes.html#t:Fetch">Fetch</a> b -> <a href="TensorFlow-Nodes.html#t:Fetch">Fetch</a> b <a href="#v:-42--62-" class="selflink">#</a></p><p class="src"><a href="#v:-60--42-">(<*)</a> :: <a href="TensorFlow-Nodes.html#t:Fetch">Fetch</a> a -> <a href="TensorFlow-Nodes.html#t:Fetch">Fetch</a> b -> <a href="TensorFlow-Nodes.html#t:Fetch">Fetch</a> a <a href="#v:-60--42-" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:nodesUnion" class="def">nodesUnion</a> :: (<a href="../base-4.10.1.0
|