mirror of
https://github.com/tensorflow/haskell.git
synced 2024-11-23 11:29:43 +01:00
6b19e54722
* Update README to refer to 2.3.0-gpu. * Remove old package documentation from haddock directory.
11 lines
No EOL
65 KiB
HTML
11 lines
No EOL
65 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" /><meta name="viewport" content="width=device-width, initial-scale=1" /><title>TensorFlow.Build</title><link href="linuwial.css" rel="stylesheet" type="text/css" title="Linuwial" /><link rel="stylesheet" type="text/css" href="quick-jump.css" /><link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" /><script src="haddock-bundle.min.js" async="async" type="text/javascript"></script><script type="text/x-mathjax-config">MathJax.Hub.Config({ tex2jax: { processClass: "mathjax", ignoreClass: ".*" } });</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script></head><body><div id="package-header"><span class="caption">tensorflow-0.3.0.0: TensorFlow bindings.</span><ul class="links" id="page-menu"><li><a href="src/TensorFlow.Build.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul></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.Build</p></div><div id="table-of-contents"><div id="contents-list"><p class="caption" onclick="window.scrollTo(0,0)">Contents</p><ul><li><a href="#g:1">Graph node types</a></li><li><a href="#g:2">Ops</a></li><li><a href="#g:3">The Build monad</a></li><li><a href="#g:4">Creating and looking up Ops</a></li><li><a href="#g:5">Modifying all nodes in a Build action</a></li></ul></div></div><div id="synopsis"><details id="syn"><summary>Synopsis</summary><ul class="details-toggle" data-details-id="syn"><li class="src short"><span class="keyword">newtype</span> <a href="#t:ControlNode">ControlNode</a> = <a href="#v:ControlNode">ControlNode</a> {<ul class="subs"><li><a href="#v:unControlNode">unControlNode</a> :: <a href="TensorFlow-Output.html#t:NodeName" title="TensorFlow.Output">NodeName</a></li></ul>}</li><li class="src short"><span class="keyword">data</span> <a href="#t:Unique">Unique</a></li><li class="src short"><a href="#v:explicitName">explicitName</a> :: <a href="../text-1.2.4.0/Data-Text.html#t:Text" title="Data.Text">Text</a> -> <a href="TensorFlow-Output.html#t:PendingNodeName" title="TensorFlow.Output">PendingNodeName</a></li><li class="src short"><a href="#v:implicitName">implicitName</a> :: <a href="TensorFlow-Output.html#t:PendingNodeName" title="TensorFlow.Output">PendingNodeName</a></li><li class="src short"><a href="#v:opDef">opDef</a> :: <a href="TensorFlow-Output.html#t:OpType" title="TensorFlow.Output">OpType</a> -> <a href="TensorFlow-Output.html#t:OpDef" title="TensorFlow.Output">OpDef</a></li><li class="src short"><a href="#v:opDefWithName">opDefWithName</a> :: <a href="TensorFlow-Output.html#t:PendingNodeName" title="TensorFlow.Output">PendingNodeName</a> -> <a href="TensorFlow-Output.html#t:OpType" title="TensorFlow.Output">OpType</a> -> <a href="TensorFlow-Output.html#t:OpDef" title="TensorFlow.Output">OpDef</a></li><li class="src short"><a href="#v:opName">opName</a> :: Lens' <a href="TensorFlow-Output.html#t:OpDef" title="TensorFlow.Output">OpDef</a> <a href="TensorFlow-Output.html#t:PendingNodeName" title="TensorFlow.Output">PendingNodeName</a></li><li class="src short"><a href="#v:opType">opType</a> :: Lens' <a href="TensorFlow-Output.html#t:OpDef" title="TensorFlow.Output">OpDef</a> <a href="TensorFlow-Output.html#t:OpType" title="TensorFlow.Output">OpType</a></li><li class="src short"><a href="#v:opAttr">opAttr</a> :: <a href="TensorFlow-Types.html#t:Attribute" title="TensorFlow.Types">Attribute</a> a => <a href="../text-1.2.4.0/Data-Text.html#t:Text" title="Data.Text">Text</a> -> Lens' <a href="TensorFlow-Output.html#t:OpDef" title="TensorFlow.Output">OpDef</a> a</li><li class="src short"><a href="#v:opInputs">opInputs</a> :: Lens' <a href="TensorFlow-Output.html#t:OpDef" title="TensorFlow.Output">OpDef</a> [<a href="TensorFlow-Output.html#t:Output" title="TensorFlow.Output">Output</a>]</li><li class="src short"><a href="#v:opControlInputs">opControlInputs</a> :: Lens' <a href="TensorFlow-Output.html#t:OpDef" title="TensorFlow.Output">OpDef</a> [<a href="TensorFlow-Output.html#t:NodeName" title="TensorFlow.Output">NodeName</a>]</li><li class="src short"><span class="keyword">data</span> <a href="#t:GraphState">GraphState</a></li><li class="src short"><a href="#v:renderedNodeDefs">renderedNodeDefs</a> :: Lens' <a href="TensorFlow-Build.html#t:GraphState" title="TensorFlow.Build">GraphState</a> (<a href="../containers-0.6.2.1/Data-Map-Strict.html#t:Map" title="Data.Map.Strict">Map</a> <a href="TensorFlow-Output.html#t:NodeName" title="TensorFlow.Output">NodeName</a> <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-NodeDef.html#t:NodeDef" title="Proto.Tensorflow.Core.Framework.NodeDef">NodeDef</a>)</li><li class="src short"><span class="keyword">data</span> <a href="#t:BuildT">BuildT</a> m a</li><li class="src short"><span class="keyword">type</span> <a href="#t:Build">Build</a> = <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> <a href="../base-4.13.0.0/Data-Functor-Identity.html#t:Identity" title="Data.Functor.Identity">Identity</a></li><li class="src short"><span class="keyword">class</span> <a href="../base-4.13.0.0/Control-Monad.html#t:Monad" title="Control.Monad">Monad</a> m => <a href="#t:MonadBuild">MonadBuild</a> m <span class="keyword">where</span><ul class="subs"><li><a href="#v:build">build</a> :: <a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a> a -> m a</li></ul></li><li class="src short"><a href="#v:addInitializer">addInitializer</a> :: <a href="TensorFlow-Build.html#t:MonadBuild" title="TensorFlow.Build">MonadBuild</a> m => <a href="TensorFlow-Build.html#t:ControlNode" title="TensorFlow.Build">ControlNode</a> -> m ()</li><li class="src short"><a href="#v:hoistBuildT">hoistBuildT</a> :: (<span class="keyword">forall</span> a. m a -> n a) -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m b -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> n b</li><li class="src short"><a href="#v:evalBuildT">evalBuildT</a> :: <a href="../base-4.13.0.0/Control-Monad.html#t:Monad" title="Control.Monad">Monad</a> m => <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m a -> m a</li><li class="src short"><a href="#v:runBuildT">runBuildT</a> :: <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m a -> m (a, <a href="TensorFlow-Build.html#t:GraphState" title="TensorFlow.Build">GraphState</a>)</li><li class="src short"><a href="#v:asGraphDef">asGraphDef</a> :: <a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a> a -> <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-Graph.html#t:GraphDef" title="Proto.Tensorflow.Core.Framework.Graph">GraphDef</a></li><li class="src short"><a href="#v:addGraphDef">addGraphDef</a> :: <a href="TensorFlow-Build.html#t:MonadBuild" title="TensorFlow.Build">MonadBuild</a> m => <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-Graph.html#t:GraphDef" title="Proto.Tensorflow.Core.Framework.Graph">GraphDef</a> -> m ()</li><li class="src short"><a href="#v:flushInitializers">flushInitializers</a> :: <a href="../base-4.13.0.0/Control-Monad.html#t:Monad" title="Control.Monad">Monad</a> m => <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m [<a href="TensorFlow-Output.html#t:NodeName" title="TensorFlow.Output">NodeName</a>]</li><li class="src short"><a href="#v:flushNodeBuffer">flushNodeBuffer</a> :: <a href="TensorFlow-Build.html#t:MonadBuild" title="TensorFlow.Build">MonadBuild</a> m => m [<a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-NodeDef.html#t:NodeDef" title="Proto.Tensorflow.Core.Framework.NodeDef">NodeDef</a>]</li><li class="src short"><a href="#v:summaries">summaries</a> :: Lens' <a href="TensorFlow-Build.html#t:GraphState" title="TensorFlow.Build">GraphState</a> [<a href="TensorFlow-Output.html#t:Output" title="TensorFlow.Output">Output</a>]</li><li class="src short"><a href="#v:getOrAddOp">getOrAddOp</a> :: <a href="TensorFlow-Output.html#t:OpDef" title="TensorFlow.Output">OpDef</a> -> <a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a> <a href="TensorFlow-Output.html#t:NodeName" title="TensorFlow.Output">NodeName</a></li><li class="src short"><a href="#v:addNewOp">addNewOp</a> :: <a href="TensorFlow-Output.html#t:OpDef" title="TensorFlow.Output">OpDef</a> -> <a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a> <a href="TensorFlow-Output.html#t:NodeName" title="TensorFlow.Output">NodeName</a></li><li class="src short"><a href="#v:encodeOutput">encodeOutput</a> :: <a href="TensorFlow-Output.html#t:Output" title="TensorFlow.Output">Output</a> -> <a href="../text-1.2.4.0/Data-Text.html#t:Text" title="Data.Text">Text</a></li><li class="src short"><a href="#v:lookupNode">lookupNode</a> :: <a href="TensorFlow-Output.html#t:NodeName" title="TensorFlow.Output">NodeName</a> -> <a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a> <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-NodeDef.html#t:NodeDef" title="Proto.Tensorflow.Core.Framework.NodeDef">NodeDef</a></li><li class="src short"><a href="#v:withStateLens">withStateLens</a> :: <a href="TensorFlow-Build.html#t:MonadBuild" title="TensorFlow.Build">MonadBuild</a> m => Lens' <a href="TensorFlow-Build.html#t:GraphState" title="TensorFlow.Build">GraphState</a> a -> (a -> a) -> m b -> m b</li><li class="src short"><a href="#v:withDevice">withDevice</a> :: <a href="TensorFlow-Build.html#t:MonadBuild" title="TensorFlow.Build">MonadBuild</a> m => <a href="../base-4.13.0.0/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> <a href="TensorFlow-Output.html#t:Device" title="TensorFlow.Output">Device</a> -> m a -> m a</li><li class="src short"><a href="#v:withNameScope">withNameScope</a> :: <a href="TensorFlow-Build.html#t:MonadBuild" title="TensorFlow.Build">MonadBuild</a> m => <a href="../text-1.2.4.0/Data-Text.html#t:Text" title="Data.Text">Text</a> -> m a -> m a</li><li class="src short"><a href="#v:withNodeDependencies">withNodeDependencies</a> :: <a href="TensorFlow-Build.html#t:MonadBuild" title="TensorFlow.Build">MonadBuild</a> m => <a href="../containers-0.6.2.1/Data-Set.html#t:Set" title="Data.Set">Set</a> <a href="TensorFlow-Output.html#t:NodeName" title="TensorFlow.Output">NodeName</a> -> m a -> m a</li></ul></details></div><div id="interface"><a href="#g:1" id="g:1"><h1>Graph node types</h1></a><div class="top"><p class="src"><span class="keyword">newtype</span> <a id="t:ControlNode" class="def">ControlNode</a> <a href="src/TensorFlow.Output.html#ControlNode" class="link">Source</a> <a href="#t:ControlNode" class="selflink">#</a></p><div class="doc"><p>A type of graph node which has no outputs. These nodes are
|
|
valuable for causing side effects when they are run.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:ControlNode" class="def">ControlNode</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:unControlNode" class="def">unControlNode</a> :: <a href="TensorFlow-Output.html#t:NodeName" title="TensorFlow.Output">NodeName</a></dfn><div class="doc empty"> </div></li></ul></div></td></tr></table></div><div class="subs instances"><h4 class="instances details-toggle-control details-toggle" data-details-id="i:ControlNode">Instances</h4><details id="i:ControlNode" open="open"><summary class="hide-when-js-enabled">Instances details</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:ControlNode:Nodes:1"></span> <a href="TensorFlow-Nodes.html#t:Nodes" title="TensorFlow.Nodes">Nodes</a> <a href="TensorFlow-Build.html#t:ControlNode" title="TensorFlow.Build">ControlNode</a></span> <a href="src/TensorFlow.Nodes.html#line-97" class="link">Source</a> <a href="#t:Nodes" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:ControlNode:Nodes:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Nodes.html">TensorFlow.Nodes</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:getNodes">getNodes</a> :: <a href="TensorFlow-Build.html#t:ControlNode" title="TensorFlow.Build">ControlNode</a> -> <a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a> (<a href="../containers-0.6.2.1/Data-Set.html#t:Set" title="Data.Set">Set</a> <a href="TensorFlow-Output.html#t:NodeName" title="TensorFlow.Output">NodeName</a>) <a href="src/TensorFlow.Nodes.html#getNodes" class="link">Source</a> <a href="#v:getNodes" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:ControlNode:BuildResult:2"></span> <a href="TensorFlow-BuildOp.html#t:BuildResult" title="TensorFlow.BuildOp">BuildResult</a> <a href="TensorFlow-Build.html#t:ControlNode" title="TensorFlow.Build">ControlNode</a></span> <a href="src/TensorFlow.BuildOp.html#line-132" class="link">Source</a> <a href="#t:BuildResult" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:ControlNode:BuildResult:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-BuildOp.html">TensorFlow.BuildOp</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:buildResult">buildResult</a> :: Result <a href="TensorFlow-Build.html#t:ControlNode" title="TensorFlow.Build">ControlNode</a> <a href="src/TensorFlow.BuildOp.html#buildResult" class="link">Source</a> <a href="#v:buildResult" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:ControlNode:Fetchable:3"></span> a ~ () => <a href="TensorFlow-Nodes.html#t:Fetchable" title="TensorFlow.Nodes">Fetchable</a> <a href="TensorFlow-Build.html#t:ControlNode" title="TensorFlow.Build">ControlNode</a> a</span> <a href="src/TensorFlow.Nodes.html#line-104" class="link">Source</a> <a href="#t:Fetchable" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:ControlNode:Fetchable:3"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Nodes.html">TensorFlow.Nodes</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:getFetch">getFetch</a> :: <a href="TensorFlow-Build.html#t:ControlNode" title="TensorFlow.Build">ControlNode</a> -> <a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a> (<a href="TensorFlow-Nodes.html#t:Fetch" title="TensorFlow.Nodes">Fetch</a> a) <a href="src/TensorFlow.Nodes.html#getFetch" class="link">Source</a> <a href="#v:getFetch" class="selflink">#</a></p></div></details></td></tr></table></details></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:Unique" class="def">Unique</a> <a href="src/TensorFlow.Build.html#Unique" class="link">Source</a> <a href="#t:Unique" class="selflink">#</a></p><div class="subs instances"><h4 class="instances details-toggle-control details-toggle" data-details-id="i:Unique">Instances</h4><details id="i:Unique" open="open"><summary class="hide-when-js-enabled">Instances details</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:Unique:Enum:1"></span> <a href="../base-4.13.0.0/Prelude.html#t:Enum" title="Prelude">Enum</a> <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a></span> <a href="src/TensorFlow.Build.html#line-94" class="link">Source</a> <a href="#t:Unique" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:Unique:Enum:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Build.html">TensorFlow.Build</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:succ">succ</a> :: <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a> -> <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a> <a href="#v:succ" class="selflink">#</a></p><p class="src"><a href="#v:pred">pred</a> :: <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a> -> <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a> <a href="#v:pred" class="selflink">#</a></p><p class="src"><a href="#v:toEnum">toEnum</a> :: <a href="../base-4.13.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> -> <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a> <a href="#v:toEnum" class="selflink">#</a></p><p class="src"><a href="#v:fromEnum">fromEnum</a> :: <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a> -> <a href="../base-4.13.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> <a href="#v:fromEnum" class="selflink">#</a></p><p class="src"><a href="#v:enumFrom">enumFrom</a> :: <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a> -> [<a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a>] <a href="#v:enumFrom" class="selflink">#</a></p><p class="src"><a href="#v:enumFromThen">enumFromThen</a> :: <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a> -> <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a> -> [<a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a>] <a href="#v:enumFromThen" class="selflink">#</a></p><p class="src"><a href="#v:enumFromTo">enumFromTo</a> :: <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a> -> <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a> -> [<a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a>] <a href="#v:enumFromTo" class="selflink">#</a></p><p class="src"><a href="#v:enumFromThenTo">enumFromThenTo</a> :: <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a> -> <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a> -> <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a> -> [<a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a>] <a href="#v:enumFromThenTo" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:Unique:Eq:2"></span> <a href="../base-4.13.0.0/Data-Eq.html#t:Eq" title="Data.Eq">Eq</a> <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a></span> <a href="src/TensorFlow.Build.html#line-94" class="link">Source</a> <a href="#t:Unique" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:Unique:Eq:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Build.html">TensorFlow.Build</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a> -> <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a> -> <a href="../base-4.13.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a> -> <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a> -> <a href="../base-4.13.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:Unique:Ord:3"></span> <a href="../base-4.13.0.0/Data-Ord.html#t:Ord" title="Data.Ord">Ord</a> <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a></span> <a href="src/TensorFlow.Build.html#line-94" class="link">Source</a> <a href="#t:Unique" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:Unique:Ord:3"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Build.html">TensorFlow.Build</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:compare">compare</a> :: <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a> -> <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a> -> <a href="../base-4.13.0.0/Data-Ord.html#t:Ordering" title="Data.Ord">Ordering</a> <a href="#v:compare" class="selflink">#</a></p><p class="src"><a href="#v:-60-">(<)</a> :: <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a> -> <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a> -> <a href="../base-4.13.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-60-" class="selflink">#</a></p><p class="src"><a href="#v:-60--61-">(<=)</a> :: <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a> -> <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a> -> <a href="../base-4.13.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-60--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62-">(>)</a> :: <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a> -> <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a> -> <a href="../base-4.13.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-62-" class="selflink">#</a></p><p class="src"><a href="#v:-62--61-">(>=)</a> :: <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a> -> <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a> -> <a href="../base-4.13.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-62--61-" class="selflink">#</a></p><p class="src"><a href="#v:max">max</a> :: <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a> -> <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a> -> <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a> <a href="#v:max" class="selflink">#</a></p><p class="src"><a href="#v:min">min</a> :: <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a> -> <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a> -> <a href="TensorFlow-Build.html#t:Unique" title="TensorFlow.Build">Unique</a> <a href="#v:min" class="selflink">#</a></p></div></details></td></tr></table></details></div></div><a href="#g:2" id="g:2"><h1>Ops</h1></a><div class="top"><p class="src"><a id="v:explicitName" class="def">explicitName</a> :: <a href="../text-1.2.4.0/Data-Text.html#t:Text" title="Data.Text">Text</a> -> <a href="TensorFlow-Output.html#t:PendingNodeName" title="TensorFlow.Output">PendingNodeName</a> <a href="src/TensorFlow.Build.html#explicitName" class="link">Source</a> <a href="#v:explicitName" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:implicitName" class="def">implicitName</a> :: <a href="TensorFlow-Output.html#t:PendingNodeName" title="TensorFlow.Output">PendingNodeName</a> <a href="src/TensorFlow.Build.html#implicitName" class="link">Source</a> <a href="#v:implicitName" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:opDef" class="def">opDef</a> :: <a href="TensorFlow-Output.html#t:OpType" title="TensorFlow.Output">OpType</a> -> <a href="TensorFlow-Output.html#t:OpDef" title="TensorFlow.Output">OpDef</a> <a href="src/TensorFlow.Build.html#opDef" class="link">Source</a> <a href="#v:opDef" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:opDefWithName" class="def">opDefWithName</a> :: <a href="TensorFlow-Output.html#t:PendingNodeName" title="TensorFlow.Output">PendingNodeName</a> -> <a href="TensorFlow-Output.html#t:OpType" title="TensorFlow.Output">OpType</a> -> <a href="TensorFlow-Output.html#t:OpDef" title="TensorFlow.Output">OpDef</a> <a href="src/TensorFlow.Build.html#opDefWithName" class="link">Source</a> <a href="#v:opDefWithName" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:opName" class="def">opName</a> :: Lens' <a href="TensorFlow-Output.html#t:OpDef" title="TensorFlow.Output">OpDef</a> <a href="TensorFlow-Output.html#t:PendingNodeName" title="TensorFlow.Output">PendingNodeName</a> <a href="src/TensorFlow.Output.html#opName" class="link">Source</a> <a href="#v:opName" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:opType" class="def">opType</a> :: Lens' <a href="TensorFlow-Output.html#t:OpDef" title="TensorFlow.Output">OpDef</a> <a href="TensorFlow-Output.html#t:OpType" title="TensorFlow.Output">OpType</a> <a href="src/TensorFlow.Output.html#opType" class="link">Source</a> <a href="#v:opType" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:opAttr" class="def">opAttr</a> :: <a href="TensorFlow-Types.html#t:Attribute" title="TensorFlow.Types">Attribute</a> a => <a href="../text-1.2.4.0/Data-Text.html#t:Text" title="Data.Text">Text</a> -> Lens' <a href="TensorFlow-Output.html#t:OpDef" title="TensorFlow.Output">OpDef</a> a <a href="src/TensorFlow.Output.html#opAttr" class="link">Source</a> <a href="#v:opAttr" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:opInputs" class="def">opInputs</a> :: Lens' <a href="TensorFlow-Output.html#t:OpDef" title="TensorFlow.Output">OpDef</a> [<a href="TensorFlow-Output.html#t:Output" title="TensorFlow.Output">Output</a>] <a href="src/TensorFlow.Output.html#opInputs" class="link">Source</a> <a href="#v:opInputs" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:opControlInputs" class="def">opControlInputs</a> :: Lens' <a href="TensorFlow-Output.html#t:OpDef" title="TensorFlow.Output">OpDef</a> [<a href="TensorFlow-Output.html#t:NodeName" title="TensorFlow.Output">NodeName</a>] <a href="src/TensorFlow.Output.html#opControlInputs" class="link">Source</a> <a href="#v:opControlInputs" class="selflink">#</a></p></div><a href="#g:3" id="g:3"><h1>The Build monad</h1></a><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:GraphState" class="def">GraphState</a> <a href="src/TensorFlow.Build.html#GraphState" class="link">Source</a> <a href="#t:GraphState" class="selflink">#</a></p><div class="subs instances"><h4 class="instances details-toggle-control details-toggle" data-details-id="i:GraphState">Instances</h4><details id="i:GraphState" open="open"><summary class="hide-when-js-enabled">Instances details</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:GraphState:MonadState:1"></span> <a href="../base-4.13.0.0/Control-Monad.html#t:Monad" title="Control.Monad">Monad</a> m => <a href="../mtl-2.2.2/Control-Monad-State-Class.html#t:MonadState" title="Control.Monad.State.Class">MonadState</a> <a href="TensorFlow-Build.html#t:GraphState" title="TensorFlow.Build">GraphState</a> (<a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m)</span> <a href="src/TensorFlow.Build.html#line-192" class="link">Source</a> <a href="#t:GraphState" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:GraphState:MonadState:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Build.html">TensorFlow.Build</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:get">get</a> :: <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m <a href="TensorFlow-Build.html#t:GraphState" title="TensorFlow.Build">GraphState</a> <a href="#v:get" class="selflink">#</a></p><p class="src"><a href="#v:put">put</a> :: <a href="TensorFlow-Build.html#t:GraphState" title="TensorFlow.Build">GraphState</a> -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m () <a href="#v:put" class="selflink">#</a></p><p class="src"><a href="#v:state">state</a> :: (<a href="TensorFlow-Build.html#t:GraphState" title="TensorFlow.Build">GraphState</a> -> (a, <a href="TensorFlow-Build.html#t:GraphState" title="TensorFlow.Build">GraphState</a>)) -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m a <a href="#v:state" class="selflink">#</a></p></div></details></td></tr></table></details></div></div><div class="top"><p class="src"><a id="v:renderedNodeDefs" class="def">renderedNodeDefs</a> :: Lens' <a href="TensorFlow-Build.html#t:GraphState" title="TensorFlow.Build">GraphState</a> (<a href="../containers-0.6.2.1/Data-Map-Strict.html#t:Map" title="Data.Map.Strict">Map</a> <a href="TensorFlow-Output.html#t:NodeName" title="TensorFlow.Output">NodeName</a> <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-NodeDef.html#t:NodeDef" title="Proto.Tensorflow.Core.Framework.NodeDef">NodeDef</a>) <a href="src/TensorFlow.Build.html#renderedNodeDefs" class="link">Source</a> <a href="#v:renderedNodeDefs" class="selflink">#</a></p></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:BuildT" class="def">BuildT</a> m a <a href="src/TensorFlow.Build.html#BuildT" class="link">Source</a> <a href="#t:BuildT" class="selflink">#</a></p><div class="doc"><p>An action for building nodes in a TensorFlow graph.
|
|
Used to manage build state internally as part of the <code>Session</code> monad.</p></div><div class="subs instances"><h4 class="instances details-toggle-control details-toggle" data-details-id="i:BuildT">Instances</h4><details id="i:BuildT" open="open"><summary class="hide-when-js-enabled">Instances details</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:BuildT:MonadTrans:1"></span> <a href="../transformers-0.5.6.2/Control-Monad-Trans-Class.html#t:MonadTrans" title="Control.Monad.Trans.Class">MonadTrans</a> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a></span> <a href="src/TensorFlow.Build.html#line-191" class="link">Source</a> <a href="#t:BuildT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:BuildT:MonadTrans:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Build.html">TensorFlow.Build</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:lift">lift</a> :: <a href="../base-4.13.0.0/Control-Monad.html#t:Monad" title="Control.Monad">Monad</a> m => m a -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m a <a href="#v:lift" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:BuildT:TensorKind:2"></span> <a href="TensorFlow-Tensor.html#t:TensorKind" title="TensorFlow.Tensor">TensorKind</a> <a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a></span> <a href="src/TensorFlow.Tensor.html#line-191" class="link">Source</a> <a href="#t:TensorKind" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:BuildT:TensorKind:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Tensor.html">TensorFlow.Tensor</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toBuild">toBuild</a> :: <a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a> a -> <a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a> a <a href="src/TensorFlow.Tensor.html#toBuild" class="link">Source</a> <a href="#v:toBuild" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:BuildT:MonadState:3"></span> <a href="../base-4.13.0.0/Control-Monad.html#t:Monad" title="Control.Monad">Monad</a> m => <a href="../mtl-2.2.2/Control-Monad-State-Class.html#t:MonadState" title="Control.Monad.State.Class">MonadState</a> <a href="TensorFlow-Build.html#t:GraphState" title="TensorFlow.Build">GraphState</a> (<a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m)</span> <a href="src/TensorFlow.Build.html#line-192" class="link">Source</a> <a href="#t:BuildT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:BuildT:MonadState:3"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Build.html">TensorFlow.Build</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:get">get</a> :: <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m <a href="TensorFlow-Build.html#t:GraphState" title="TensorFlow.Build">GraphState</a> <a href="#v:get" class="selflink">#</a></p><p class="src"><a href="#v:put">put</a> :: <a href="TensorFlow-Build.html#t:GraphState" title="TensorFlow.Build">GraphState</a> -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m () <a href="#v:put" class="selflink">#</a></p><p class="src"><a href="#v:state">state</a> :: (<a href="TensorFlow-Build.html#t:GraphState" title="TensorFlow.Build">GraphState</a> -> (a, <a href="TensorFlow-Build.html#t:GraphState" title="TensorFlow.Build">GraphState</a>)) -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m a <a href="#v:state" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:BuildT:Monad:4"></span> <a href="../base-4.13.0.0/Control-Monad.html#t:Monad" title="Control.Monad">Monad</a> m => <a href="../base-4.13.0.0/Control-Monad.html#t:Monad" title="Control.Monad">Monad</a> (<a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m)</span> <a href="src/TensorFlow.Build.html#line-191" class="link">Source</a> <a href="#t:BuildT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:BuildT:Monad:4"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Build.html">TensorFlow.Build</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-62--62--61-">(>>=)</a> :: <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m a -> (a -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m b) -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m b <a href="#v:-62--62--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62--62-">(>>)</a> :: <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m a -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m b -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m b <a href="#v:-62--62-" class="selflink">#</a></p><p class="src"><a href="#v:return">return</a> :: a -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m a <a href="#v:return" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:BuildT:Functor:5"></span> <a href="../base-4.13.0.0/Data-Functor.html#t:Functor" title="Data.Functor">Functor</a> m => <a href="../base-4.13.0.0/Data-Functor.html#t:Functor" title="Data.Functor">Functor</a> (<a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m)</span> <a href="src/TensorFlow.Build.html#line-191" class="link">Source</a> <a href="#t:BuildT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:BuildT:Functor:5"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Build.html">TensorFlow.Build</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m a -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m b -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m a <a href="#v:-60--36-" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:BuildT:MonadFix:6"></span> <a href="../base-4.13.0.0/Control-Monad-Fix.html#t:MonadFix" title="Control.Monad.Fix">MonadFix</a> m => <a href="../base-4.13.0.0/Control-Monad-Fix.html#t:MonadFix" title="Control.Monad.Fix">MonadFix</a> (<a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m)</span> <a href="src/TensorFlow.Build.html#line-193" class="link">Source</a> <a href="#t:BuildT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:BuildT:MonadFix:6"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Build.html">TensorFlow.Build</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:mfix">mfix</a> :: (a -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m a) -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m a <a href="#v:mfix" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:BuildT:MonadFail:7"></span> <a href="../base-4.13.0.0/Control-Monad-Fail.html#t:MonadFail" title="Control.Monad.Fail">MonadFail</a> m => <a href="../base-4.13.0.0/Control-Monad-Fail.html#t:MonadFail" title="Control.Monad.Fail">MonadFail</a> (<a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m)</span> <a href="src/TensorFlow.Build.html#line-193" class="link">Source</a> <a href="#t:BuildT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:BuildT:MonadFail:7"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Build.html">TensorFlow.Build</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fail">fail</a> :: <a href="../base-4.13.0.0/Data-String.html#t:String" title="Data.String">String</a> -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m a <a href="#v:fail" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:BuildT:Applicative:8"></span> <a href="../base-4.13.0.0/Control-Monad.html#t:Monad" title="Control.Monad">Monad</a> m => <a href="../base-4.13.0.0/Control-Applicative.html#t:Applicative" title="Control.Applicative">Applicative</a> (<a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m)</span> <a href="src/TensorFlow.Build.html#line-191" class="link">Source</a> <a href="#t:BuildT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:BuildT:Applicative:8"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Build.html">TensorFlow.Build</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:pure">pure</a> :: a -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m a <a href="#v:pure" class="selflink">#</a></p><p class="src"><a href="#v:-60--42--62-">(<*>)</a> :: <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m (a -> b) -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m a -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m 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-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m a -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m b -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m c <a href="#v:liftA2" class="selflink">#</a></p><p class="src"><a href="#v:-42--62-">(*>)</a> :: <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m a -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m b -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m b <a href="#v:-42--62-" class="selflink">#</a></p><p class="src"><a href="#v:-60--42-">(<*)</a> :: <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m a -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m b -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m a <a href="#v:-60--42-" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:BuildT:MonadIO:9"></span> <a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m => <a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> (<a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m)</span> <a href="src/TensorFlow.Build.html#line-191" class="link">Source</a> <a href="#t:BuildT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:BuildT:MonadIO:9"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Build.html">TensorFlow.Build</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftIO">liftIO</a> :: <a href="../base-4.13.0.0/System-IO.html#t:IO" title="System.IO">IO</a> a -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m a <a href="#v:liftIO" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:BuildT:MonadCatch:10"></span> MonadCatch m => MonadCatch (<a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m)</span> <a href="src/TensorFlow.Build.html#line-192" class="link">Source</a> <a href="#t:BuildT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:BuildT:MonadCatch:10"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Build.html">TensorFlow.Build</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:catch">catch</a> :: <a href="../base-4.13.0.0/Control-Exception-Base.html#t:Exception" title="Control.Exception.Base">Exception</a> e => <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m a -> (e -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m a) -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m a</p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:BuildT:MonadMask:11"></span> MonadMask m => MonadMask (<a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m)</span> <a href="src/TensorFlow.Build.html#line-192" class="link">Source</a> <a href="#t:BuildT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:BuildT:MonadMask:11"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Build.html">TensorFlow.Build</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:mask">mask</a> :: ((<span class="keyword">forall</span> a. <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m a -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m a) -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m b) -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m b</p><p class="src"><a href="#v:uninterruptibleMask">uninterruptibleMask</a> :: ((<span class="keyword">forall</span> a. <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m a -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m a) -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m b) -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m b</p><p class="src"><a href="#v:generalBracket">generalBracket</a> :: <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m a -> (a -> ExitCase b -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m c) -> (a -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m b) -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m (b, c)</p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:BuildT:MonadThrow:12"></span> MonadThrow m => MonadThrow (<a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m)</span> <a href="src/TensorFlow.Build.html#line-192" class="link">Source</a> <a href="#t:BuildT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:BuildT:MonadThrow:12"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Build.html">TensorFlow.Build</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:throwM">throwM</a> :: <a href="../base-4.13.0.0/Control-Exception-Base.html#t:Exception" title="Control.Exception.Base">Exception</a> e => e -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m a</p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:BuildT:MonadBuild:13"></span> <a href="../base-4.13.0.0/Control-Monad.html#t:Monad" title="Control.Monad">Monad</a> m => <a href="TensorFlow-Build.html#t:MonadBuild" title="TensorFlow.Build">MonadBuild</a> (<a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m)</span> <a href="src/TensorFlow.Build.html#line-212" class="link">Source</a> <a href="#t:BuildT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:BuildT:MonadBuild:13"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Build.html">TensorFlow.Build</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:build">build</a> :: <a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a> a -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m a <a href="src/TensorFlow.Build.html#build" class="link">Source</a> <a href="#v:build" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:BuildT:PureResult:14"></span> <a href="TensorFlow-Types.html#t:TensorTypes" title="TensorFlow.Types">TensorTypes</a> as => <a href="TensorFlow-BuildOp.html#t:PureResult" title="TensorFlow.BuildOp">PureResult</a> (<a href="TensorFlow-Tensor.html#t:TensorList" title="TensorFlow.Tensor">TensorList</a> <a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a> as)</span> <a href="src/TensorFlow.BuildOp.html#line-270" class="link">Source</a> <a href="#t:PureResult" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:BuildT:PureResult:14"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-BuildOp.html">TensorFlow.BuildOp</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:pureResult">pureResult</a> :: <a href="../mtl-2.2.2/Control-Monad-Reader.html#t:ReaderT" title="Control.Monad.Reader">ReaderT</a> (<a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a> <a href="TensorFlow-Output.html#t:OpDef" title="TensorFlow.Output">OpDef</a>) (<a href="../mtl-2.2.2/Control-Monad-State-Strict.html#t:State" title="Control.Monad.State.Strict">State</a> ResultState) (<a href="TensorFlow-Tensor.html#t:TensorList" title="TensorFlow.Tensor">TensorList</a> <a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a> as) <a href="src/TensorFlow.BuildOp.html#pureResult" class="link">Source</a> <a href="#v:pureResult" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:BuildT:PureResult:15"></span> <a href="TensorFlow-BuildOp.html#t:PureResult" title="TensorFlow.BuildOp">PureResult</a> (<a href="TensorFlow-Tensor.html#t:Tensor" title="TensorFlow.Tensor">Tensor</a> <a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a> a)</span> <a href="src/TensorFlow.BuildOp.html#line-178" class="link">Source</a> <a href="#t:PureResult" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:BuildT:PureResult:15"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-BuildOp.html">TensorFlow.BuildOp</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:pureResult">pureResult</a> :: <a href="../mtl-2.2.2/Control-Monad-Reader.html#t:ReaderT" title="Control.Monad.Reader">ReaderT</a> (<a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a> <a href="TensorFlow-Output.html#t:OpDef" title="TensorFlow.Output">OpDef</a>) (<a href="../mtl-2.2.2/Control-Monad-State-Strict.html#t:State" title="Control.Monad.State.Strict">State</a> ResultState) (<a href="TensorFlow-Tensor.html#t:Tensor" title="TensorFlow.Tensor">Tensor</a> <a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a> a) <a href="src/TensorFlow.BuildOp.html#pureResult" class="link">Source</a> <a href="#v:pureResult" class="selflink">#</a></p></div></details></td></tr></table></details></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:Build" class="def">Build</a> = <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> <a href="../base-4.13.0.0/Data-Functor-Identity.html#t:Identity" title="Data.Functor.Identity">Identity</a> <a href="src/TensorFlow.Build.html#Build" class="link">Source</a> <a href="#t:Build" class="selflink">#</a></p><div class="doc"><p>An action for building nodes in a TensorFlow graph.</p></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="../base-4.13.0.0/Control-Monad.html#t:Monad" title="Control.Monad">Monad</a> m => <a id="t:MonadBuild" class="def">MonadBuild</a> m <span class="keyword">where</span> <a href="src/TensorFlow.Build.html#MonadBuild" class="link">Source</a> <a href="#t:MonadBuild" class="selflink">#</a></p><div class="doc"><p>Lift a <code><a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a></code> action into a monad, including any explicit op renderings.</p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:build" class="def">build</a> :: <a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a> a -> m a <a href="src/TensorFlow.Build.html#build" class="link">Source</a> <a href="#v:build" class="selflink">#</a></p></div><div class="subs instances"><h4 class="instances details-toggle-control details-toggle" data-details-id="i:MonadBuild">Instances</h4><details id="i:MonadBuild" open="open"><summary class="hide-when-js-enabled">Instances details</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:ic:MonadBuild:MonadBuild:1"></span> <a href="../base-4.13.0.0/Control-Monad.html#t:Monad" title="Control.Monad">Monad</a> m => <a href="TensorFlow-Build.html#t:MonadBuild" title="TensorFlow.Build">MonadBuild</a> (<a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m)</span> <a href="src/TensorFlow.Build.html#line-212" class="link">Source</a> <a href="#t:MonadBuild" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:ic:MonadBuild:MonadBuild:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Build.html">TensorFlow.Build</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:build">build</a> :: <a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a> a -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m a <a href="src/TensorFlow.Build.html#build" class="link">Source</a> <a href="#v:build" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:ic:MonadBuild:MonadBuild:2"></span> <a href="../base-4.13.0.0/Control-Monad.html#t:Monad" title="Control.Monad">Monad</a> m => <a href="TensorFlow-Build.html#t:MonadBuild" title="TensorFlow.Build">MonadBuild</a> (<a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m)</span> <a href="src/TensorFlow.Session.html#line-132" class="link">Source</a> <a href="#t:MonadBuild" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:ic:MonadBuild:MonadBuild:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Session.html">TensorFlow.Session</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:build">build</a> :: <a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a> a -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a <a href="src/TensorFlow.Build.html#build" class="link">Source</a> <a href="#v:build" class="selflink">#</a></p></div></details></td></tr></table></details></div></div><div class="top"><p class="src"><a id="v:addInitializer" class="def">addInitializer</a> :: <a href="TensorFlow-Build.html#t:MonadBuild" title="TensorFlow.Build">MonadBuild</a> m => <a href="TensorFlow-Build.html#t:ControlNode" title="TensorFlow.Build">ControlNode</a> -> m () <a href="src/TensorFlow.Build.html#addInitializer" class="link">Source</a> <a href="#v:addInitializer" class="selflink">#</a></p><div class="doc"><p>Registers the given node to be executed before the next
|
|
<code><a href="TensorFlow-Session.html#v:run" title="TensorFlow.Session">run</a></code>.</p></div></div><div class="top"><p class="src"><a id="v:hoistBuildT" class="def">hoistBuildT</a> :: (<span class="keyword">forall</span> a. m a -> n a) -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m b -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> n b <a href="src/TensorFlow.Build.html#hoistBuildT" class="link">Source</a> <a href="#v:hoistBuildT" class="selflink">#</a></p><div class="doc"><p>This is Control.Monad.Morph.hoist sans the dependency.</p></div></div><div class="top"><p class="src"><a id="v:evalBuildT" class="def">evalBuildT</a> :: <a href="../base-4.13.0.0/Control-Monad.html#t:Monad" title="Control.Monad">Monad</a> m => <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m a -> m a <a href="src/TensorFlow.Build.html#evalBuildT" class="link">Source</a> <a href="#v:evalBuildT" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:runBuildT" class="def">runBuildT</a> :: <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m a -> m (a, <a href="TensorFlow-Build.html#t:GraphState" title="TensorFlow.Build">GraphState</a>) <a href="src/TensorFlow.Build.html#runBuildT" class="link">Source</a> <a href="#v:runBuildT" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:asGraphDef" class="def">asGraphDef</a> :: <a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a> a -> <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-Graph.html#t:GraphDef" title="Proto.Tensorflow.Core.Framework.Graph">GraphDef</a> <a href="src/TensorFlow.Build.html#asGraphDef" class="link">Source</a> <a href="#v:asGraphDef" class="selflink">#</a></p><div class="doc"><p>Produce a GraphDef proto representation of the nodes that are rendered in
|
|
the given <code><a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a></code> action.</p></div></div><div class="top"><p class="src"><a id="v:addGraphDef" class="def">addGraphDef</a> :: <a href="TensorFlow-Build.html#t:MonadBuild" title="TensorFlow.Build">MonadBuild</a> m => <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-Graph.html#t:GraphDef" title="Proto.Tensorflow.Core.Framework.Graph">GraphDef</a> -> m () <a href="src/TensorFlow.Build.html#addGraphDef" class="link">Source</a> <a href="#v:addGraphDef" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:flushInitializers" class="def">flushInitializers</a> :: <a href="../base-4.13.0.0/Control-Monad.html#t:Monad" title="Control.Monad">Monad</a> m => <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m [<a href="TensorFlow-Output.html#t:NodeName" title="TensorFlow.Output">NodeName</a>] <a href="src/TensorFlow.Build.html#flushInitializers" class="link">Source</a> <a href="#v:flushInitializers" class="selflink">#</a></p><div class="doc"><p>Get all the initializers that have accumulated so far, and clear
|
|
that buffer.</p></div></div><div class="top"><p class="src"><a id="v:flushNodeBuffer" class="def">flushNodeBuffer</a> :: <a href="TensorFlow-Build.html#t:MonadBuild" title="TensorFlow.Build">MonadBuild</a> m => m [<a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-NodeDef.html#t:NodeDef" title="Proto.Tensorflow.Core.Framework.NodeDef">NodeDef</a>] <a href="src/TensorFlow.Build.html#flushNodeBuffer" class="link">Source</a> <a href="#v:flushNodeBuffer" class="selflink">#</a></p><div class="doc"><p>Get all the NodeDefs that have accumulated so far, and clear that buffer.</p></div></div><div class="top"><p class="src"><a id="v:summaries" class="def">summaries</a> :: Lens' <a href="TensorFlow-Build.html#t:GraphState" title="TensorFlow.Build">GraphState</a> [<a href="TensorFlow-Output.html#t:Output" title="TensorFlow.Output">Output</a>] <a href="src/TensorFlow.Build.html#summaries" class="link">Source</a> <a href="#v:summaries" class="selflink">#</a></p></div><a href="#g:4" id="g:4"><h1>Creating and looking up Ops</h1></a><div class="top"><p class="src"><a id="v:getOrAddOp" class="def">getOrAddOp</a> :: <a href="TensorFlow-Output.html#t:OpDef" title="TensorFlow.Output">OpDef</a> -> <a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a> <a href="TensorFlow-Output.html#t:NodeName" title="TensorFlow.Output">NodeName</a> <a href="src/TensorFlow.Build.html#getOrAddOp" class="link">Source</a> <a href="#v:getOrAddOp" class="selflink">#</a></p><div class="doc"><p>Render the given op if it hasn't been rendered already, and return its
|
|
name.</p></div></div><div class="top"><p class="src"><a id="v:addNewOp" class="def">addNewOp</a> :: <a href="TensorFlow-Output.html#t:OpDef" title="TensorFlow.Output">OpDef</a> -> <a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a> <a href="TensorFlow-Output.html#t:NodeName" title="TensorFlow.Output">NodeName</a> <a href="src/TensorFlow.Build.html#addNewOp" class="link">Source</a> <a href="#v:addNewOp" class="selflink">#</a></p><div class="doc"><p>Add a new node for a given <code><a href="TensorFlow-Output.html#t:OpDef" title="TensorFlow.Output">OpDef</a></code>. This is used for making "stateful" ops
|
|
which are not safe to dedup (e.g, "variable" and "assign").</p></div></div><div class="top"><p class="src"><a id="v:encodeOutput" class="def">encodeOutput</a> :: <a href="TensorFlow-Output.html#t:Output" title="TensorFlow.Output">Output</a> -> <a href="../text-1.2.4.0/Data-Text.html#t:Text" title="Data.Text">Text</a> <a href="src/TensorFlow.Build.html#encodeOutput" class="link">Source</a> <a href="#v:encodeOutput" class="selflink">#</a></p><div class="doc"><p>Turn an <code><a href="TensorFlow-Output.html#t:Output" title="TensorFlow.Output">Output</a></code> into a string representation for the TensorFlow
|
|
foreign APIs.</p></div></div><div class="top"><p class="src"><a id="v:lookupNode" class="def">lookupNode</a> :: <a href="TensorFlow-Output.html#t:NodeName" title="TensorFlow.Output">NodeName</a> -> <a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a> <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-NodeDef.html#t:NodeDef" title="Proto.Tensorflow.Core.Framework.NodeDef">NodeDef</a> <a href="src/TensorFlow.Build.html#lookupNode" class="link">Source</a> <a href="#v:lookupNode" class="selflink">#</a></p></div><a href="#g:5" id="g:5"><h1>Modifying all nodes in a Build action</h1></a><div class="top"><p class="src"><a id="v:withStateLens" class="def">withStateLens</a> :: <a href="TensorFlow-Build.html#t:MonadBuild" title="TensorFlow.Build">MonadBuild</a> m => Lens' <a href="TensorFlow-Build.html#t:GraphState" title="TensorFlow.Build">GraphState</a> a -> (a -> a) -> m b -> m b <a href="src/TensorFlow.Build.html#withStateLens" class="link">Source</a> <a href="#v:withStateLens" class="selflink">#</a></p><div class="doc"><p>Modify some part of the state, run an action, and restore the state
|
|
after that action is done.</p></div></div><div class="top"><p class="src"><a id="v:withDevice" class="def">withDevice</a> :: <a href="TensorFlow-Build.html#t:MonadBuild" title="TensorFlow.Build">MonadBuild</a> m => <a href="../base-4.13.0.0/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> <a href="TensorFlow-Output.html#t:Device" title="TensorFlow.Output">Device</a> -> m a -> m a <a href="src/TensorFlow.Build.html#withDevice" class="link">Source</a> <a href="#v:withDevice" class="selflink">#</a></p><div class="doc"><p>Set a device for all nodes rendered in the given <code><a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a></code> action
|
|
(unless further overridden by another use of withDevice).</p></div></div><div class="top"><p class="src"><a id="v:withNameScope" class="def">withNameScope</a> :: <a href="TensorFlow-Build.html#t:MonadBuild" title="TensorFlow.Build">MonadBuild</a> m => <a href="../text-1.2.4.0/Data-Text.html#t:Text" title="Data.Text">Text</a> -> m a -> m a <a href="src/TensorFlow.Build.html#withNameScope" class="link">Source</a> <a href="#v:withNameScope" class="selflink">#</a></p><div class="doc"><p>Prepend a scope to all nodes rendered in the given <code><a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a></code> action.</p></div></div><div class="top"><p class="src"><a id="v:withNodeDependencies" class="def">withNodeDependencies</a> :: <a href="TensorFlow-Build.html#t:MonadBuild" title="TensorFlow.Build">MonadBuild</a> m => <a href="../containers-0.6.2.1/Data-Set.html#t:Set" title="Data.Set">Set</a> <a href="TensorFlow-Output.html#t:NodeName" title="TensorFlow.Output">NodeName</a> -> m a -> m a <a href="src/TensorFlow.Build.html#withNodeDependencies" class="link">Source</a> <a href="#v:withNodeDependencies" class="selflink">#</a></p><div class="doc"><p>Add control inputs to all nodes rendered in the given <code><a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a></code> action.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.23.0</p></div></body></html> |