tensorflow-haskell/docs/haddock/tensorflow-0.3.0.0/TensorFlow-Core.html

48 lines
232 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.Core</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.Core.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.Core</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">Session</a><ul><li><a href="#g:2">Building graphs</a></li><li><a href="#g:3">Running graphs</a></li><li><a href="#g:4">Async</a></li></ul></li><li><a href="#g:5">Build</a></li><li><a href="#g:6">Tensor</a><ul><li><a href="#g:7">Element types</a></li></ul></li><li><a href="#g:8">Op combinators</a><ul><li><a href="#g:9">Dependencies</a></li><li><a href="#g:10">Misc</a></li></ul></li></ul></div></div><div id="description"><p class="caption">Description</p><div class="doc"><p>The core functionality of TensorFlow.</p><p>Unless you are defining ops, you do not need to import other modules from
this package.</p><p>Basic ops are provided in the tensorflow-ops and tensorflow-core-ops
packages.</p></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">type</span> <a href="#t:Session">Session</a> = <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> <a href="../base-4.13.0.0/System-IO.html#t:IO" title="System.IO">IO</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:Options">Options</a></li><li class="src short"><a href="#v:sessionConfig">sessionConfig</a> :: Lens' <a href="TensorFlow-Core.html#t:Options" title="TensorFlow.Core">Options</a> <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Protobuf-Config.html#t:ConfigProto" title="Proto.Tensorflow.Core.Protobuf.Config">ConfigProto</a></li><li class="src short"><a href="#v:sessionTarget">sessionTarget</a> :: Lens' <a href="TensorFlow-Core.html#t:Options" title="TensorFlow.Core">Options</a> <a href="../bytestring-0.10.10.1/Data-ByteString.html#t:ByteString" title="Data.ByteString">ByteString</a></li><li class="src short"><a href="#v:sessionTracer">sessionTracer</a> :: Lens' <a href="TensorFlow-Core.html#t:Options" title="TensorFlow.Core">Options</a> Tracer</li><li class="src short"><a href="#v:runSession">runSession</a> :: (MonadMask m, <a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m) =&gt; <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a -&gt; m a</li><li class="src short"><a href="#v:runSessionWithOptions">runSessionWithOptions</a> :: (MonadMask m, <a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m) =&gt; <a href="TensorFlow-Core.html#t:Options" title="TensorFlow.Core">Options</a> -&gt; <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a -&gt; m 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 =&gt; <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-Core.html#t:Build" title="TensorFlow.Core">Build</a> a -&gt; m a</li></ul></li><li class="src short"><span class="keyword">class</span> <a href="TensorFlow-Core.html#t:Nodes" title="TensorFlow.Core">Nodes</a> t =&gt; <a href="#t:Fetchable">Fetchable</a> t a</li><li class="src short"><span class="keyword">class</span> <a href="#t:Nodes">Nodes</a> t</li><li class="src short"><a href="#v:run">run</a> :: (<a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m, <a href="TensorFlow-Core.html#t:Fetchable" title="TensorFlow.Core">Fetchable</a> t a) =&gt; t -&gt; <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a</li><li class="src short"><a href="#v:run_">run_</a> :: (<a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m, <a href="TensorFlow-Core.html#t:Nodes" title="TensorFlow.Core">Nodes</a> t) =&gt; t -&gt; <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m ()</li><li class="src short"><span class="keyword">data</span> <a href="#t:Feed">Feed</a></li><li class="src short"><a href="#v:feed">feed</a> :: <a href="TensorFlow-Tensor.html#t:Rendered" title="TensorFlow.Tensor">Rendered</a> t =&gt; t a -&gt; <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> a -&gt; <a href="TensorFlow-Core.html#t:Feed" title="TensorFlow.Core">Feed</a></li><li class="src short"><a href="#v:runWithFeeds">runWithFeeds</a> :: (<a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m, <a href="TensorFlow-Core.html#t:Fetchable" title="TensorFlow.Core">Fetchable</a> t a) =&gt; [<a href="TensorFlow-Core.html#t:Feed" title="TensorFlow.Core">Feed</a>] -&gt; t -&gt; <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a</li><li class="src short"><a href="#v:runWithFeeds_">runWithFeeds_</a> :: (<a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m, <a href="TensorFlow-Core.html#t:Nodes" title="TensorFlow.Core">Nodes</a> t) =&gt; [<a href="TensorFlow-Core.html#t:Feed" title="TensorFlow.Core">Feed</a>] -&gt; t -&gt; <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m ()</li><li class="src short"><a href="#v:asyncProdNodes">asyncProdNodes</a> :: (<a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m, <a href="TensorFlow-Core.html#t:Nodes" title="TensorFlow.Core">Nodes</a> t) =&gt; t -&gt; <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m ()</li><li class="src short"><span class="keyword">type</span> <a href="#t:Build">Build</a> = <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">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">data</span> <a href="#t:BuildT">BuildT</a> m a</li><li class="src short"><a href="#v:render">render</a> :: <a href="TensorFlow-Core.html#t:MonadBuild" title="TensorFlow.Core">MonadBuild</a> m =&gt; <a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">Build</a> a -&gt; m (<a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a> a)</li><li class="src short"><a href="#v:asGraphDef">asGraphDef</a> :: <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">Build</a> a -&gt; <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-Core.html#t:MonadBuild" title="TensorFlow.Core">MonadBuild</a> m =&gt; <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-Graph.html#t:GraphDef" title="Proto.Tensorflow.Core.Framework.Graph">GraphDef</a> -&gt; m ()</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:opAttr">opAttr</a> :: <a href="TensorFlow-Types.html#t:Attribute" title="TensorFlow.Types">Attribute</a> a =&gt; <a href="../text-1.2.4.0/Data-Text.html#t:Text" title="Data.Text">Text</a> -&gt; Lens' <a href="TensorFlow-Output.html#t:OpDef" title="TensorFlow.Output">OpDef</a> a</li><li class="src short"><a href="#v:addInitializer">addInitializer</a> :: <a href="TensorFlow-Core.html#t:MonadBuild" title="TensorFlow.Core">MonadBuild</a> m =&gt; <a href="TensorFlow-Core.html#t:ControlNode" title="TensorFlow.Core">ControlNode</a> -&gt; m ()</li><li class="src short"><span class="keyword">data</span> <a href="#t:ControlNode">ControlNode</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:Tensor">Tensor</a> v a</li><li class="src short"><span class="keyword">data</span> <a href="#t:Value">Value</a> a</li><li class="src short"><span class="keyword">data</span> <a href="#t:Ref">Ref</a> a</li><li class="src short"><a href="#v:value">value</a> :: <a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> <a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a> a -&gt; <a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a> a</li><li class="src short"><a href="#v:tensorFromName">tensorFromName</a> :: <a href="TensorFlow-Tensor.html#t:TensorKind" title="TensorFlow.Tensor">TensorKind</a> v =&gt; <a href="../text-1.2.4.0/Data-Text.html#t:Text" title="Data.Text">Text</a> -&gt; <a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> v a</li><li class="src short"><a href="#v:expr">expr</a> :: <a href="TensorFlow-Tensor.html#t:TensorKind" title="TensorFlow.Tensor">TensorKind</a> v =&gt; <a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> v a -&gt; <a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">Build</a> a</li><li class="src short"><span class="keyword">class</span> <a href="#t:TensorType">TensorType</a> a</li><li class="src short"><span class="keyword">data</span> <a href="#t:TensorData">TensorData</a> a</li><li class="src short"><span class="keyword">class</span> <a href="TensorFlow-Core.html#t:TensorType" title="TensorFlow.Core">TensorType</a> a =&gt; <a href="#t:TensorDataType">TensorDataType</a> s a <span class="keyword">where</span><ul class="subs"><li><a href="#v:decodeTensorData">decodeTensorData</a> :: <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> a -&gt; s a</li><li><a href="#v:encodeTensorData">encodeTensorData</a> :: <a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a> -&gt; s a -&gt; <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> a</li></ul></li><li class="src short"><span class="keyword">type</span> <a href="#t:ResourceHandle">ResourceHandle</a> = <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-ResourceHandle.html#t:ResourceHandleProto" title="Proto.Tensorflow.Core.Framework.ResourceHandle">ResourceHandleProto</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><li class="src short"><span class="keyword">newtype</span> <a href="#t:Shape">Shape</a> = <a href="#v:Shape">Shape</a> [<a href="../base-4.13.0.0/Data-Int.html#t:Int64" title="Data.Int">Int64</a>]</li><li class="src short"><span class="keyword">type</span> <a href="#t:OneOf">OneOf</a> ts a = (<a href="TensorFlow-Core.html#t:TensorType" title="TensorFlow.Core">TensorType</a> a, TensorTypes' ts, <a href="TensorFlow-Types.html#t:NoneOf" title="TensorFlow.Types">NoneOf</a> (<a href="TensorFlow-Types.html#t:AllTensorTypes" title="TensorFlow.Types">AllTensorTypes</a> <a href="TensorFlow-Types.html#t:-92--92-" title="TensorFlow.Types">\\</a> ts) a)</li><li class="src short"><span class="keyword">type family</span> a <a href="#t:-47--61-">/=</a> b :: <a href="../base-4.13.0.0/Data-Kind.html#t:Constraint" title="Data.Kind">Constraint</a> <span class="keyword">where ...</span></li><li class="src short"><a href="#v:colocateWith">colocateWith</a> :: (<a href="TensorFlow-Core.html#t:MonadBuild" title="TensorFlow.Core">MonadBuild</a> m, <a href="TensorFlow-Tensor.html#t:Rendered" title="TensorFlow.Tensor">Rendered</a> t) =&gt; t b -&gt; m a -&gt; m a</li><li class="src short"><span class="keyword">newtype</span> <a href="#t:Device">Device</a> = <a href="#v:Device">Device</a> {<ul class="subs"><li><a href="#v:deviceName">deviceName</a> :: <a href="../text-1.2.4.0/Data-Text.html#t:Text" title="Data.Text">Text</a></li></ul>}</li><li class="src short"><a href="#v:withDevice">withDevice</a> :: <a href="TensorFlow-Core.html#t:MonadBuild" title="TensorFlow.Core">MonadBuild</a> m =&gt; <a href="../base-4.13.0.0/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> <a href="TensorFlow-Core.html#t:Device" title="TensorFlow.Core">Device</a> -&gt; m a -&gt; m a</li><li class="src short"><a href="#v:withNameScope">withNameScope</a> :: <a href="TensorFlow-Core.html#t:MonadBuild" title="TensorFlow.Core">MonadBuild</a> m =&gt; <a href="../text-1.2.4.0/Data-Text.html#t:Text" title="Data.Text">Text</a> -&gt; m a -&gt; m a</li><li class="src short"><a href="#v:withControlDependencies">withControlDependencies</a> :: (<a href="TensorFlow-Core.html#t:MonadBuild" title="TensorFlow.Core">MonadBuild</a> m, <a href="TensorFlow-Core.html#t:Nodes" title="TensorFlow.Core">Nodes</a> t) =&gt; t -&gt; m a -&gt; m a</li><li class="src short"><a href="#v:group">group</a> :: (<a href="TensorFlow-Core.html#t:MonadBuild" title="TensorFlow.Core">MonadBuild</a> m, <a href="TensorFlow-Core.html#t:Nodes" title="TensorFlow.Core">Nodes</a> t) =&gt; t -&gt; m <a href="TensorFlow-Core.html#t:ControlNode" title="TensorFlow.Core">ControlNode</a></li><li class="src short"><a href="#v:noOp">noOp</a> :: <a href="TensorFlow-Core.html#t:MonadBuild" title="TensorFlow.Core">MonadBuild</a> m =&gt; m <a href="TensorFlow-Core.html#t:ControlNode" title="TensorFlow.Core">ControlNode</a></li></ul></details></div><div id="interface"><a href="#g:1" id="g:1"><h1>Session</h1></a><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:Session" class="def">Session</a> = <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> <a href="../base-4.13.0.0/System-IO.html#t:IO" title="System.IO">IO</a> <a href="src/TensorFlow.Session.html#Session" class="link">Source</a> <a href="#t:Session" class="selflink">#</a></p></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:Options" class="def">Options</a> <a href="src/TensorFlow.Session.html#Options" class="link">Source</a> <a href="#t:Options" class="selflink">#</a></p><div class="doc"><p>Customization for session. Use the lenses to update:
<code><a href="TensorFlow-Core.html#v:sessionTarget" title="TensorFlow.Core">sessionTarget</a></code>, <code><a href="TensorFlow-Core.html#v:sessionTracer" title="TensorFlow.Core">sessionTracer</a></code>, <code><a href="TensorFlow-Core.html#v:sessionConfig" title="TensorFlow.Core">sessionConfig</a></code>.</p></div><div class="subs instances"><h4 class="instances details-toggle-control details-toggle" data-details-id="i:Options">Instances</h4><details id="i:Options" 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:Options:Default:1"></span> Default <a href="TensorFlow-Core.html#t:Options" title="TensorFlow.Core">Options</a></span> <a href="src/TensorFlow.Session.html#line-100" class="link">Source</a> <a href="#t:Options" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Options:Default:1"><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:def">def</a> :: <a href="TensorFlow-Core.html#t:Options" title="TensorFlow.Core">Options</a></p></div></details></td></tr></table></details></div></div><div class="top"><p class="src"><a id="v:sessionConfig" class="def">sessionConfig</a> :: Lens' <a href="TensorFlow-Core.html#t:Options" title="TensorFlow.Core">Options</a> <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Protobuf-Config.html#t:ConfigProto" title="Proto.Tensorflow.Core.Protobuf.Config">ConfigProto</a> <a href="src/TensorFlow.Session.html#sessionConfig" class="link">Source</a> <a href="#v:sessionConfig" class="selflink">#</a></p><div class="doc"><p>Uses the specified config for the created session.</p></div></div><div class="top"><p class="src"><a id="v:sessionTarget" class="def">sessionTarget</a> :: Lens' <a href="TensorFlow-Core.html#t:Options" title="TensorFlow.Core">Options</a> <a href="../bytestring-0.10.10.1/Data-ByteString.html#t:ByteString" title="Data.ByteString">ByteString</a> <a href="src/TensorFlow.Session.html#sessionTarget" class="link">Source</a> <a href="#v:sessionTarget" class="selflink">#</a></p><div class="doc"><p>Target can be: &quot;local&quot;, ip:port, host:port.
The set of supported factories depends on the linked in libraries.</p></div></div><div class="top"><p class="src"><a id="v:sessionTracer" class="def">sessionTracer</a> :: Lens' <a href="TensorFlow-Core.html#t:Options" title="TensorFlow.Core">Options</a> Tracer <a href="src/TensorFlow.Session.html#sessionTracer" class="link">Source</a> <a href="#v:sessionTracer" class="selflink">#</a></p><div class="doc"><p>Uses the given logger to monitor session progress.</p></div></div><div class="top"><p class="src"><a id="v:runSession" class="def">runSession</a> :: (MonadMask m, <a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m) =&gt; <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a -&gt; m a <a href="src/TensorFlow.Session.html#runSession" class="link">Source</a> <a href="#v:runSession" class="selflink">#</a></p><div class="doc"><p>Run <code><a href="TensorFlow-Core.html#t:Session" title="TensorFlow.Core">Session</a></code> actions in a new TensorFlow session.</p></div></div><div class="top"><p class="src"><a id="v:runSessionWithOptions" class="def">runSessionWithOptions</a> :: (MonadMask m, <a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m) =&gt; <a href="TensorFlow-Core.html#t:Options" title="TensorFlow.Core">Options</a> -&gt; <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a -&gt; m a <a href="src/TensorFlow.Session.html#runSessionWithOptions" class="link">Source</a> <a href="#v:runSessionWithOptions" class="selflink">#</a></p><div class="doc"><p>Run <code><a href="TensorFlow-Core.html#t:Session" title="TensorFlow.Core">Session</a></code> actions in a new TensorFlow session created with
the given option setter actions (<code><a href="TensorFlow-Core.html#v:sessionTarget" title="TensorFlow.Core">sessionTarget</a></code>, <code><a href="TensorFlow-Core.html#v:sessionConfig" title="TensorFlow.Core">sessionConfig</a></code>).</p></div></div><a href="#g:2" id="g:2"><h2>Building graphs</h2></a><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 =&gt; <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-Core.html#t:Build" title="TensorFlow.Core">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-Core.html#t:Build" title="TensorFlow.Core">Build</a> a -&gt; 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 =&gt; <a href="TensorFlow-Core.html#t:MonadBuild" title="TensorFlow.Core">MonadBuild</a> (<a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">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">&nbsp;</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-Core.html#t:Build" title="TensorFlow.Core">Build</a> a -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">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 =&gt; <a href="TensorFlow-Core.html#t:MonadBuild" title="TensorFlow.Core">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">&nbsp;</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-Core.html#t:Build" title="TensorFlow.Core">Build</a> a -&gt; <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><a href="#g:3" id="g:3"><h2>Running graphs</h2></a><div class="top"><p class="src"><span class="keyword">class</span> <a href="TensorFlow-Core.html#t:Nodes" title="TensorFlow.Core">Nodes</a> t =&gt; <a id="t:Fetchable" class="def">Fetchable</a> t a <a href="src/TensorFlow.Nodes.html#Fetchable" class="link">Source</a> <a href="#t:Fetchable" class="selflink">#</a></p><div class="doc"><p>Types that tensor representations (e.g. <code><a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a></code>, <code><a href="TensorFlow-Core.html#t:ControlNode" title="TensorFlow.Core">ControlNode</a></code>) can be
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" title="TensorFlow.Nodes">getFetch</a></p></div><div class="subs instances"><h4 class="instances details-toggle-control details-toggle" data-details-id="i:Fetchable">Instances</h4><details id="i:Fetchable" 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:Fetchable:Fetchable:1"></span> a ~ () =&gt; <a href="TensorFlow-Core.html#t:Fetchable" title="TensorFlow.Core">Fetchable</a> <a href="TensorFlow-Core.html#t:ControlNode" title="TensorFlow.Core">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">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:Fetchable:Fetchable: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:getFetch">getFetch</a> :: <a href="TensorFlow-Core.html#t:ControlNode" title="TensorFlow.Core">ControlNode</a> -&gt; <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">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><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:ic:Fetchable:Fetchable:2"></span> <a href="TensorFlow-Core.html#t:Fetchable" title="TensorFlow.Core">Fetchable</a> t a =&gt; <a href="TensorFlow-Core.html#t:Fetchable" title="TensorFlow.Core">Fetchable</a> [t] [a]</span> <a href="src/TensorFlow.Nodes.html#line-88" class="link">Source</a> <a href="#t:Fetchable" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:Fetchable:Fetchable:2"><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> :: [t] -&gt; <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">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><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:ic:Fetchable:Fetchable:3"></span> <a href="TensorFlow-Core.html#t:Fetchable" title="TensorFlow.Core">Fetchable</a> t a =&gt; <a href="TensorFlow-Core.html#t:Fetchable" title="TensorFlow.Core">Fetchable</a> (<a href="../base-4.13.0.0/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> t) (<a href="../base-4.13.0.0/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> a)</span> <a href="src/TensorFlow.Nodes.html#line-94" class="link">Source</a> <a href="#t:Fetchable" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:Fetchable: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="../base-4.13.0.0/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> t -&gt; <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">Build</a> (<a href="TensorFlow-Nodes.html#t:Fetch" title="TensorFlow.Nodes">Fetch</a> (<a href="../base-4.13.0.0/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</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><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:ic:Fetchable:Fetchable:4"></span> l ~ <a href="TensorFlow-Types.html#t:List" title="TensorFlow.Types">List</a> ('[] :: [<a href="../base-4.13.0.0/Data-Kind.html#t:Type" title="Data.Kind">Type</a>]) =&gt; <a href="TensorFlow-Core.html#t:Fetchable" title="TensorFlow.Core">Fetchable</a> (<a href="TensorFlow-Types.html#t:ListOf" title="TensorFlow.Types">ListOf</a> f ('[] :: [<a href="../base-4.13.0.0/Data-Kind.html#t:Type" title="Data.Kind">Type</a>])) l</span> <a href="src/TensorFlow.Nodes.html#line-113" class="link">Source</a> <a href="#t:Fetchable" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:Fetchable:Fetchable:4"><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-Types.html#t:ListOf" title="TensorFlow.Types">ListOf</a> f '[] -&gt; <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">Build</a> (<a href="TensorFlow-Nodes.html#t:Fetch" title="TensorFlow.Nodes">Fetch</a> l) <a href="src/TensorFlow.Nodes.html#getFetch" class="link">Source</a> <a href="#v:getFetch" 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:Fetchable:Fetchable:5"></span> (<a href="TensorFlow-Core.html#t:TensorType" title="TensorFlow.Core">TensorType</a> a, <a href="TensorFlow-Core.html#t:TensorDataType" title="TensorFlow.Core">TensorDataType</a> s a, a ~ a') =&gt; <a href="TensorFlow-Core.html#t:Fetchable" title="TensorFlow.Core">Fetchable</a> (<a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> v a) (s a')</span> <a href="src/TensorFlow.Nodes.html#line-144" class="link">Source</a> <a href="#t:Fetchable" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:Fetchable:Fetchable:5"><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-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> v a -&gt; <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">Build</a> (<a href="TensorFlow-Nodes.html#t:Fetch" title="TensorFlow.Nodes">Fetch</a> (s a')) <a href="src/TensorFlow.Nodes.html#getFetch" class="link">Source</a> <a href="#v:getFetch" 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:Fetchable:Fetchable:6"></span> (<a href="TensorFlow-Core.html#t:TensorType" title="TensorFlow.Core">TensorType</a> a, a ~ a') =&gt; <a href="TensorFlow-Core.html#t:Fetchable" title="TensorFlow.Core">Fetchable</a> (<a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> v a) (<a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> a')</span> <a href="src/TensorFlow.Nodes.html#line-141" class="link">Source</a> <a href="#t:Fetchable" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:Fetchable:Fetchable:6"><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-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> v a -&gt; <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">Build</a> (<a href="TensorFlow-Nodes.html#t:Fetch" title="TensorFlow.Nodes">Fetch</a> (<a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</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><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:ic:Fetchable:Fetchable:7"></span> (<a href="TensorFlow-Core.html#t:Fetchable" title="TensorFlow.Core">Fetchable</a> t1 a1, <a href="TensorFlow-Core.html#t:Fetchable" title="TensorFlow.Core">Fetchable</a> t2 a2) =&gt; <a href="TensorFlow-Core.html#t:Fetchable" title="TensorFlow.Core">Fetchable</a> (t1, t2) (a1, a2)</span> <a href="src/TensorFlow.Nodes.html#line-77" class="link">Source</a> <a href="#t:Fetchable" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:Fetchable:Fetchable:7"><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> :: (t1, t2) -&gt; <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">Build</a> (<a href="TensorFlow-Nodes.html#t:Fetch" title="TensorFlow.Nodes">Fetch</a> (a1, a2)) <a href="src/TensorFlow.Nodes.html#getFetch" class="link">Source</a> <a href="#v:getFetch" 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:Fetchable:Fetchable:8"></span> (<a href="TensorFlow-Core.html#t:Fetchable" title="TensorFlow.Core">Fetchable</a> (f t) a, <a href="TensorFlow-Core.html#t:Fetchable" title="TensorFlow.Core">Fetchable</a> (<a href="TensorFlow-Types.html#t:ListOf" title="TensorFlow.Types">ListOf</a> f ts) (<a href="TensorFlow-Types.html#t:List" title="TensorFlow.Types">List</a> as), i ~ <a href="../base-4.13.0.0/Data-Functor-Identity.html#t:Identity" title="Data.Functor.Identity">Identity</a>) =&gt; <a href="TensorFlow-Core.html#t:Fetchable" title="TensorFlow.Core">Fetchable</a> (<a href="TensorFlow-Types.html#t:ListOf" title="TensorFlow.Types">ListOf</a> f (t ': ts)) (<a href="TensorFlow-Types.html#t:ListOf" title="TensorFlow.Types">ListOf</a> i (a ': as))</span> <a href="src/TensorFlow.Nodes.html#line-116" class="link">Source</a> <a href="#t:Fetchable" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:Fetchable:Fetchable:8"><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-Types.html#t:ListOf" title="TensorFlow.Types">ListOf</a> f (t ': ts) -&gt; <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">Build</a> (<a href="TensorFlow-Nodes.html#t:Fetch" title="TensorFlow.Nodes">Fetch</a> (<a href="TensorFlow-Types.html#t:ListOf" title="TensorFlow.Types">ListOf</a> i (a ': as))) <a href="src/TensorFlow.Nodes.html#getFetch" class="link">Source</a> <a href="#v:getFetch" 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:Fetchable:Fetchable:9"></span> (<a href="TensorFlow-Core.html#t:Fetchable" title="TensorFlow.Core">Fetchable</a> t1 a1, <a href="TensorFlow-Core.html#t:Fetchable" title="TensorFlow.Core">Fetchable</a> t2 a2, <a href="TensorFlow-Core.html#t:Fetchable" title="TensorFlow.Core">Fetchable</a> t3 a3) =&gt; <a href="TensorFlow-Core.html#t:Fetchable" title="TensorFlow.Core">Fetchable</a> (t1, t2, t3) (a1, a2, a3)</span> <a href="src/TensorFlow.Nodes.html#line-80" class="link">Source</a> <a href="#t:Fetchable" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:Fetchable:Fetchable:9"><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> :: (t1, t2, t3) -&gt; <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">Build</a> (<a href="TensorFlow-Nodes.html#t:Fetch" title="TensorFlow.Nodes">Fetch</a> (a1, a2, a3)) <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">class</span> <a id="t:Nodes" class="def">Nodes</a> t <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" title="TensorFlow.Nodes">getNodes</a></p></div><div class="subs instances"><h4 class="instances details-toggle-control details-toggle" data-details-id="i:Nodes">Instances</h4><details id="i:Nodes" 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:Nodes:Nodes:1"></span> <a href="TensorFlow-Core.html#t:Nodes" title="TensorFlow.Core">Nodes</a> <a href="TensorFlow-Core.html#t:ControlNode" title="TensorFlow.Core">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">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:Nodes: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-Core.html#t:ControlNode" title="TensorFlow.Core">ControlNode</a> -&gt; <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">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:ic:Nodes:Nodes:2"></span> <a href="TensorFlow-Core.html#t:Nodes" title="TensorFlow.Core">Nodes</a> t =&gt; <a href="TensorFlow-Core.html#t:Nodes" title="TensorFlow.Core">Nodes</a> [t]</span> <a href="src/TensorFlow.Nodes.html#line-85" class="link">Source</a> <a href="#t:Nodes" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:Nodes:Nodes:2"><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> :: [t] -&gt; <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">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:ic:Nodes:Nodes:3"></span> <a href="TensorFlow-Core.html#t:Nodes" title="TensorFlow.Core">Nodes</a> t =&gt; <a href="TensorFlow-Core.html#t:Nodes" title="TensorFlow.Core">Nodes</a> (<a href="../base-4.13.0.0/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> t)</span> <a href="src/TensorFlow.Nodes.html#line-91" class="link">Source</a> <a href="#t:Nodes" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:Nodes:Nodes: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:getNodes">getNodes</a> :: <a href="../base-4.13.0.0/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> t -&gt; <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">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:ic:Nodes:Nodes:4"></span> (<a href="TensorFlow-Core.html#t:Nodes" title="TensorFlow.Core">Nodes</a> t1, <a href="TensorFlow-Core.html#t:Nodes" title="TensorFlow.Core">Nodes</a> t2) =&gt; <a href="TensorFlow-Core.html#t:Nodes" title="TensorFlow.Core">Nodes</a> (t1, t2)</span> <a href="src/TensorFlow.Nodes.html#line-71" class="link">Source</a> <a href="#t:Nodes" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:Nodes:Nodes:4"><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> :: (t1, t2) -&gt; <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">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:ic:Nodes:Nodes:5"></span> (<a href="TensorFlow-Core.html#t:Nodes" title="TensorFlow.Core">Nodes</a> (f a), <a href="TensorFlow-Core.html#t:Nodes" title="TensorFlow.Core">Nodes</a> (<a href="TensorFlow-Types.html#t:ListOf" title="TensorFlow.Types">ListOf</a> f as)) =&gt; <a href="TensorFlow-Core.html#t:Nodes" title="TensorFlow.Core">Nodes</a> (<a href="TensorFlow-Types.html#t:ListOf" title="TensorFlow.Types">ListOf</a> f (a ': as))</span> <a href="src/TensorFlow.Nodes.html#line-110" class="link">Source</a> <a href="#t:Nodes" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:Nodes:Nodes:5"><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-Types.html#t:ListOf" title="TensorFlow.Types">ListOf</a> f (a ': as) -&gt; <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">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:ic:Nodes:Nodes:6"></span> <a href="TensorFlow-Core.html#t:Nodes" title="TensorFlow.Core">Nodes</a> (<a href="TensorFlow-Types.html#t:ListOf" title="TensorFlow.Types">ListOf</a> f ('[] :: [<a href="../base-4.13.0.0/Data-Kind.html#t:Type" title="Data.Kind">Type</a>]))</span> <a href="src/TensorFlow.Nodes.html#line-107" class="link">Source</a> <a href="#t:Nodes" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:Nodes:Nodes:6"><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-Types.html#t:ListOf" title="TensorFlow.Types">ListOf</a> f '[] -&gt; <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">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:ic:Nodes:Nodes:7"></span> <a href="TensorFlow-Core.html#t:Nodes" title="TensorFlow.Core">Nodes</a> (<a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> v a)</span> <a href="src/TensorFlow.Nodes.html#line-120" class="link">Source</a> <a href="#t:Nodes" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:Nodes:Nodes:7"><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-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> v a -&gt; <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">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:ic:Nodes:Nodes:8"></span> (<a href="TensorFlow-Core.html#t:Nodes" title="TensorFlow.Core">Nodes</a> t1, <a href="TensorFlow-Core.html#t:Nodes" title="TensorFlow.Core">Nodes</a> t2, <a href="TensorFlow-Core.html#t:Nodes" title="TensorFlow.Core">Nodes</a> t3) =&gt; <a href="TensorFlow-Core.html#t:Nodes" title="TensorFlow.Core">Nodes</a> (t1, t2, t3)</span> <a href="src/TensorFlow.Nodes.html#line-74" class="link">Source</a> <a href="#t:Nodes" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:Nodes:Nodes:8"><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> :: (t1, t2, t3) -&gt; <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">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></table></details></div></div><div class="top"><p class="src"><a id="v:run" class="def">run</a> :: (<a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m, <a href="TensorFlow-Core.html#t:Fetchable" title="TensorFlow.Core">Fetchable</a> t a) =&gt; t -&gt; <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a <a href="src/TensorFlow.Session.html#run" class="link">Source</a> <a href="#v:run" class="selflink">#</a></p><div class="doc"><p>Run a subgraph <code>t</code>, rendering any dependent nodes that aren't already
rendered, and fetch the corresponding values for <code>a</code>.</p></div></div><div class="top"><p class="src"><a id="v:run_" class="def">run_</a> :: (<a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m, <a href="TensorFlow-Core.html#t:Nodes" title="TensorFlow.Core">Nodes</a> t) =&gt; t -&gt; <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m () <a href="src/TensorFlow.Session.html#run_" class="link">Source</a> <a href="#v:run_" class="selflink">#</a></p><div class="doc"><p>Run a subgraph <code>t</code>, rendering and extending any dependent nodes that aren't
already rendered. This behaves like <code><a href="TensorFlow-Core.html#v:run" title="TensorFlow.Core">run</a></code> except that it doesn't do any
fetches.</p></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:Feed" class="def">Feed</a> <a href="src/TensorFlow.Tensor.html#Feed" class="link">Source</a> <a href="#t:Feed" class="selflink">#</a></p><div class="doc"><p>A pair of a <code><a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a></code> and some data that should be fed into that <code><a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a></code>
when running the graph.</p></div></div><div class="top"><p class="src"><a id="v:feed" class="def">feed</a> :: <a href="TensorFlow-Tensor.html#t:Rendered" title="TensorFlow.Tensor">Rendered</a> t =&gt; t a -&gt; <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> a -&gt; <a href="TensorFlow-Core.html#t:Feed" title="TensorFlow.Core">Feed</a> <a href="src/TensorFlow.Tensor.html#feed" class="link">Source</a> <a href="#v:feed" class="selflink">#</a></p><div class="doc"><p>Create a <code><a href="TensorFlow-Core.html#t:Feed" title="TensorFlow.Core">Feed</a></code> for feeding the given data into a <code><a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a></code> when running
the graph.</p><p>Note that if a <code><a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a></code> is rendered, its identity may change; so feeding the
rendered <code><a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a></code> may be different than feeding the original <code><a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a></code>.</p></div></div><div class="top"><p class="src"><a id="v:runWithFeeds" class="def">runWithFeeds</a> :: (<a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m, <a href="TensorFlow-Core.html#t:Fetchable" title="TensorFlow.Core">Fetchable</a> t a) =&gt; [<a href="TensorFlow-Core.html#t:Feed" title="TensorFlow.Core">Feed</a>] -&gt; t -&gt; <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a <a href="src/TensorFlow.Session.html#runWithFeeds" class="link">Source</a> <a href="#v:runWithFeeds" class="selflink">#</a></p><div class="doc"><p>Run a subgraph <code>t</code>, rendering any dependent nodes that aren't already
rendered, feed the given input values, and fetch the corresponding result
values for <code>a</code>.</p></div></div><div class="top"><p class="src"><a id="v:runWithFeeds_" class="def">runWithFeeds_</a> :: (<a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m, <a href="TensorFlow-Core.html#t:Nodes" title="TensorFlow.Core">Nodes</a> t) =&gt; [<a href="TensorFlow-Core.html#t:Feed" title="TensorFlow.Core">Feed</a>] -&gt; t -&gt; <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m () <a href="src/TensorFlow.Session.html#runWithFeeds_" class="link">Source</a> <a href="#v:runWithFeeds_" class="selflink">#</a></p><div class="doc"><p>Run a subgraph <code>t</code>, rendering any dependent nodes that aren't already
rendered, feed the given input values, and fetch the corresponding result
values for <code>a</code>. This behaves like <code><a href="TensorFlow-Core.html#v:runWithFeeds" title="TensorFlow.Core">runWithFeeds</a></code> except that it doesn't do
any fetches.</p></div></div><a href="#g:4" id="g:4"><h2>Async</h2></a><div class="top"><p class="src"><a id="v:asyncProdNodes" class="def">asyncProdNodes</a> <a href="src/TensorFlow.Session.html#asyncProdNodes" class="link">Source</a> <a href="#v:asyncProdNodes" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m, <a href="TensorFlow-Core.html#t:Nodes" title="TensorFlow.Core">Nodes</a> t)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; t</td><td class="doc"><p>Node to evaluate concurrently.</p></td></tr><tr><td class="src">-&gt; <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m ()</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Starts a concurrent thread which evaluates the given Nodes
forever until runSession exits or an exception occurs. Graph
extension happens synchronously, but the resultant run proceeds as
a separate thread.</p></div></div><a href="#g:5" id="g:5"><h1>Build</h1></a><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:Build" class="def">Build</a> = <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">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">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-Core.html#t:BuildT" title="TensorFlow.Core">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">&nbsp;</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 =&gt; m a -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">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-Core.html#t:Build" title="TensorFlow.Core">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">&nbsp;</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-Core.html#t:Build" title="TensorFlow.Core">Build</a> a -&gt; <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">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 =&gt; <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-Core.html#t:BuildT" title="TensorFlow.Core">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">&nbsp;</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-Core.html#t:BuildT" title="TensorFlow.Core">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> -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">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> -&gt; (a, <a href="TensorFlow-Build.html#t:GraphState" title="TensorFlow.Build">GraphState</a>)) -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">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 =&gt; <a href="../base-4.13.0.0/Control-Monad.html#t:Monad" title="Control.Monad">Monad</a> (<a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">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">&nbsp;</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-">(&gt;&gt;=)</a> :: <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m a -&gt; (a -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m b) -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m b <a href="#v:-62--62--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62--62-">(&gt;&gt;)</a> :: <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m a -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m b -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m b <a href="#v:-62--62-" class="selflink">#</a></p><p class="src"><a href="#v:return">return</a> :: a -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">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 =&gt; <a href="../base-4.13.0.0/Data-Functor.html#t:Functor" title="Data.Functor">Functor</a> (<a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">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">&nbsp;</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 -&gt; b) -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m a -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(&lt;$)</a> :: a -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m b -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">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 =&gt; <a href="../base-4.13.0.0/Control-Monad-Fix.html#t:MonadFix" title="Control.Monad.Fix">MonadFix</a> (<a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">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">&nbsp;</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 -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m a) -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">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 =&gt; <a href="../base-4.13.0.0/Control-Monad-Fail.html#t:MonadFail" title="Control.Monad.Fail">MonadFail</a> (<a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">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">&nbsp;</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> -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">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 =&gt; <a href="../base-4.13.0.0/Control-Applicative.html#t:Applicative" title="Control.Applicative">Applicative</a> (<a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">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">&nbsp;</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 -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m a <a href="#v:pure" class="selflink">#</a></p><p class="src"><a href="#v:-60--42--62-">(&lt;*&gt;)</a> :: <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m (a -&gt; b) -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m a -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m b <a href="#v:-60--42--62-" class="selflink">#</a></p><p class="src"><a href="#v:liftA2">liftA2</a> :: (a -&gt; b -&gt; c) -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m a -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m b -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m c <a href="#v:liftA2" class="selflink">#</a></p><p class="src"><a href="#v:-42--62-">(*&gt;)</a> :: <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m a -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m b -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m b <a href="#v:-42--62-" class="selflink">#</a></p><p class="src"><a href="#v:-60--42-">(&lt;*)</a> :: <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m a -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m b -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">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 =&gt; <a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> (<a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">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">&nbsp;</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 -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">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 =&gt; MonadCatch (<a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">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">&nbsp;</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 =&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m a -&gt; (e -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m a) -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">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 =&gt; MonadMask (<a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">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">&nbsp;</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-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m a -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m a) -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m b) -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m b</p><p class="src"><a href="#v:uninterruptibleMask">uninterruptibleMask</a> :: ((<span class="keyword">forall</span> a. <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m a -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m a) -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m b) -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m b</p><p class="src"><a href="#v:generalBracket">generalBracket</a> :: <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m a -&gt; (a -&gt; ExitCase b -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m c) -&gt; (a -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">BuildT</a> m b) -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">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 =&gt; MonadThrow (<a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">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">&nbsp;</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 =&gt; e -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">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 =&gt; <a href="TensorFlow-Core.html#t:MonadBuild" title="TensorFlow.Core">MonadBuild</a> (<a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">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">&nbsp;</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-Core.html#t:Build" title="TensorFlow.Core">Build</a> a -&gt; <a href="TensorFlow-Core.html#t:BuildT" title="TensorFlow.Core">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 =&gt; <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-Core.html#t:Build" title="TensorFlow.Core">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">&nbsp;</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-Core.html#t:Build" title="TensorFlow.Core">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-Core.html#t:Build" title="TensorFlow.Core">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-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">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">&nbsp;</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-Core.html#t:Build" title="TensorFlow.Core">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-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">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"><a id="v:render" class="def">render</a> :: <a href="TensorFlow-Core.html#t:MonadBuild" title="TensorFlow.Core">MonadBuild</a> m =&gt; <a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">Build</a> a -&gt; m (<a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a> a) <a href="src/TensorFlow.Tensor.html#render" class="link">Source</a> <a href="#v:render" class="selflink">#</a></p><div class="doc"><p>Render a <code><a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a></code>, fixing its name, scope, device and control inputs from
the <code><a href="TensorFlow-Core.html#t:MonadBuild" title="TensorFlow.Core">MonadBuild</a></code> context. Also renders any dependencies of the <code><a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a></code> that
weren't already rendered.</p><p>This operation is idempotent; calling <code><a href="TensorFlow-Core.html#v:render" title="TensorFlow.Core">render</a></code> on the same input in the same
context will produce the same result. However, rendering the same
<code>Tensor Build</code> in two different contexts may result in two different
<code>Tensor Value</code>s.</p></div></div><div class="top"><p class="src"><a id="v:asGraphDef" class="def">asGraphDef</a> :: <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">Build</a> a -&gt; <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-Core.html#t:Build" title="TensorFlow.Core">Build</a></code> action.</p></div></div><div class="top"><p class="src"><a id="v:addGraphDef" class="def">addGraphDef</a> :: <a href="TensorFlow-Core.html#t:MonadBuild" title="TensorFlow.Core">MonadBuild</a> m =&gt; <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-Graph.html#t:GraphDef" title="Proto.Tensorflow.Core.Framework.Graph">GraphDef</a> -&gt; 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: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:opAttr" class="def">opAttr</a> :: <a href="TensorFlow-Types.html#t:Attribute" title="TensorFlow.Types">Attribute</a> a =&gt; <a href="../text-1.2.4.0/Data-Text.html#t:Text" title="Data.Text">Text</a> -&gt; 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:addInitializer" class="def">addInitializer</a> :: <a href="TensorFlow-Core.html#t:MonadBuild" title="TensorFlow.Core">MonadBuild</a> m =&gt; <a href="TensorFlow-Core.html#t:ControlNode" title="TensorFlow.Core">ControlNode</a> -&gt; 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><a href="#g:6" id="g:6"><h1>Tensor</h1></a><div class="top"><p class="src"><span class="keyword">data</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 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-Core.html#t:Nodes" title="TensorFlow.Core">Nodes</a> <a href="TensorFlow-Core.html#t:ControlNode" title="TensorFlow.Core">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">&nbsp;</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-Core.html#t:ControlNode" title="TensorFlow.Core">ControlNode</a> -&gt; <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">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-Core.html#t:ControlNode" title="TensorFlow.Core">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">&nbsp;</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-Core.html#t:ControlNode" title="TensorFlow.Core">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 ~ () =&gt; <a href="TensorFlow-Core.html#t:Fetchable" title="TensorFlow.Core">Fetchable</a> <a href="TensorFlow-Core.html#t:ControlNode" title="TensorFlow.Core">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">&nbsp;</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-Core.html#t:ControlNode" title="TensorFlow.Core">ControlNode</a> -&gt; <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">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:Tensor" class="def">Tensor</a> v a <a href="src/TensorFlow.Tensor.html#Tensor" class="link">Source</a> <a href="#t:Tensor" class="selflink">#</a></p><div class="doc"><p>A named output of a TensorFlow operation.</p><p>The type parameter <code>a</code> is the type of the elements in the <code><a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a></code>. The
parameter <code>v</code> is either:</p><ul><li><code><a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">Build</a></code>: An unrendered, immutable value.</li><li><code><a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a></code>: A rendered, immutable value.</li><li><code><a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a></code>: A rendered stateful handle (e.g., a variable).</li></ul><p>Note that <code><a href="TensorFlow-Core.html#v:expr" title="TensorFlow.Core">expr</a></code>, <code><a href="TensorFlow-Core.html#v:value" title="TensorFlow.Core">value</a></code>, <code><a href="TensorFlow-Core.html#v:render" title="TensorFlow.Core">render</a></code> and <code><a href="TensorFlow-Tensor.html#v:renderValue" title="TensorFlow.Tensor">renderValue</a></code> can help convert between
the different types of <code><a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a></code>.</p></div><div class="subs instances"><h4 class="instances details-toggle-control details-toggle" data-details-id="i:Tensor">Instances</h4><details id="i:Tensor" 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:Tensor:ToTensor:1"></span> <a href="TensorFlow-Tensor.html#t:TensorKind" title="TensorFlow.Tensor">TensorKind</a> v =&gt; <a href="TensorFlow-Tensor.html#t:ToTensor" title="TensorFlow.Tensor">ToTensor</a> (<a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> v)</span> <a href="src/TensorFlow.Tensor.html#line-199" class="link">Source</a> <a href="#t:Tensor" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Tensor:ToTensor:1"><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:toTensor">toTensor</a> :: <a href="TensorFlow-Core.html#t:TensorType" title="TensorFlow.Core">TensorType</a> a =&gt; <a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> v a -&gt; <a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">Build</a> a <a href="src/TensorFlow.Tensor.html#toTensor" class="link">Source</a> <a href="#v:toTensor" 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:Tensor:Rendered:2"></span> <a href="TensorFlow-Tensor.html#t:Rendered" title="TensorFlow.Tensor">Rendered</a> (<a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> <a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a>)</span> <a href="src/TensorFlow.Tensor.html#line-100" class="link">Source</a> <a href="#t:Tensor" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Tensor:Rendered: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:renderedOutput">renderedOutput</a> :: <a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> <a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a> a -&gt; <a href="TensorFlow-Output.html#t:Output" title="TensorFlow.Output">Output</a> <a href="src/TensorFlow.Tensor.html#renderedOutput" class="link">Source</a> <a href="#v:renderedOutput" 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:Tensor:Rendered:3"></span> <a href="TensorFlow-Tensor.html#t:Rendered" title="TensorFlow.Tensor">Rendered</a> (<a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a>)</span> <a href="src/TensorFlow.Tensor.html#line-97" class="link">Source</a> <a href="#t:Tensor" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Tensor:Rendered:3"><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:renderedOutput">renderedOutput</a> :: <a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a> a -&gt; <a href="TensorFlow-Output.html#t:Output" title="TensorFlow.Output">Output</a> <a href="src/TensorFlow.Tensor.html#renderedOutput" class="link">Source</a> <a href="#v:renderedOutput" 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:Tensor:Nodes:4"></span> <a href="TensorFlow-Core.html#t:Nodes" title="TensorFlow.Core">Nodes</a> (<a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> v a)</span> <a href="src/TensorFlow.Nodes.html#line-120" class="link">Source</a> <a href="#t:Nodes" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Tensor:Nodes:4"><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-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> v a -&gt; <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">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:Tensor:BuildInputs:5"></span> <a href="TensorFlow-BuildOp.html#t:BuildInputs" title="TensorFlow.BuildOp">BuildInputs</a> (<a href="TensorFlow-Types.html#t:ListOf" title="TensorFlow.Types">ListOf</a> (<a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> v) as)</span> <a href="src/TensorFlow.BuildOp.html#line-298" class="link">Source</a> <a href="#t:BuildInputs" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Tensor:BuildInputs:5"><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:buildInputs">buildInputs</a> :: <a href="TensorFlow-Types.html#t:ListOf" title="TensorFlow.Types">ListOf</a> (<a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> v) as -&gt; <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">Build</a> [<a href="TensorFlow-Output.html#t:Output" title="TensorFlow.Output">Output</a>] <a href="src/TensorFlow.BuildOp.html#buildInputs" class="link">Source</a> <a href="#v:buildInputs" 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:Tensor:BuildInputs:6"></span> <a href="TensorFlow-BuildOp.html#t:BuildInputs" title="TensorFlow.BuildOp">BuildInputs</a> (<a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> v a)</span> <a href="src/TensorFlow.BuildOp.html#line-293" class="link">Source</a> <a href="#t:BuildInputs" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Tensor:BuildInputs:6"><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:buildInputs">buildInputs</a> :: <a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> v a -&gt; <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">Build</a> [<a href="TensorFlow-Output.html#t:Output" title="TensorFlow.Output">Output</a>] <a href="src/TensorFlow.BuildOp.html#buildInputs" class="link">Source</a> <a href="#v:buildInputs" 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:Tensor:PureResult:7"></span> <a href="TensorFlow-Types.html#t:TensorTypes" title="TensorFlow.Types">TensorTypes</a> as =&gt; <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-Core.html#t:Build" title="TensorFlow.Core">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">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Tensor:PureResult:7"><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-Core.html#t:Build" title="TensorFlow.Core">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-Core.html#t:Build" title="TensorFlow.Core">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:Tensor:PureResult:8"></span> <a href="TensorFlow-BuildOp.html#t:PureResult" title="TensorFlow.BuildOp">PureResult</a> (<a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">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">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Tensor:PureResult:8"><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-Core.html#t:Build" title="TensorFlow.Core">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-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">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><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:Tensor:BuildResult:9"></span> (<a href="TensorFlow-Tensor.html#t:TensorKind" title="TensorFlow.Tensor">TensorKind</a> v, <a href="TensorFlow-Tensor.html#t:Rendered" title="TensorFlow.Tensor">Rendered</a> (<a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> v), <a href="TensorFlow-Types.html#t:TensorTypes" title="TensorFlow.Types">TensorTypes</a> as) =&gt; <a href="TensorFlow-BuildOp.html#t:BuildResult" title="TensorFlow.BuildOp">BuildResult</a> (<a href="TensorFlow-Tensor.html#t:TensorList" title="TensorFlow.Tensor">TensorList</a> v as)</span> <a href="src/TensorFlow.BuildOp.html#line-135" class="link">Source</a> <a href="#t:BuildResult" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Tensor:BuildResult:9"><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-Tensor.html#t:TensorList" title="TensorFlow.Tensor">TensorList</a> v as) <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:Tensor:BuildResult:10"></span> (<a href="TensorFlow-Tensor.html#t:TensorKind" title="TensorFlow.Tensor">TensorKind</a> v, <a href="TensorFlow-Tensor.html#t:Rendered" title="TensorFlow.Tensor">Rendered</a> (<a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> v)) =&gt; <a href="TensorFlow-BuildOp.html#t:BuildResult" title="TensorFlow.BuildOp">BuildResult</a> (<a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> v a)</span> <a href="src/TensorFlow.BuildOp.html#line-129" class="link">Source</a> <a href="#t:BuildResult" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Tensor:BuildResult:10"><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-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> v 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:Tensor:Fetchable:11"></span> (<a href="TensorFlow-Core.html#t:TensorType" title="TensorFlow.Core">TensorType</a> a, <a href="TensorFlow-Core.html#t:TensorDataType" title="TensorFlow.Core">TensorDataType</a> s a, a ~ a') =&gt; <a href="TensorFlow-Core.html#t:Fetchable" title="TensorFlow.Core">Fetchable</a> (<a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> v a) (s a')</span> <a href="src/TensorFlow.Nodes.html#line-144" class="link">Source</a> <a href="#t:Fetchable" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Tensor:Fetchable:11"><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-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> v a -&gt; <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">Build</a> (<a href="TensorFlow-Nodes.html#t:Fetch" title="TensorFlow.Nodes">Fetch</a> (s a')) <a href="src/TensorFlow.Nodes.html#getFetch" class="link">Source</a> <a href="#v:getFetch" 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:Tensor:Fetchable:12"></span> (<a href="TensorFlow-Core.html#t:TensorType" title="TensorFlow.Core">TensorType</a> a, a ~ a') =&gt; <a href="TensorFlow-Core.html#t:Fetchable" title="TensorFlow.Core">Fetchable</a> (<a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> v a) (<a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> a')</span> <a href="src/TensorFlow.Nodes.html#line-141" class="link">Source</a> <a href="#t:Fetchable" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Tensor:Fetchable:12"><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-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> v a -&gt; <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">Build</a> (<a href="TensorFlow-Nodes.html#t:Fetch" title="TensorFlow.Nodes">Fetch</a> (<a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</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:Value" class="def">Value</a> a <a href="src/TensorFlow.Tensor.html#Value" class="link">Source</a> <a href="#t:Value" class="selflink">#</a></p><div class="subs instances"><h4 class="instances details-toggle-control details-toggle" data-details-id="i:Value">Instances</h4><details id="i:Value" 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:Value:Monad:1"></span> <a href="../base-4.13.0.0/Control-Monad.html#t:Monad" title="Control.Monad">Monad</a> <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a></span> <a href="src/TensorFlow.Tensor.html#line-68" class="link">Source</a> <a href="#t:Value" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Value:Monad:1"><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:-62--62--61-">(&gt;&gt;=)</a> :: <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a> a -&gt; (a -&gt; <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a> b) -&gt; <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a> b <a href="#v:-62--62--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62--62-">(&gt;&gt;)</a> :: <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a> a -&gt; <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a> b -&gt; <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a> b <a href="#v:-62--62-" class="selflink">#</a></p><p class="src"><a href="#v:return">return</a> :: a -&gt; <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a> 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:Value:Functor:2"></span> <a href="../base-4.13.0.0/Data-Functor.html#t:Functor" title="Data.Functor">Functor</a> <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a></span> <a href="src/TensorFlow.Tensor.html#line-62" class="link">Source</a> <a href="#t:Value" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Value:Functor: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:fmap">fmap</a> :: (a -&gt; b) -&gt; <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a> a -&gt; <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a> b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(&lt;$)</a> :: a -&gt; <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a> b -&gt; <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a> 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:Value:Applicative:3"></span> <a href="../base-4.13.0.0/Control-Applicative.html#t:Applicative" title="Control.Applicative">Applicative</a> <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a></span> <a href="src/TensorFlow.Tensor.html#line-64" class="link">Source</a> <a href="#t:Value" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Value:Applicative:3"><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:pure">pure</a> :: a -&gt; <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a> a <a href="#v:pure" class="selflink">#</a></p><p class="src"><a href="#v:-60--42--62-">(&lt;*&gt;)</a> :: <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a> (a -&gt; b) -&gt; <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a> a -&gt; <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a> b <a href="#v:-60--42--62-" class="selflink">#</a></p><p class="src"><a href="#v:liftA2">liftA2</a> :: (a -&gt; b -&gt; c) -&gt; <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a> a -&gt; <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a> b -&gt; <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a> c <a href="#v:liftA2" class="selflink">#</a></p><p class="src"><a href="#v:-42--62-">(*&gt;)</a> :: <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a> a -&gt; <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a> b -&gt; <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a> b <a href="#v:-42--62-" class="selflink">#</a></p><p class="src"><a href="#v:-60--42-">(&lt;*)</a> :: <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a> a -&gt; <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a> b -&gt; <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a> 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:Value:TensorKind:4"></span> <a href="TensorFlow-Tensor.html#t:TensorKind" title="TensorFlow.Tensor">TensorKind</a> <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a></span> <a href="src/TensorFlow.Tensor.html#line-185" class="link">Source</a> <a href="#t:Value" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Value:TensorKind:4"><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-Core.html#t:Value" title="TensorFlow.Core">Value</a> a -&gt; <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">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:Value:Rendered:5"></span> <a href="TensorFlow-Tensor.html#t:Rendered" title="TensorFlow.Tensor">Rendered</a> (<a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a>)</span> <a href="src/TensorFlow.Tensor.html#line-97" class="link">Source</a> <a href="#t:Value" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Value:Rendered:5"><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:renderedOutput">renderedOutput</a> :: <a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a> a -&gt; <a href="TensorFlow-Output.html#t:Output" title="TensorFlow.Output">Output</a> <a href="src/TensorFlow.Tensor.html#renderedOutput" class="link">Source</a> <a href="#v:renderedOutput" 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:Ref" class="def">Ref</a> a <a href="src/TensorFlow.Tensor.html#Ref" class="link">Source</a> <a href="#t:Ref" class="selflink">#</a></p><div class="subs instances"><h4 class="instances details-toggle-control details-toggle" data-details-id="i:Ref">Instances</h4><details id="i:Ref" 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:Ref:Monad:1"></span> <a href="../base-4.13.0.0/Control-Monad.html#t:Monad" title="Control.Monad">Monad</a> <a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a></span> <a href="src/TensorFlow.Tensor.html#line-78" class="link">Source</a> <a href="#t:Ref" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Ref:Monad:1"><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:-62--62--61-">(&gt;&gt;=)</a> :: <a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a> a -&gt; (a -&gt; <a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a> b) -&gt; <a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a> b <a href="#v:-62--62--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62--62-">(&gt;&gt;)</a> :: <a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a> a -&gt; <a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a> b -&gt; <a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a> b <a href="#v:-62--62-" class="selflink">#</a></p><p class="src"><a href="#v:return">return</a> :: a -&gt; <a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a> 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:Ref:Functor:2"></span> <a href="../base-4.13.0.0/Data-Functor.html#t:Functor" title="Data.Functor">Functor</a> <a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a></span> <a href="src/TensorFlow.Tensor.html#line-72" class="link">Source</a> <a href="#t:Ref" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Ref:Functor: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:fmap">fmap</a> :: (a -&gt; b) -&gt; <a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a> a -&gt; <a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a> b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(&lt;$)</a> :: a -&gt; <a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a> b -&gt; <a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a> 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:Ref:Applicative:3"></span> <a href="../base-4.13.0.0/Control-Applicative.html#t:Applicative" title="Control.Applicative">Applicative</a> <a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a></span> <a href="src/TensorFlow.Tensor.html#line-74" class="link">Source</a> <a href="#t:Ref" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Ref:Applicative:3"><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:pure">pure</a> :: a -&gt; <a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a> a <a href="#v:pure" class="selflink">#</a></p><p class="src"><a href="#v:-60--42--62-">(&lt;*&gt;)</a> :: <a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a> (a -&gt; b) -&gt; <a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a> a -&gt; <a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a> b <a href="#v:-60--42--62-" class="selflink">#</a></p><p class="src"><a href="#v:liftA2">liftA2</a> :: (a -&gt; b -&gt; c) -&gt; <a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a> a -&gt; <a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a> b -&gt; <a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a> c <a href="#v:liftA2" class="selflink">#</a></p><p class="src"><a href="#v:-42--62-">(*&gt;)</a> :: <a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a> a -&gt; <a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a> b -&gt; <a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a> b <a href="#v:-42--62-" class="selflink">#</a></p><p class="src"><a href="#v:-60--42-">(&lt;*)</a> :: <a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a> a -&gt; <a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a> b -&gt; <a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a> 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:Ref:TensorKind:4"></span> <a href="TensorFlow-Tensor.html#t:TensorKind" title="TensorFlow.Tensor">TensorKind</a> <a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a></span> <a href="src/TensorFlow.Tensor.html#line-188" class="link">Source</a> <a href="#t:Ref" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Ref:TensorKind:4"><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-Core.html#t:Ref" title="TensorFlow.Core">Ref</a> a -&gt; <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">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:Ref:Rendered:5"></span> <a href="TensorFlow-Tensor.html#t:Rendered" title="TensorFlow.Tensor">Rendered</a> (<a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> <a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a>)</span> <a href="src/TensorFlow.Tensor.html#line-100" class="link">Source</a> <a href="#t:Ref" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Ref:Rendered:5"><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:renderedOutput">renderedOutput</a> :: <a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> <a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a> a -&gt; <a href="TensorFlow-Output.html#t:Output" title="TensorFlow.Output">Output</a> <a href="src/TensorFlow.Tensor.html#renderedOutput" class="link">Source</a> <a href="#v:renderedOutput" class="selflink">#</a></p></div></details></td></tr></table></details></div></div><div class="top"><p class="src"><a id="v:value" class="def">value</a> :: <a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> <a href="TensorFlow-Core.html#t:Ref" title="TensorFlow.Core">Ref</a> a -&gt; <a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> <a href="TensorFlow-Core.html#t:Value" title="TensorFlow.Core">Value</a> a <a href="src/TensorFlow.Tensor.html#value" class="link">Source</a> <a href="#v:value" class="selflink">#</a></p><div class="doc"><p>Cast a 'Tensor Ref' into a 'Tensor Value'. This behaves like a no-op.</p></div></div><div class="top"><p class="src"><a id="v:tensorFromName" class="def">tensorFromName</a> :: <a href="TensorFlow-Tensor.html#t:TensorKind" title="TensorFlow.Tensor">TensorKind</a> v =&gt; <a href="../text-1.2.4.0/Data-Text.html#t:Text" title="Data.Text">Text</a> -&gt; <a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> v a <a href="src/TensorFlow.Tensor.html#tensorFromName" class="link">Source</a> <a href="#v:tensorFromName" class="selflink">#</a></p><div class="doc"><p>Create a <code><a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a></code> for a given name. This can be used to reference nodes
in a <code>GraphDef</code> that was loaded via <code><a href="TensorFlow-Core.html#v:addGraphDef" title="TensorFlow.Core">addGraphDef</a></code>.
TODO(judahjacobson): add more safety checks here.</p></div></div><div class="top"><p class="src"><a id="v:expr" class="def">expr</a> :: <a href="TensorFlow-Tensor.html#t:TensorKind" title="TensorFlow.Tensor">TensorKind</a> v =&gt; <a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> v a -&gt; <a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">Build</a> a <a href="src/TensorFlow.Tensor.html#expr" class="link">Source</a> <a href="#v:expr" class="selflink">#</a></p></div><a href="#g:7" id="g:7"><h2>Element types</h2></a><div class="top"><p class="src"><span class="keyword">class</span> <a id="t:TensorType" class="def">TensorType</a> a <a href="src/TensorFlow.Types.html#TensorType" class="link">Source</a> <a href="#t:TensorType" class="selflink">#</a></p><div class="doc"><p>The class of scalar types supported by tensorflow.</p></div><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="TensorFlow-Types.html#v:tensorType" title="TensorFlow.Types">tensorType</a>, <a href="TensorFlow-Types.html#v:tensorRefType" title="TensorFlow.Types">tensorRefType</a>, <a href="TensorFlow-Types.html#v:tensorVal" title="TensorFlow.Types">tensorVal</a></p></div><div class="subs instances"><h4 class="instances details-toggle-control details-toggle" data-details-id="i:TensorType">Instances</h4><details id="i:TensorType" 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:TensorType:TensorType:1"></span> <a href="TensorFlow-Core.html#t:TensorType" title="TensorFlow.Core">TensorType</a> <a href="../base-4.13.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a></span> <a href="src/TensorFlow.Types.html#line-203" class="link">Source</a> <a href="#t:TensorType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:TensorType:TensorType:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tensorType">tensorType</a> :: <a href="../base-4.13.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">DataType</a> <a href="src/TensorFlow.Types.html#tensorType" class="link">Source</a> <a href="#v:tensorType" class="selflink">#</a></p><p class="src"><a href="#v:tensorRefType">tensorRefType</a> :: <a href="../base-4.13.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">DataType</a> <a href="src/TensorFlow.Types.html#tensorRefType" class="link">Source</a> <a href="#v:tensorRefType" class="selflink">#</a></p><p class="src"><a href="#v:tensorVal">tensorVal</a> :: Lens' <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-Tensor.html#t:TensorProto" title="Proto.Tensorflow.Core.Framework.Tensor">TensorProto</a> [<a href="../base-4.13.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a>] <a href="src/TensorFlow.Types.html#tensorVal" class="link">Source</a> <a href="#v:tensorVal" 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:TensorType:TensorType:2"></span> <a href="TensorFlow-Core.html#t:TensorType" title="TensorFlow.Core">TensorType</a> <a href="../base-4.13.0.0/Prelude.html#t:Double" title="Prelude">Double</a></span> <a href="src/TensorFlow.Types.html#line-150" class="link">Source</a> <a href="#t:TensorType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:TensorType:TensorType:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tensorType">tensorType</a> :: <a href="../base-4.13.0.0/Prelude.html#t:Double" title="Prelude">Double</a> -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">DataType</a> <a href="src/TensorFlow.Types.html#tensorType" class="link">Source</a> <a href="#v:tensorType" class="selflink">#</a></p><p class="src"><a href="#v:tensorRefType">tensorRefType</a> :: <a href="../base-4.13.0.0/Prelude.html#t:Double" title="Prelude">Double</a> -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">DataType</a> <a href="src/TensorFlow.Types.html#tensorRefType" class="link">Source</a> <a href="#v:tensorRefType" class="selflink">#</a></p><p class="src"><a href="#v:tensorVal">tensorVal</a> :: Lens' <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-Tensor.html#t:TensorProto" title="Proto.Tensorflow.Core.Framework.Tensor">TensorProto</a> [<a href="../base-4.13.0.0/Prelude.html#t:Double" title="Prelude">Double</a>] <a href="src/TensorFlow.Types.html#tensorVal" class="link">Source</a> <a href="#v:tensorVal" 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:TensorType:TensorType:3"></span> <a href="TensorFlow-Core.html#t:TensorType" title="TensorFlow.Core">TensorType</a> <a href="../base-4.13.0.0/Prelude.html#t:Float" title="Prelude">Float</a></span> <a href="src/TensorFlow.Types.html#line-145" class="link">Source</a> <a href="#t:TensorType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:TensorType:TensorType:3"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tensorType">tensorType</a> :: <a href="../base-4.13.0.0/Prelude.html#t:Float" title="Prelude">Float</a> -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">DataType</a> <a href="src/TensorFlow.Types.html#tensorType" class="link">Source</a> <a href="#v:tensorType" class="selflink">#</a></p><p class="src"><a href="#v:tensorRefType">tensorRefType</a> :: <a href="../base-4.13.0.0/Prelude.html#t:Float" title="Prelude">Float</a> -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">DataType</a> <a href="src/TensorFlow.Types.html#tensorRefType" class="link">Source</a> <a href="#v:tensorRefType" class="selflink">#</a></p><p class="src"><a href="#v:tensorVal">tensorVal</a> :: Lens' <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-Tensor.html#t:TensorProto" title="Proto.Tensorflow.Core.Framework.Tensor">TensorProto</a> [<a href="../base-4.13.0.0/Prelude.html#t:Float" title="Prelude">Float</a>] <a href="src/TensorFlow.Types.html#tensorVal" class="link">Source</a> <a href="#v:tensorVal" 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:TensorType:TensorType:4"></span> <a href="TensorFlow-Core.html#t:TensorType" title="TensorFlow.Core">TensorType</a> <a href="../base-4.13.0.0/Data-Int.html#t:Int8" title="Data.Int">Int8</a></span> <a href="src/TensorFlow.Types.html#line-193" class="link">Source</a> <a href="#t:TensorType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:TensorType:TensorType:4"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tensorType">tensorType</a> :: <a href="../base-4.13.0.0/Data-Int.html#t:Int8" title="Data.Int">Int8</a> -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">DataType</a> <a href="src/TensorFlow.Types.html#tensorType" class="link">Source</a> <a href="#v:tensorType" class="selflink">#</a></p><p class="src"><a href="#v:tensorRefType">tensorRefType</a> :: <a href="../base-4.13.0.0/Data-Int.html#t:Int8" title="Data.Int">Int8</a> -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">DataType</a> <a href="src/TensorFlow.Types.html#tensorRefType" class="link">Source</a> <a href="#v:tensorRefType" class="selflink">#</a></p><p class="src"><a href="#v:tensorVal">tensorVal</a> :: Lens' <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-Tensor.html#t:TensorProto" title="Proto.Tensorflow.Core.Framework.Tensor">TensorProto</a> [<a href="../base-4.13.0.0/Data-Int.html#t:Int8" title="Data.Int">Int8</a>] <a href="src/TensorFlow.Types.html#tensorVal" class="link">Source</a> <a href="#v:tensorVal" 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:TensorType:TensorType:5"></span> <a href="TensorFlow-Core.html#t:TensorType" title="TensorFlow.Core">TensorType</a> <a href="../base-4.13.0.0/Data-Int.html#t:Int16" title="Data.Int">Int16</a></span> <a href="src/TensorFlow.Types.html#line-188" class="link">Source</a> <a href="#t:TensorType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:TensorType:TensorType:5"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tensorType">tensorType</a> :: <a href="../base-4.13.0.0/Data-Int.html#t:Int16" title="Data.Int">Int16</a> -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">DataType</a> <a href="src/TensorFlow.Types.html#tensorType" class="link">Source</a> <a href="#v:tensorType" class="selflink">#</a></p><p class="src"><a href="#v:tensorRefType">tensorRefType</a> :: <a href="../base-4.13.0.0/Data-Int.html#t:Int16" title="Data.Int">Int16</a> -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">DataType</a> <a href="src/TensorFlow.Types.html#tensorRefType" class="link">Source</a> <a href="#v:tensorRefType" class="selflink">#</a></p><p class="src"><a href="#v:tensorVal">tensorVal</a> :: Lens' <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-Tensor.html#t:TensorProto" title="Proto.Tensorflow.Core.Framework.Tensor">TensorProto</a> [<a href="../base-4.13.0.0/Data-Int.html#t:Int16" title="Data.Int">Int16</a>] <a href="src/TensorFlow.Types.html#tensorVal" class="link">Source</a> <a href="#v:tensorVal" 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:TensorType:TensorType:6"></span> <a href="TensorFlow-Core.html#t:TensorType" title="TensorFlow.Core">TensorType</a> <a href="../base-4.13.0.0/Data-Int.html#t:Int32" title="Data.Int">Int32</a></span> <a href="src/TensorFlow.Types.html#line-155" class="link">Source</a> <a href="#t:TensorType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:TensorType:TensorType:6"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tensorType">tensorType</a> :: <a href="../base-4.13.0.0/Data-Int.html#t:Int32" title="Data.Int">Int32</a> -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">DataType</a> <a href="src/TensorFlow.Types.html#tensorType" class="link">Source</a> <a href="#v:tensorType" class="selflink">#</a></p><p class="src"><a href="#v:tensorRefType">tensorRefType</a> :: <a href="../base-4.13.0.0/Data-Int.html#t:Int32" title="Data.Int">Int32</a> -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">DataType</a> <a href="src/TensorFlow.Types.html#tensorRefType" class="link">Source</a> <a href="#v:tensorRefType" class="selflink">#</a></p><p class="src"><a href="#v:tensorVal">tensorVal</a> :: Lens' <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-Tensor.html#t:TensorProto" title="Proto.Tensorflow.Core.Framework.Tensor">TensorProto</a> [<a href="../base-4.13.0.0/Data-Int.html#t:Int32" title="Data.Int">Int32</a>] <a href="src/TensorFlow.Types.html#tensorVal" class="link">Source</a> <a href="#v:tensorVal" 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:TensorType:TensorType:7"></span> <a href="TensorFlow-Core.html#t:TensorType" title="TensorFlow.Core">TensorType</a> <a href="../base-4.13.0.0/Data-Int.html#t:Int64" title="Data.Int">Int64</a></span> <a href="src/TensorFlow.Types.html#line-160" class="link">Source</a> <a href="#t:TensorType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:TensorType:TensorType:7"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tensorType">tensorType</a> :: <a href="../base-4.13.0.0/Data-Int.html#t:Int64" title="Data.Int">Int64</a> -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">DataType</a> <a href="src/TensorFlow.Types.html#tensorType" class="link">Source</a> <a href="#v:tensorType" class="selflink">#</a></p><p class="src"><a href="#v:tensorRefType">tensorRefType</a> :: <a href="../base-4.13.0.0/Data-Int.html#t:Int64" title="Data.Int">Int64</a> -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">DataType</a> <a href="src/TensorFlow.Types.html#tensorRefType" class="link">Source</a> <a href="#v:tensorRefType" class="selflink">#</a></p><p class="src"><a href="#v:tensorVal">tensorVal</a> :: Lens' <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-Tensor.html#t:TensorProto" title="Proto.Tensorflow.Core.Framework.Tensor">TensorProto</a> [<a href="../base-4.13.0.0/Data-Int.html#t:Int64" title="Data.Int">Int64</a>] <a href="src/TensorFlow.Types.html#tensorVal" class="link">Source</a> <a href="#v:tensorVal" 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:TensorType:TensorType:8"></span> <a href="TensorFlow-Core.html#t:TensorType" title="TensorFlow.Core">TensorType</a> <a href="../base-4.13.0.0/Data-Word.html#t:Word8" title="Data.Word">Word8</a></span> <a href="src/TensorFlow.Types.html#line-168" class="link">Source</a> <a href="#t:TensorType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:TensorType:TensorType:8"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tensorType">tensorType</a> :: <a href="../base-4.13.0.0/Data-Word.html#t:Word8" title="Data.Word">Word8</a> -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">DataType</a> <a href="src/TensorFlow.Types.html#tensorType" class="link">Source</a> <a href="#v:tensorType" class="selflink">#</a></p><p class="src"><a href="#v:tensorRefType">tensorRefType</a> :: <a href="../base-4.13.0.0/Data-Word.html#t:Word8" title="Data.Word">Word8</a> -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">DataType</a> <a href="src/TensorFlow.Types.html#tensorRefType" class="link">Source</a> <a href="#v:tensorRefType" class="selflink">#</a></p><p class="src"><a href="#v:tensorVal">tensorVal</a> :: Lens' <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-Tensor.html#t:TensorProto" title="Proto.Tensorflow.Core.Framework.Tensor">TensorProto</a> [<a href="../base-4.13.0.0/Data-Word.html#t:Word8" title="Data.Word">Word8</a>] <a href="src/TensorFlow.Types.html#tensorVal" class="link">Source</a> <a href="#v:tensorVal" 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:TensorType:TensorType:9"></span> <a href="TensorFlow-Core.html#t:TensorType" title="TensorFlow.Core">TensorType</a> <a href="../base-4.13.0.0/Data-Word.html#t:Word16" title="Data.Word">Word16</a></span> <a href="src/TensorFlow.Types.html#line-173" class="link">Source</a> <a href="#t:TensorType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:TensorType:TensorType:9"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tensorType">tensorType</a> :: <a href="../base-4.13.0.0/Data-Word.html#t:Word16" title="Data.Word">Word16</a> -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">DataType</a> <a href="src/TensorFlow.Types.html#tensorType" class="link">Source</a> <a href="#v:tensorType" class="selflink">#</a></p><p class="src"><a href="#v:tensorRefType">tensorRefType</a> :: <a href="../base-4.13.0.0/Data-Word.html#t:Word16" title="Data.Word">Word16</a> -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">DataType</a> <a href="src/TensorFlow.Types.html#tensorRefType" class="link">Source</a> <a href="#v:tensorRefType" class="selflink">#</a></p><p class="src"><a href="#v:tensorVal">tensorVal</a> :: Lens' <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-Tensor.html#t:TensorProto" title="Proto.Tensorflow.Core.Framework.Tensor">TensorProto</a> [<a href="../base-4.13.0.0/Data-Word.html#t:Word16" title="Data.Word">Word16</a>] <a href="src/TensorFlow.Types.html#tensorVal" class="link">Source</a> <a href="#v:tensorVal" 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:TensorType:TensorType:10"></span> <a href="TensorFlow-Core.html#t:TensorType" title="TensorFlow.Core">TensorType</a> <a href="../base-4.13.0.0/Data-Word.html#t:Word32" title="Data.Word">Word32</a></span> <a href="src/TensorFlow.Types.html#line-178" class="link">Source</a> <a href="#t:TensorType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:TensorType:TensorType:10"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tensorType">tensorType</a> :: <a href="../base-4.13.0.0/Data-Word.html#t:Word32" title="Data.Word">Word32</a> -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">DataType</a> <a href="src/TensorFlow.Types.html#tensorType" class="link">Source</a> <a href="#v:tensorType" class="selflink">#</a></p><p class="src"><a href="#v:tensorRefType">tensorRefType</a> :: <a href="../base-4.13.0.0/Data-Word.html#t:Word32" title="Data.Word">Word32</a> -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">DataType</a> <a href="src/TensorFlow.Types.html#tensorRefType" class="link">Source</a> <a href="#v:tensorRefType" class="selflink">#</a></p><p class="src"><a href="#v:tensorVal">tensorVal</a> :: Lens' <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-Tensor.html#t:TensorProto" title="Proto.Tensorflow.Core.Framework.Tensor">TensorProto</a> [<a href="../base-4.13.0.0/Data-Word.html#t:Word32" title="Data.Word">Word32</a>] <a href="src/TensorFlow.Types.html#tensorVal" class="link">Source</a> <a href="#v:tensorVal" 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:TensorType:TensorType:11"></span> <a href="TensorFlow-Core.html#t:TensorType" title="TensorFlow.Core">TensorType</a> <a href="../base-4.13.0.0/Data-Word.html#t:Word64" title="Data.Word">Word64</a></span> <a href="src/TensorFlow.Types.html#line-183" class="link">Source</a> <a href="#t:TensorType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:TensorType:TensorType:11"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tensorType">tensorType</a> :: <a href="../base-4.13.0.0/Data-Word.html#t:Word64" title="Data.Word">Word64</a> -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">DataType</a> <a href="src/TensorFlow.Types.html#tensorType" class="link">Source</a> <a href="#v:tensorType" class="selflink">#</a></p><p class="src"><a href="#v:tensorRefType">tensorRefType</a> :: <a href="../base-4.13.0.0/Data-Word.html#t:Word64" title="Data.Word">Word64</a> -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">DataType</a> <a href="src/TensorFlow.Types.html#tensorRefType" class="link">Source</a> <a href="#v:tensorRefType" class="selflink">#</a></p><p class="src"><a href="#v:tensorVal">tensorVal</a> :: Lens' <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-Tensor.html#t:TensorProto" title="Proto.Tensorflow.Core.Framework.Tensor">TensorProto</a> [<a href="../base-4.13.0.0/Data-Word.html#t:Word64" title="Data.Word">Word64</a>] <a href="src/TensorFlow.Types.html#tensorVal" class="link">Source</a> <a href="#v:tensorVal" 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:TensorType:TensorType:12"></span> <a href="TensorFlow-Core.html#t:TensorType" title="TensorFlow.Core">TensorType</a> <a href="../bytestring-0.10.10.1/Data-ByteString.html#t:ByteString" title="Data.ByteString">ByteString</a></span> <a href="src/TensorFlow.Types.html#line-198" class="link">Source</a> <a href="#t:TensorType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:TensorType:TensorType:12"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tensorType">tensorType</a> :: <a href="../bytestring-0.10.10.1/Data-ByteString.html#t:ByteString" title="Data.ByteString">ByteString</a> -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">DataType</a> <a href="src/TensorFlow.Types.html#tensorType" class="link">Source</a> <a href="#v:tensorType" class="selflink">#</a></p><p class="src"><a href="#v:tensorRefType">tensorRefType</a> :: <a href="../bytestring-0.10.10.1/Data-ByteString.html#t:ByteString" title="Data.ByteString">ByteString</a> -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">DataType</a> <a href="src/TensorFlow.Types.html#tensorRefType" class="link">Source</a> <a href="#v:tensorRefType" class="selflink">#</a></p><p class="src"><a href="#v:tensorVal">tensorVal</a> :: Lens' <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-Tensor.html#t:TensorProto" title="Proto.Tensorflow.Core.Framework.Tensor">TensorProto</a> [<a href="../bytestring-0.10.10.1/Data-ByteString.html#t:ByteString" title="Data.ByteString">ByteString</a>] <a href="src/TensorFlow.Types.html#tensorVal" class="link">Source</a> <a href="#v:tensorVal" 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:TensorType:TensorType:13"></span> <a href="TensorFlow-Core.html#t:TensorType" title="TensorFlow.Core">TensorType</a> <a href="TensorFlow-Types.html#t:Variant" title="TensorFlow.Types">Variant</a></span> <a href="src/TensorFlow.Types.html#line-223" class="link">Source</a> <a href="#t:TensorType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:TensorType:TensorType:13"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tensorType">tensorType</a> :: <a href="TensorFlow-Types.html#t:Variant" title="TensorFlow.Types">Variant</a> -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">DataType</a> <a href="src/TensorFlow.Types.html#tensorType" class="link">Source</a> <a href="#v:tensorType" class="selflink">#</a></p><p class="src"><a href="#v:tensorRefType">tensorRefType</a> :: <a href="TensorFlow-Types.html#t:Variant" title="TensorFlow.Types">Variant</a> -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">DataType</a> <a href="src/TensorFlow.Types.html#tensorRefType" class="link">Source</a> <a href="#v:tensorRefType" class="selflink">#</a></p><p class="src"><a href="#v:tensorVal">tensorVal</a> :: Lens' <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-Tensor.html#t:TensorProto" title="Proto.Tensorflow.Core.Framework.Tensor">TensorProto</a> [<a href="TensorFlow-Types.html#t:Variant" title="TensorFlow.Types">Variant</a>] <a href="src/TensorFlow.Types.html#tensorVal" class="link">Source</a> <a href="#v:tensorVal" 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:TensorType:TensorType:14"></span> <a href="TensorFlow-Core.html#t:TensorType" title="TensorFlow.Core">TensorType</a> <a href="TensorFlow-Core.html#t:ResourceHandle" title="TensorFlow.Core">ResourceHandle</a></span> <a href="src/TensorFlow.Types.html#line-218" class="link">Source</a> <a href="#t:TensorType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:TensorType:TensorType:14"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tensorType">tensorType</a> :: <a href="TensorFlow-Core.html#t:ResourceHandle" title="TensorFlow.Core">ResourceHandle</a> -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">DataType</a> <a href="src/TensorFlow.Types.html#tensorType" class="link">Source</a> <a href="#v:tensorType" class="selflink">#</a></p><p class="src"><a href="#v:tensorRefType">tensorRefType</a> :: <a href="TensorFlow-Core.html#t:ResourceHandle" title="TensorFlow.Core">ResourceHandle</a> -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">DataType</a> <a href="src/TensorFlow.Types.html#tensorRefType" class="link">Source</a> <a href="#v:tensorRefType" class="selflink">#</a></p><p class="src"><a href="#v:tensorVal">tensorVal</a> :: Lens' <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-Tensor.html#t:TensorProto" title="Proto.Tensorflow.Core.Framework.Tensor">TensorProto</a> [<a href="TensorFlow-Core.html#t:ResourceHandle" title="TensorFlow.Core">ResourceHandle</a>] <a href="src/TensorFlow.Types.html#tensorVal" class="link">Source</a> <a href="#v:tensorVal" 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:TensorType:TensorType:15"></span> <a href="TensorFlow-Core.html#t:TensorType" title="TensorFlow.Core">TensorType</a> (<a href="../base-4.13.0.0/Data-Complex.html#t:Complex" title="Data.Complex">Complex</a> <a href="../base-4.13.0.0/Prelude.html#t:Double" title="Prelude">Double</a>)</span> <a href="src/TensorFlow.Types.html#line-213" class="link">Source</a> <a href="#t:TensorType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:TensorType:TensorType:15"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tensorType">tensorType</a> :: <a href="../base-4.13.0.0/Data-Complex.html#t:Complex" title="Data.Complex">Complex</a> <a href="../base-4.13.0.0/Prelude.html#t:Double" title="Prelude">Double</a> -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">DataType</a> <a href="src/TensorFlow.Types.html#tensorType" class="link">Source</a> <a href="#v:tensorType" class="selflink">#</a></p><p class="src"><a href="#v:tensorRefType">tensorRefType</a> :: <a href="../base-4.13.0.0/Data-Complex.html#t:Complex" title="Data.Complex">Complex</a> <a href="../base-4.13.0.0/Prelude.html#t:Double" title="Prelude">Double</a> -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">DataType</a> <a href="src/TensorFlow.Types.html#tensorRefType" class="link">Source</a> <a href="#v:tensorRefType" class="selflink">#</a></p><p class="src"><a href="#v:tensorVal">tensorVal</a> :: Lens' <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-Tensor.html#t:TensorProto" title="Proto.Tensorflow.Core.Framework.Tensor">TensorProto</a> [<a href="../base-4.13.0.0/Data-Complex.html#t:Complex" title="Data.Complex">Complex</a> <a href="../base-4.13.0.0/Prelude.html#t:Double" title="Prelude">Double</a>] <a href="src/TensorFlow.Types.html#tensorVal" class="link">Source</a> <a href="#v:tensorVal" 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:TensorType:TensorType:16"></span> <a href="TensorFlow-Core.html#t:TensorType" title="TensorFlow.Core">TensorType</a> (<a href="../base-4.13.0.0/Data-Complex.html#t:Complex" title="Data.Complex">Complex</a> <a href="../base-4.13.0.0/Prelude.html#t:Float" title="Prelude">Float</a>)</span> <a href="src/TensorFlow.Types.html#line-208" class="link">Source</a> <a href="#t:TensorType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:TensorType:TensorType:16"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tensorType">tensorType</a> :: <a href="../base-4.13.0.0/Data-Complex.html#t:Complex" title="Data.Complex">Complex</a> <a href="../base-4.13.0.0/Prelude.html#t:Float" title="Prelude">Float</a> -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">DataType</a> <a href="src/TensorFlow.Types.html#tensorType" class="link">Source</a> <a href="#v:tensorType" class="selflink">#</a></p><p class="src"><a href="#v:tensorRefType">tensorRefType</a> :: <a href="../base-4.13.0.0/Data-Complex.html#t:Complex" title="Data.Complex">Complex</a> <a href="../base-4.13.0.0/Prelude.html#t:Float" title="Prelude">Float</a> -&gt; <a href="TensorFlow-Types.html#t:DataType" title="TensorFlow.Types">DataType</a> <a href="src/TensorFlow.Types.html#tensorRefType" class="link">Source</a> <a href="#v:tensorRefType" class="selflink">#</a></p><p class="src"><a href="#v:tensorVal">tensorVal</a> :: Lens' <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-Tensor.html#t:TensorProto" title="Proto.Tensorflow.Core.Framework.Tensor">TensorProto</a> [<a href="../base-4.13.0.0/Data-Complex.html#t:Complex" title="Data.Complex">Complex</a> <a href="../base-4.13.0.0/Prelude.html#t:Float" title="Prelude">Float</a>] <a href="src/TensorFlow.Types.html#tensorVal" class="link">Source</a> <a href="#v:tensorVal" 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:TensorData" class="def">TensorData</a> a <a href="src/TensorFlow.Types.html#TensorData" class="link">Source</a> <a href="#t:TensorData" class="selflink">#</a></p><div class="doc"><p>Tensor data with the correct memory layout for tensorflow.</p></div><div class="subs instances"><h4 class="instances details-toggle-control details-toggle" data-details-id="i:TensorData">Instances</h4><details id="i:TensorData" 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:TensorData:Fetchable:1"></span> (<a href="TensorFlow-Core.html#t:TensorType" title="TensorFlow.Core">TensorType</a> a, a ~ a') =&gt; <a href="TensorFlow-Core.html#t:Fetchable" title="TensorFlow.Core">Fetchable</a> (<a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> v a) (<a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> a')</span> <a href="src/TensorFlow.Nodes.html#line-141" class="link">Source</a> <a href="#t:Fetchable" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:TensorData:Fetchable: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:getFetch">getFetch</a> :: <a href="TensorFlow-Core.html#t:Tensor" title="TensorFlow.Core">Tensor</a> v a -&gt; <a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">Build</a> (<a href="TensorFlow-Nodes.html#t:Fetch" title="TensorFlow.Nodes">Fetch</a> (<a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</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">class</span> <a href="TensorFlow-Core.html#t:TensorType" title="TensorFlow.Core">TensorType</a> a =&gt; <a id="t:TensorDataType" class="def">TensorDataType</a> s a <span class="keyword">where</span> <a href="src/TensorFlow.Types.html#TensorDataType" class="link">Source</a> <a href="#t:TensorDataType" class="selflink">#</a></p><div class="doc"><p>Types that can be converted to and from <code><a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a></code>.</p><p><code>Vector</code> is the most efficient to encode/decode for most element types.</p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:decodeTensorData" class="def">decodeTensorData</a> :: <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> a -&gt; s a <a href="src/TensorFlow.Types.html#decodeTensorData" class="link">Source</a> <a href="#v:decodeTensorData" class="selflink">#</a></p><div class="doc"><p>Decode the bytes of a <code><a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a></code> into an <code><a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-AttrValue_Fields.html#v:s" title="Proto.Tensorflow.Core.Framework.AttrValue_Fields">s</a></code>.</p></div><p class="src"><a id="v:encodeTensorData" class="def">encodeTensorData</a> :: <a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a> -&gt; s a -&gt; <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> a <a href="src/TensorFlow.Types.html#encodeTensorData" class="link">Source</a> <a href="#v:encodeTensorData" class="selflink">#</a></p><div class="doc"><p>Encode an <code><a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-AttrValue_Fields.html#v:s" title="Proto.Tensorflow.Core.Framework.AttrValue_Fields">s</a></code> into a <code><a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a></code>.</p><p>The values should be in row major order, e.g.,</p><p>element 0: index (0, ..., 0)
element 1: index (0, ..., 1)
...</p></div></div><div class="subs instances"><h4 class="instances details-toggle-control details-toggle" data-details-id="i:TensorDataType">Instances</h4><details id="i:TensorDataType" 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:TensorDataType:TensorDataType:1"></span> <a href="TensorFlow-Core.html#t:TensorDataType" title="TensorFlow.Core">TensorDataType</a> Vector <a href="../base-4.13.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a></span> <a href="src/TensorFlow.Types.html#line-298" class="link">Source</a> <a href="#t:TensorDataType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:TensorDataType:TensorDataType:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:decodeTensorData">decodeTensorData</a> :: <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> <a href="../base-4.13.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> -&gt; Vector <a href="../base-4.13.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="src/TensorFlow.Types.html#decodeTensorData" class="link">Source</a> <a href="#v:decodeTensorData" class="selflink">#</a></p><p class="src"><a href="#v:encodeTensorData">encodeTensorData</a> :: <a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a> -&gt; Vector <a href="../base-4.13.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> -&gt; <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> <a href="../base-4.13.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="src/TensorFlow.Types.html#encodeTensorData" class="link">Source</a> <a href="#v:encodeTensorData" 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:TensorDataType:TensorDataType:2"></span> <a href="TensorFlow-Core.html#t:TensorDataType" title="TensorFlow.Core">TensorDataType</a> Vector <a href="../base-4.13.0.0/Prelude.html#t:Double" title="Prelude">Double</a></span> <a href="src/TensorFlow.Types.html#line-268" class="link">Source</a> <a href="#t:TensorDataType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:TensorDataType:TensorDataType:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:decodeTensorData">decodeTensorData</a> :: <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> <a href="../base-4.13.0.0/Prelude.html#t:Double" title="Prelude">Double</a> -&gt; Vector <a href="../base-4.13.0.0/Prelude.html#t:Double" title="Prelude">Double</a> <a href="src/TensorFlow.Types.html#decodeTensorData" class="link">Source</a> <a href="#v:decodeTensorData" class="selflink">#</a></p><p class="src"><a href="#v:encodeTensorData">encodeTensorData</a> :: <a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a> -&gt; Vector <a href="../base-4.13.0.0/Prelude.html#t:Double" title="Prelude">Double</a> -&gt; <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> <a href="../base-4.13.0.0/Prelude.html#t:Double" title="Prelude">Double</a> <a href="src/TensorFlow.Types.html#encodeTensorData" class="link">Source</a> <a href="#v:encodeTensorData" 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:TensorDataType:TensorDataType:3"></span> <a href="TensorFlow-Core.html#t:TensorDataType" title="TensorFlow.Core">TensorDataType</a> Vector <a href="../base-4.13.0.0/Prelude.html#t:Float" title="Prelude">Float</a></span> <a href="src/TensorFlow.Types.html#line-264" class="link">Source</a> <a href="#t:TensorDataType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:TensorDataType:TensorDataType:3"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:decodeTensorData">decodeTensorData</a> :: <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> <a href="../base-4.13.0.0/Prelude.html#t:Float" title="Prelude">Float</a> -&gt; Vector <a href="../base-4.13.0.0/Prelude.html#t:Float" title="Prelude">Float</a> <a href="src/TensorFlow.Types.html#decodeTensorData" class="link">Source</a> <a href="#v:decodeTensorData" class="selflink">#</a></p><p class="src"><a href="#v:encodeTensorData">encodeTensorData</a> :: <a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a> -&gt; Vector <a href="../base-4.13.0.0/Prelude.html#t:Float" title="Prelude">Float</a> -&gt; <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> <a href="../base-4.13.0.0/Prelude.html#t:Float" title="Prelude">Float</a> <a href="src/TensorFlow.Types.html#encodeTensorData" class="link">Source</a> <a href="#v:encodeTensorData" 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:TensorDataType:TensorDataType:4"></span> <a href="TensorFlow-Core.html#t:TensorDataType" title="TensorFlow.Core">TensorDataType</a> Vector <a href="../base-4.13.0.0/Data-Int.html#t:Int8" title="Data.Int">Int8</a></span> <a href="src/TensorFlow.Types.html#line-272" class="link">Source</a> <a href="#t:TensorDataType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:TensorDataType:TensorDataType:4"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:decodeTensorData">decodeTensorData</a> :: <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> <a href="../base-4.13.0.0/Data-Int.html#t:Int8" title="Data.Int">Int8</a> -&gt; Vector <a href="../base-4.13.0.0/Data-Int.html#t:Int8" title="Data.Int">Int8</a> <a href="src/TensorFlow.Types.html#decodeTensorData" class="link">Source</a> <a href="#v:decodeTensorData" class="selflink">#</a></p><p class="src"><a href="#v:encodeTensorData">encodeTensorData</a> :: <a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a> -&gt; Vector <a href="../base-4.13.0.0/Data-Int.html#t:Int8" title="Data.Int">Int8</a> -&gt; <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> <a href="../base-4.13.0.0/Data-Int.html#t:Int8" title="Data.Int">Int8</a> <a href="src/TensorFlow.Types.html#encodeTensorData" class="link">Source</a> <a href="#v:encodeTensorData" 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:TensorDataType:TensorDataType:5"></span> <a href="TensorFlow-Core.html#t:TensorDataType" title="TensorFlow.Core">TensorDataType</a> Vector <a href="../base-4.13.0.0/Data-Int.html#t:Int16" title="Data.Int">Int16</a></span> <a href="src/TensorFlow.Types.html#line-276" class="link">Source</a> <a href="#t:TensorDataType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:TensorDataType:TensorDataType:5"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:decodeTensorData">decodeTensorData</a> :: <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> <a href="../base-4.13.0.0/Data-Int.html#t:Int16" title="Data.Int">Int16</a> -&gt; Vector <a href="../base-4.13.0.0/Data-Int.html#t:Int16" title="Data.Int">Int16</a> <a href="src/TensorFlow.Types.html#decodeTensorData" class="link">Source</a> <a href="#v:decodeTensorData" class="selflink">#</a></p><p class="src"><a href="#v:encodeTensorData">encodeTensorData</a> :: <a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a> -&gt; Vector <a href="../base-4.13.0.0/Data-Int.html#t:Int16" title="Data.Int">Int16</a> -&gt; <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> <a href="../base-4.13.0.0/Data-Int.html#t:Int16" title="Data.Int">Int16</a> <a href="src/TensorFlow.Types.html#encodeTensorData" class="link">Source</a> <a href="#v:encodeTensorData" 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:TensorDataType:TensorDataType:6"></span> <a href="TensorFlow-Core.html#t:TensorDataType" title="TensorFlow.Core">TensorDataType</a> Vector <a href="../base-4.13.0.0/Data-Int.html#t:Int32" title="Data.Int">Int32</a></span> <a href="src/TensorFlow.Types.html#line-280" class="link">Source</a> <a href="#t:TensorDataType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:TensorDataType:TensorDataType:6"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:decodeTensorData">decodeTensorData</a> :: <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> <a href="../base-4.13.0.0/Data-Int.html#t:Int32" title="Data.Int">Int32</a> -&gt; Vector <a href="../base-4.13.0.0/Data-Int.html#t:Int32" title="Data.Int">Int32</a> <a href="src/TensorFlow.Types.html#decodeTensorData" class="link">Source</a> <a href="#v:decodeTensorData" class="selflink">#</a></p><p class="src"><a href="#v:encodeTensorData">encodeTensorData</a> :: <a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a> -&gt; Vector <a href="../base-4.13.0.0/Data-Int.html#t:Int32" title="Data.Int">Int32</a> -&gt; <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> <a href="../base-4.13.0.0/Data-Int.html#t:Int32" title="Data.Int">Int32</a> <a href="src/TensorFlow.Types.html#encodeTensorData" class="link">Source</a> <a href="#v:encodeTensorData" 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:TensorDataType:TensorDataType:7"></span> <a href="TensorFlow-Core.html#t:TensorDataType" title="TensorFlow.Core">TensorDataType</a> Vector <a href="../base-4.13.0.0/Data-Int.html#t:Int64" title="Data.Int">Int64</a></span> <a href="src/TensorFlow.Types.html#line-284" class="link">Source</a> <a href="#t:TensorDataType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:TensorDataType:TensorDataType:7"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:decodeTensorData">decodeTensorData</a> :: <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> <a href="../base-4.13.0.0/Data-Int.html#t:Int64" title="Data.Int">Int64</a> -&gt; Vector <a href="../base-4.13.0.0/Data-Int.html#t:Int64" title="Data.Int">Int64</a> <a href="src/TensorFlow.Types.html#decodeTensorData" class="link">Source</a> <a href="#v:decodeTensorData" class="selflink">#</a></p><p class="src"><a href="#v:encodeTensorData">encodeTensorData</a> :: <a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a> -&gt; Vector <a href="../base-4.13.0.0/Data-Int.html#t:Int64" title="Data.Int">Int64</a> -&gt; <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> <a href="../base-4.13.0.0/Data-Int.html#t:Int64" title="Data.Int">Int64</a> <a href="src/TensorFlow.Types.html#encodeTensorData" class="link">Source</a> <a href="#v:encodeTensorData" 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:TensorDataType:TensorDataType:8"></span> <a href="TensorFlow-Core.html#t:TensorDataType" title="TensorFlow.Core">TensorDataType</a> Vector <a href="../base-4.13.0.0/Data-Word.html#t:Word8" title="Data.Word">Word8</a></span> <a href="src/TensorFlow.Types.html#line-288" class="link">Source</a> <a href="#t:TensorDataType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:TensorDataType:TensorDataType:8"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:decodeTensorData">decodeTensorData</a> :: <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> <a href="../base-4.13.0.0/Data-Word.html#t:Word8" title="Data.Word">Word8</a> -&gt; Vector <a href="../base-4.13.0.0/Data-Word.html#t:Word8" title="Data.Word">Word8</a> <a href="src/TensorFlow.Types.html#decodeTensorData" class="link">Source</a> <a href="#v:decodeTensorData" class="selflink">#</a></p><p class="src"><a href="#v:encodeTensorData">encodeTensorData</a> :: <a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a> -&gt; Vector <a href="../base-4.13.0.0/Data-Word.html#t:Word8" title="Data.Word">Word8</a> -&gt; <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> <a href="../base-4.13.0.0/Data-Word.html#t:Word8" title="Data.Word">Word8</a> <a href="src/TensorFlow.Types.html#encodeTensorData" class="link">Source</a> <a href="#v:encodeTensorData" 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:TensorDataType:TensorDataType:9"></span> <a href="TensorFlow-Core.html#t:TensorDataType" title="TensorFlow.Core">TensorDataType</a> Vector <a href="../base-4.13.0.0/Data-Word.html#t:Word16" title="Data.Word">Word16</a></span> <a href="src/TensorFlow.Types.html#line-292" class="link">Source</a> <a href="#t:TensorDataType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:TensorDataType:TensorDataType:9"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:decodeTensorData">decodeTensorData</a> :: <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> <a href="../base-4.13.0.0/Data-Word.html#t:Word16" title="Data.Word">Word16</a> -&gt; Vector <a href="../base-4.13.0.0/Data-Word.html#t:Word16" title="Data.Word">Word16</a> <a href="src/TensorFlow.Types.html#decodeTensorData" class="link">Source</a> <a href="#v:decodeTensorData" class="selflink">#</a></p><p class="src"><a href="#v:encodeTensorData">encodeTensorData</a> :: <a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a> -&gt; Vector <a href="../base-4.13.0.0/Data-Word.html#t:Word16" title="Data.Word">Word16</a> -&gt; <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> <a href="../base-4.13.0.0/Data-Word.html#t:Word16" title="Data.Word">Word16</a> <a href="src/TensorFlow.Types.html#encodeTensorData" class="link">Source</a> <a href="#v:encodeTensorData" 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:TensorDataType:TensorDataType:10"></span> (<a href="../base-4.13.0.0/Foreign-Storable.html#t:Storable" title="Foreign.Storable">Storable</a> a, <a href="TensorFlow-Core.html#t:TensorDataType" title="TensorFlow.Core">TensorDataType</a> Vector a, <a href="TensorFlow-Core.html#t:TensorType" title="TensorFlow.Core">TensorType</a> a) =&gt; <a href="TensorFlow-Core.html#t:TensorDataType" title="TensorFlow.Core">TensorDataType</a> Vector a</span> <a href="src/TensorFlow.Types.html#line-306" class="link">Source</a> <a href="#t:TensorDataType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:TensorDataType:TensorDataType:10"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:decodeTensorData">decodeTensorData</a> :: <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> a -&gt; Vector a <a href="src/TensorFlow.Types.html#decodeTensorData" class="link">Source</a> <a href="#v:decodeTensorData" class="selflink">#</a></p><p class="src"><a href="#v:encodeTensorData">encodeTensorData</a> :: <a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a> -&gt; Vector a -&gt; <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> a <a href="src/TensorFlow.Types.html#encodeTensorData" class="link">Source</a> <a href="#v:encodeTensorData" 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:TensorDataType:TensorDataType:11"></span> <a href="TensorFlow-Core.html#t:TensorDataType" title="TensorFlow.Core">TensorDataType</a> Vector <a href="../bytestring-0.10.10.1/Data-ByteString.html#t:ByteString" title="Data.ByteString">ByteString</a></span> <a href="src/TensorFlow.Types.html#line-319" class="link">Source</a> <a href="#t:TensorDataType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:TensorDataType:TensorDataType:11"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:decodeTensorData">decodeTensorData</a> :: <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> <a href="../bytestring-0.10.10.1/Data-ByteString.html#t:ByteString" title="Data.ByteString">ByteString</a> -&gt; Vector <a href="../bytestring-0.10.10.1/Data-ByteString.html#t:ByteString" title="Data.ByteString">ByteString</a> <a href="src/TensorFlow.Types.html#decodeTensorData" class="link">Source</a> <a href="#v:decodeTensorData" class="selflink">#</a></p><p class="src"><a href="#v:encodeTensorData">encodeTensorData</a> :: <a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a> -&gt; Vector <a href="../bytestring-0.10.10.1/Data-ByteString.html#t:ByteString" title="Data.ByteString">ByteString</a> -&gt; <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> <a href="../bytestring-0.10.10.1/Data-ByteString.html#t:ByteString" title="Data.ByteString">ByteString</a> <a href="src/TensorFlow.Types.html#encodeTensorData" class="link">Source</a> <a href="#v:encodeTensorData" 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:TensorDataType:TensorDataType:12"></span> (<a href="TensorFlow-Core.html#t:TensorDataType" title="TensorFlow.Core">TensorDataType</a> Vector a, <a href="TensorFlow-Core.html#t:TensorType" title="TensorFlow.Core">TensorType</a> a) =&gt; <a href="TensorFlow-Core.html#t:TensorDataType" title="TensorFlow.Core">TensorDataType</a> <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a</span> <a href="src/TensorFlow.Types.html#line-373" class="link">Source</a> <a href="#t:TensorDataType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:TensorDataType:TensorDataType:12"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:decodeTensorData">decodeTensorData</a> :: <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="src/TensorFlow.Types.html#decodeTensorData" class="link">Source</a> <a href="#v:decodeTensorData" class="selflink">#</a></p><p class="src"><a href="#v:encodeTensorData">encodeTensorData</a> :: <a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a> -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> a <a href="src/TensorFlow.Types.html#encodeTensorData" class="link">Source</a> <a href="#v:encodeTensorData" 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:TensorDataType:TensorDataType:13"></span> <a href="TensorFlow-Core.html#t:TensorDataType" title="TensorFlow.Core">TensorDataType</a> Vector (<a href="../base-4.13.0.0/Data-Complex.html#t:Complex" title="Data.Complex">Complex</a> <a href="../base-4.13.0.0/Prelude.html#t:Double" title="Prelude">Double</a>)</span> <a href="src/TensorFlow.Types.html#line-315" class="link">Source</a> <a href="#t:TensorDataType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:TensorDataType:TensorDataType:13"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:decodeTensorData">decodeTensorData</a> :: <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> (<a href="../base-4.13.0.0/Data-Complex.html#t:Complex" title="Data.Complex">Complex</a> <a href="../base-4.13.0.0/Prelude.html#t:Double" title="Prelude">Double</a>) -&gt; Vector (<a href="../base-4.13.0.0/Data-Complex.html#t:Complex" title="Data.Complex">Complex</a> <a href="../base-4.13.0.0/Prelude.html#t:Double" title="Prelude">Double</a>) <a href="src/TensorFlow.Types.html#decodeTensorData" class="link">Source</a> <a href="#v:decodeTensorData" class="selflink">#</a></p><p class="src"><a href="#v:encodeTensorData">encodeTensorData</a> :: <a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a> -&gt; Vector (<a href="../base-4.13.0.0/Data-Complex.html#t:Complex" title="Data.Complex">Complex</a> <a href="../base-4.13.0.0/Prelude.html#t:Double" title="Prelude">Double</a>) -&gt; <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> (<a href="../base-4.13.0.0/Data-Complex.html#t:Complex" title="Data.Complex">Complex</a> <a href="../base-4.13.0.0/Prelude.html#t:Double" title="Prelude">Double</a>) <a href="src/TensorFlow.Types.html#encodeTensorData" class="link">Source</a> <a href="#v:encodeTensorData" 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:TensorDataType:TensorDataType:14"></span> <a href="TensorFlow-Core.html#t:TensorDataType" title="TensorFlow.Core">TensorDataType</a> Vector (<a href="../base-4.13.0.0/Data-Complex.html#t:Complex" title="Data.Complex">Complex</a> <a href="../base-4.13.0.0/Prelude.html#t:Float" title="Prelude">Float</a>)</span> <a href="src/TensorFlow.Types.html#line-311" class="link">Source</a> <a href="#t:TensorDataType" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:ic:TensorDataType:TensorDataType:14"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:decodeTensorData">decodeTensorData</a> :: <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> (<a href="../base-4.13.0.0/Data-Complex.html#t:Complex" title="Data.Complex">Complex</a> <a href="../base-4.13.0.0/Prelude.html#t:Float" title="Prelude">Float</a>) -&gt; Vector (<a href="../base-4.13.0.0/Data-Complex.html#t:Complex" title="Data.Complex">Complex</a> <a href="../base-4.13.0.0/Prelude.html#t:Float" title="Prelude">Float</a>) <a href="src/TensorFlow.Types.html#decodeTensorData" class="link">Source</a> <a href="#v:decodeTensorData" class="selflink">#</a></p><p class="src"><a href="#v:encodeTensorData">encodeTensorData</a> :: <a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a> -&gt; Vector (<a href="../base-4.13.0.0/Data-Complex.html#t:Complex" title="Data.Complex">Complex</a> <a href="../base-4.13.0.0/Prelude.html#t:Float" title="Prelude">Float</a>) -&gt; <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> (<a href="../base-4.13.0.0/Data-Complex.html#t:Complex" title="Data.Complex">Complex</a> <a href="../base-4.13.0.0/Prelude.html#t:Float" title="Prelude">Float</a>) <a href="src/TensorFlow.Types.html#encodeTensorData" class="link">Source</a> <a href="#v:encodeTensorData" 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:ResourceHandle" class="def">ResourceHandle</a> = <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-ResourceHandle.html#t:ResourceHandleProto" title="Proto.Tensorflow.Core.Framework.ResourceHandle">ResourceHandleProto</a> <a href="src/TensorFlow.Types.html#ResourceHandle" class="link">Source</a> <a href="#t:ResourceHandle" class="selflink">#</a></p></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a id="t:Scalar" class="def">Scalar</a> a <a href="src/TensorFlow.Types.html#Scalar" class="link">Source</a> <a href="#t:Scalar" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="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><ul><li><dfn class="src"><a id="v:unScalar" class="def">unScalar</a> :: a</dfn><div class="doc empty">&nbsp;</div></li></ul></div></td></tr></table></div><div class="subs instances"><h4 class="instances details-toggle-control details-toggle" data-details-id="i:Scalar">Instances</h4><details id="i:Scalar" 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:Scalar:TensorDataType:1"></span> (<a href="TensorFlow-Core.html#t:TensorDataType" title="TensorFlow.Core">TensorDataType</a> Vector a, <a href="TensorFlow-Core.html#t:TensorType" title="TensorFlow.Core">TensorType</a> a) =&gt; <a href="TensorFlow-Core.html#t:TensorDataType" title="TensorFlow.Core">TensorDataType</a> <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a</span> <a href="src/TensorFlow.Types.html#line-373" class="link">Source</a> <a href="#t:Scalar" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Scalar:TensorDataType:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:decodeTensorData">decodeTensorData</a> :: <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="src/TensorFlow.Types.html#decodeTensorData" class="link">Source</a> <a href="#v:decodeTensorData" class="selflink">#</a></p><p class="src"><a href="#v:encodeTensorData">encodeTensorData</a> :: <a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a> -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:TensorData" title="TensorFlow.Core">TensorData</a> a <a href="src/TensorFlow.Types.html#encodeTensorData" class="link">Source</a> <a href="#v:encodeTensorData" 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:Scalar:Eq:2"></span> <a href="../base-4.13.0.0/Data-Eq.html#t:Eq" title="Data.Eq">Eq</a> a =&gt; <a href="../base-4.13.0.0/Data-Eq.html#t:Eq" title="Data.Eq">Eq</a> (<a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a)</span> <a href="src/TensorFlow.Types.html#line-370" class="link">Source</a> <a href="#t:Scalar" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Scalar:Eq:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <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-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <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:Scalar:Floating:3"></span> <a href="../base-4.13.0.0/Numeric.html#t:Floating" title="Numeric">Floating</a> a =&gt; <a href="../base-4.13.0.0/Numeric.html#t:Floating" title="Numeric">Floating</a> (<a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a)</span> <a href="src/TensorFlow.Types.html#line-370" class="link">Source</a> <a href="#t:Scalar" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Scalar:Floating:3"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:pi">pi</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:pi" class="selflink">#</a></p><p class="src"><a href="#v:exp">exp</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:exp" class="selflink">#</a></p><p class="src"><a href="#v:log">log</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:log" class="selflink">#</a></p><p class="src"><a href="#v:sqrt">sqrt</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:sqrt" class="selflink">#</a></p><p class="src"><a href="#v:-42--42-">(**)</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:-42--42-" class="selflink">#</a></p><p class="src"><a href="#v:logBase">logBase</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:logBase" class="selflink">#</a></p><p class="src"><a href="#v:sin">sin</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:sin" class="selflink">#</a></p><p class="src"><a href="#v:cos">cos</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:cos" class="selflink">#</a></p><p class="src"><a href="#v:tan">tan</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:tan" class="selflink">#</a></p><p class="src"><a href="#v:asin">asin</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:asin" class="selflink">#</a></p><p class="src"><a href="#v:acos">acos</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:acos" class="selflink">#</a></p><p class="src"><a href="#v:atan">atan</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:atan" class="selflink">#</a></p><p class="src"><a href="#v:sinh">sinh</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:sinh" class="selflink">#</a></p><p class="src"><a href="#v:cosh">cosh</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:cosh" class="selflink">#</a></p><p class="src"><a href="#v:tanh">tanh</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:tanh" class="selflink">#</a></p><p class="src"><a href="#v:asinh">asinh</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:asinh" class="selflink">#</a></p><p class="src"><a href="#v:acosh">acosh</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:acosh" class="selflink">#</a></p><p class="src"><a href="#v:atanh">atanh</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:atanh" class="selflink">#</a></p><p class="src"><a href="#v:log1p">log1p</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:log1p" class="selflink">#</a></p><p class="src"><a href="#v:expm1">expm1</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:expm1" class="selflink">#</a></p><p class="src"><a href="#v:log1pexp">log1pexp</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:log1pexp" class="selflink">#</a></p><p class="src"><a href="#v:log1mexp">log1mexp</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:log1mexp" 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:Scalar:Fractional:4"></span> <a href="../base-4.13.0.0/Prelude.html#t:Fractional" title="Prelude">Fractional</a> a =&gt; <a href="../base-4.13.0.0/Prelude.html#t:Fractional" title="Prelude">Fractional</a> (<a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a)</span> <a href="src/TensorFlow.Types.html#line-370" class="link">Source</a> <a href="#t:Scalar" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Scalar:Fractional:4"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-47-">(/)</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:-47-" class="selflink">#</a></p><p class="src"><a href="#v:recip">recip</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:recip" class="selflink">#</a></p><p class="src"><a href="#v:fromRational">fromRational</a> :: <a href="../base-4.13.0.0/Prelude.html#t:Rational" title="Prelude">Rational</a> -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:fromRational" 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:Scalar:Num:5"></span> <a href="../base-4.13.0.0/Prelude.html#t:Num" title="Prelude">Num</a> a =&gt; <a href="../base-4.13.0.0/Prelude.html#t:Num" title="Prelude">Num</a> (<a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a)</span> <a href="src/TensorFlow.Types.html#line-370" class="link">Source</a> <a href="#t:Scalar" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Scalar:Num:5"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-43-">(+)</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:-43-" class="selflink">#</a></p><p class="src"><a href="#v:-45-">(-)</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:-45-" class="selflink">#</a></p><p class="src"><a href="#v:-42-">(*)</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:-42-" class="selflink">#</a></p><p class="src"><a href="#v:negate">negate</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:negate" class="selflink">#</a></p><p class="src"><a href="#v:abs">abs</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:abs" class="selflink">#</a></p><p class="src"><a href="#v:signum">signum</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:signum" class="selflink">#</a></p><p class="src"><a href="#v:fromInteger">fromInteger</a> :: <a href="../base-4.13.0.0/Prelude.html#t:Integer" title="Prelude">Integer</a> -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:fromInteger" 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:Scalar:Ord:6"></span> <a href="../base-4.13.0.0/Data-Ord.html#t:Ord" title="Data.Ord">Ord</a> a =&gt; <a href="../base-4.13.0.0/Data-Ord.html#t:Ord" title="Data.Ord">Ord</a> (<a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a)</span> <a href="src/TensorFlow.Types.html#line-370" class="link">Source</a> <a href="#t:Scalar" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Scalar:Ord:6"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:compare">compare</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <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-">(&lt;)</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <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-">(&lt;=)</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <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-">(&gt;)</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <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-">(&gt;=)</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <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-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:max" class="selflink">#</a></p><p class="src"><a href="#v:min">min</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:min" 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:Scalar:Real:7"></span> <a href="../base-4.13.0.0/Prelude.html#t:Real" title="Prelude">Real</a> a =&gt; <a href="../base-4.13.0.0/Prelude.html#t:Real" title="Prelude">Real</a> (<a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a)</span> <a href="src/TensorFlow.Types.html#line-370" class="link">Source</a> <a href="#t:Scalar" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Scalar:Real:7"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toRational">toRational</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="../base-4.13.0.0/Prelude.html#t:Rational" title="Prelude">Rational</a> <a href="#v:toRational" 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:Scalar:RealFloat:8"></span> <a href="../base-4.13.0.0/Prelude.html#t:RealFloat" title="Prelude">RealFloat</a> a =&gt; <a href="../base-4.13.0.0/Prelude.html#t:RealFloat" title="Prelude">RealFloat</a> (<a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a)</span> <a href="src/TensorFlow.Types.html#line-370" class="link">Source</a> <a href="#t:Scalar" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Scalar:RealFloat:8"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:floatRadix">floatRadix</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="../base-4.13.0.0/Prelude.html#t:Integer" title="Prelude">Integer</a> <a href="#v:floatRadix" class="selflink">#</a></p><p class="src"><a href="#v:floatDigits">floatDigits</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="../base-4.13.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> <a href="#v:floatDigits" class="selflink">#</a></p><p class="src"><a href="#v:floatRange">floatRange</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; (<a href="../base-4.13.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a>, <a href="../base-4.13.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a>) <a href="#v:floatRange" class="selflink">#</a></p><p class="src"><a href="#v:decodeFloat">decodeFloat</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; (<a href="../base-4.13.0.0/Prelude.html#t:Integer" title="Prelude">Integer</a>, <a href="../base-4.13.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a>) <a href="#v:decodeFloat" class="selflink">#</a></p><p class="src"><a href="#v:encodeFloat">encodeFloat</a> :: <a href="../base-4.13.0.0/Prelude.html#t:Integer" title="Prelude">Integer</a> -&gt; <a href="../base-4.13.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:encodeFloat" class="selflink">#</a></p><p class="src"><a href="#v:exponent">exponent</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="../base-4.13.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> <a href="#v:exponent" class="selflink">#</a></p><p class="src"><a href="#v:significand">significand</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:significand" class="selflink">#</a></p><p class="src"><a href="#v:scaleFloat">scaleFloat</a> :: <a href="../base-4.13.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:scaleFloat" class="selflink">#</a></p><p class="src"><a href="#v:isNaN">isNaN</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="../base-4.13.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:isNaN" class="selflink">#</a></p><p class="src"><a href="#v:isInfinite">isInfinite</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="../base-4.13.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:isInfinite" class="selflink">#</a></p><p class="src"><a href="#v:isDenormalized">isDenormalized</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="../base-4.13.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:isDenormalized" class="selflink">#</a></p><p class="src"><a href="#v:isNegativeZero">isNegativeZero</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="../base-4.13.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:isNegativeZero" class="selflink">#</a></p><p class="src"><a href="#v:isIEEE">isIEEE</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="../base-4.13.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:isIEEE" class="selflink">#</a></p><p class="src"><a href="#v:atan2">atan2</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:atan2" 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:Scalar:RealFrac:9"></span> <a href="../base-4.13.0.0/Prelude.html#t:RealFrac" title="Prelude">RealFrac</a> a =&gt; <a href="../base-4.13.0.0/Prelude.html#t:RealFrac" title="Prelude">RealFrac</a> (<a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a)</span> <a href="src/TensorFlow.Types.html#line-371" class="link">Source</a> <a href="#t:Scalar" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Scalar:RealFrac:9"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:properFraction">properFraction</a> :: <a href="../base-4.13.0.0/Prelude.html#t:Integral" title="Prelude">Integral</a> b =&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; (b, <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a) <a href="#v:properFraction" class="selflink">#</a></p><p class="src"><a href="#v:truncate">truncate</a> :: <a href="../base-4.13.0.0/Prelude.html#t:Integral" title="Prelude">Integral</a> b =&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; b <a href="#v:truncate" class="selflink">#</a></p><p class="src"><a href="#v:round">round</a> :: <a href="../base-4.13.0.0/Prelude.html#t:Integral" title="Prelude">Integral</a> b =&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; b <a href="#v:round" class="selflink">#</a></p><p class="src"><a href="#v:ceiling">ceiling</a> :: <a href="../base-4.13.0.0/Prelude.html#t:Integral" title="Prelude">Integral</a> b =&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; b <a href="#v:ceiling" class="selflink">#</a></p><p class="src"><a href="#v:floor">floor</a> :: <a href="../base-4.13.0.0/Prelude.html#t:Integral" title="Prelude">Integral</a> b =&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; b <a href="#v:floor" 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:Scalar:Show:10"></span> <a href="../base-4.13.0.0/Text-Show.html#t:Show" title="Text.Show">Show</a> a =&gt; <a href="../base-4.13.0.0/Text-Show.html#t:Show" title="Text.Show">Show</a> (<a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a)</span> <a href="src/TensorFlow.Types.html#line-370" class="link">Source</a> <a href="#t:Scalar" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Scalar:Show:10"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="../base-4.13.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="../base-4.13.0.0/Text-Show.html#t:ShowS" title="Text.Show">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a -&gt; <a href="../base-4.13.0.0/Data-String.html#t:String" title="Data.String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a] -&gt; <a href="../base-4.13.0.0/Text-Show.html#t:ShowS" title="Text.Show">ShowS</a> <a href="#v:showList" 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:Scalar:IsString:11"></span> <a href="../base-4.13.0.0/Data-String.html#t:IsString" title="Data.String">IsString</a> a =&gt; <a href="../base-4.13.0.0/Data-String.html#t:IsString" title="Data.String">IsString</a> (<a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a)</span> <a href="src/TensorFlow.Types.html#line-371" class="link">Source</a> <a href="#t:Scalar" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Scalar:IsString:11"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fromString">fromString</a> :: <a href="../base-4.13.0.0/Data-String.html#t:String" title="Data.String">String</a> -&gt; <a href="TensorFlow-Core.html#t:Scalar" title="TensorFlow.Core">Scalar</a> a <a href="#v:fromString" class="selflink">#</a></p></div></details></td></tr></table></details></div></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a id="t:Shape" class="def">Shape</a> <a href="src/TensorFlow.Types.html#Shape" class="link">Source</a> <a href="#t:Shape" class="selflink">#</a></p><div class="doc"><p>Shape (dimensions) of a tensor.</p><p>TensorFlow supports shapes of unknown rank, which are represented as
<code>Nothing :: Maybe Shape</code> in Haskell.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:Shape" class="def">Shape</a> [<a href="../base-4.13.0.0/Data-Int.html#t:Int64" title="Data.Int">Int64</a>]</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><h4 class="instances details-toggle-control details-toggle" data-details-id="i:Shape">Instances</h4><details id="i:Shape" 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:Shape:IsList:1"></span> <a href="../base-4.13.0.0/GHC-Exts.html#t:IsList" title="GHC.Exts">IsList</a> <a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a></span> <a href="src/TensorFlow.Types.html#line-391" class="link">Source</a> <a href="#t:Shape" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Shape:IsList:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs associated-types"><p class="caption">Associated Types</p><p class="src"><span class="keyword">type</span> <a href="../base-4.13.0.0/GHC-Exts.html#t:Item" title="GHC.Exts">Item</a> <a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a> <a href="#t:Item" class="selflink">#</a></p></div> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fromList">fromList</a> :: [<a href="../base-4.13.0.0/GHC-Exts.html#t:Item" title="GHC.Exts">Item</a> <a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a>] -&gt; <a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a> <a href="#v:fromList" class="selflink">#</a></p><p class="src"><a href="#v:fromListN">fromListN</a> :: <a href="../base-4.13.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; [<a href="../base-4.13.0.0/GHC-Exts.html#t:Item" title="GHC.Exts">Item</a> <a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a>] -&gt; <a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a> <a href="#v:fromListN" class="selflink">#</a></p><p class="src"><a href="#v:toList">toList</a> :: <a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a> -&gt; [<a href="../base-4.13.0.0/GHC-Exts.html#t:Item" title="GHC.Exts">Item</a> <a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a>] <a href="#v:toList" 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:Shape:Show:2"></span> <a href="../base-4.13.0.0/Text-Show.html#t:Show" title="Text.Show">Show</a> <a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a></span> <a href="src/TensorFlow.Types.html#line-389" class="link">Source</a> <a href="#t:Shape" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Shape:Show:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="../base-4.13.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a> -&gt; <a href="../base-4.13.0.0/Text-Show.html#t:ShowS" title="Text.Show">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a> -&gt; <a href="../base-4.13.0.0/Data-String.html#t:String" title="Data.String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a>] -&gt; <a href="../base-4.13.0.0/Text-Show.html#t:ShowS" title="Text.Show">ShowS</a> <a href="#v:showList" 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:Shape:Attribute:3"></span> <a href="TensorFlow-Types.html#t:Attribute" title="TensorFlow.Types">Attribute</a> <a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a></span> <a href="src/TensorFlow.Types.html#line-440" class="link">Source</a> <a href="#t:Shape" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Shape:Attribute:3"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:attrLens">attrLens</a> :: Lens' <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-AttrValue.html#t:AttrValue" title="Proto.Tensorflow.Core.Framework.AttrValue">AttrValue</a> <a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a> <a href="src/TensorFlow.Types.html#attrLens" class="link">Source</a> <a href="#v:attrLens" 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:Shape:Attribute:4"></span> <a href="TensorFlow-Types.html#t:Attribute" title="TensorFlow.Types">Attribute</a> (<a href="../base-4.13.0.0/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> <a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a>)</span> <a href="src/TensorFlow.Types.html#line-443" class="link">Source</a> <a href="#t:Shape" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Shape:Attribute:4"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:attrLens">attrLens</a> :: Lens' <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-AttrValue.html#t:AttrValue" title="Proto.Tensorflow.Core.Framework.AttrValue">AttrValue</a> (<a href="../base-4.13.0.0/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> <a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a>) <a href="src/TensorFlow.Types.html#attrLens" class="link">Source</a> <a href="#v:attrLens" 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:Shape:Item:5"></span> <span class="keyword">type</span> <a href="../base-4.13.0.0/GHC-Exts.html#t:Item" title="GHC.Exts">Item</a> <a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a></span> <a href="src/TensorFlow.Types.html#line-392" class="link">Source</a> <a href="#t:Shape" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Shape:Item:5"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Types.html">TensorFlow.Types</a></p> <div class="src"><span class="keyword">type</span> <a href="../base-4.13.0.0/GHC-Exts.html#t:Item" title="GHC.Exts">Item</a> <a href="TensorFlow-Core.html#t:Shape" title="TensorFlow.Core">Shape</a> = <a href="../base-4.13.0.0/Data-Int.html#t:Int64" title="Data.Int">Int64</a></div></details></td></tr></table></details></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:OneOf" class="def">OneOf</a> ts a = (<a href="TensorFlow-Core.html#t:TensorType" title="TensorFlow.Core">TensorType</a> a, TensorTypes' ts, <a href="TensorFlow-Types.html#t:NoneOf" title="TensorFlow.Types">NoneOf</a> (<a href="TensorFlow-Types.html#t:AllTensorTypes" title="TensorFlow.Types">AllTensorTypes</a> <a href="TensorFlow-Types.html#t:-92--92-" title="TensorFlow.Types">\\</a> ts) a) <a href="src/TensorFlow.Types.html#OneOf" class="link">Source</a> <a href="#t:OneOf" class="selflink">#</a></p><div class="doc"><p>A <code><a href="../base-4.13.0.0/Data-Kind.html#t:Constraint" title="Data.Kind">Constraint</a></code> specifying the possible choices of a <code><a href="TensorFlow-Core.html#t:TensorType" title="TensorFlow.Core">TensorType</a></code>.</p><p>We implement a <code><a href="../base-4.13.0.0/Data-Kind.html#t:Constraint" title="Data.Kind">Constraint</a></code> like <code>OneOf '[Double, Float] a</code> by turning the
natural representation as a conjunction, i.e.,</p><pre> a == Double || a == Float
</pre><p>into a disjunction like</p><pre> a /= Int32 &amp;&amp; a /= Int64 &amp;&amp; a /= ByteString &amp;&amp; ...
</pre><p>using an enumeration of all the possible <code><a href="TensorFlow-Core.html#t:TensorType" title="TensorFlow.Core">TensorType</a></code>s.</p></div></div><div class="top"><p class="src"><span class="keyword">type family</span> a <a id="t:-47--61-" class="def">/=</a> b :: <a href="../base-4.13.0.0/Data-Kind.html#t:Constraint" title="Data.Kind">Constraint</a> <span class="keyword">where ...</span> <a href="src/TensorFlow.Types.html#%2F%3D" class="link">Source</a> <a href="#t:-47--61-" class="selflink">#</a></p><div class="doc"><p>A constraint checking that two types are different.</p></div><div class="subs equations"><p class="caption">Equations</p><table><tr><td class="src">a <a href="TensorFlow-Core.html#t:-47--61-" title="TensorFlow.Core">/=</a> a = <a href="TensorFlow-Types.html#t:TypeError" title="TensorFlow.Types">TypeError</a> a ~ <a href="TensorFlow-Types.html#t:ExcludedCase" title="TensorFlow.Types">ExcludedCase</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">a <a href="TensorFlow-Core.html#t:-47--61-" title="TensorFlow.Core">/=</a> b = ()</td><td class="doc empty">&nbsp;</td></tr></table></div></div><a href="#g:8" id="g:8"><h1>Op combinators</h1></a><div class="top"><p class="src"><a id="v:colocateWith" class="def">colocateWith</a> :: (<a href="TensorFlow-Core.html#t:MonadBuild" title="TensorFlow.Core">MonadBuild</a> m, <a href="TensorFlow-Tensor.html#t:Rendered" title="TensorFlow.Tensor">Rendered</a> t) =&gt; t b -&gt; m a -&gt; m a <a href="src/TensorFlow.Tensor.html#colocateWith" class="link">Source</a> <a href="#v:colocateWith" class="selflink">#</a></p><div class="doc"><p>Places all nodes rendered in the given <code><a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">Build</a></code> action on the same
device as the given Tensor (see also <code><a href="TensorFlow-Core.html#v:withDevice" title="TensorFlow.Core">withDevice</a></code>). Make sure that
the action has side effects of rendering the desired tensors. A pure
return would not have the desired effect.</p></div></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a id="t:Device" class="def">Device</a> <a href="src/TensorFlow.Output.html#Device" class="link">Source</a> <a href="#t:Device" class="selflink">#</a></p><div class="doc"><p>A device that a node can be assigned to.
There's a naming convention where the device names
are constructed from job and replica names.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:Device" class="def">Device</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:deviceName" class="def">deviceName</a> :: <a href="../text-1.2.4.0/Data-Text.html#t:Text" title="Data.Text">Text</a></dfn><div class="doc empty">&nbsp;</div></li></ul></div></td></tr></table></div><div class="subs instances"><h4 class="instances details-toggle-control details-toggle" data-details-id="i:Device">Instances</h4><details id="i:Device" 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:Device:Eq:1"></span> <a href="../base-4.13.0.0/Data-Eq.html#t:Eq" title="Data.Eq">Eq</a> <a href="TensorFlow-Core.html#t:Device" title="TensorFlow.Core">Device</a></span> <a href="src/TensorFlow.Output.html#line-74" class="link">Source</a> <a href="#t:Device" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Device:Eq:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Output.html">TensorFlow.Output</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="TensorFlow-Core.html#t:Device" title="TensorFlow.Core">Device</a> -&gt; <a href="TensorFlow-Core.html#t:Device" title="TensorFlow.Core">Device</a> -&gt; <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-Core.html#t:Device" title="TensorFlow.Core">Device</a> -&gt; <a href="TensorFlow-Core.html#t:Device" title="TensorFlow.Core">Device</a> -&gt; <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:Device:Ord:2"></span> <a href="../base-4.13.0.0/Data-Ord.html#t:Ord" title="Data.Ord">Ord</a> <a href="TensorFlow-Core.html#t:Device" title="TensorFlow.Core">Device</a></span> <a href="src/TensorFlow.Output.html#line-74" class="link">Source</a> <a href="#t:Device" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Device:Ord:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Output.html">TensorFlow.Output</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:compare">compare</a> :: <a href="TensorFlow-Core.html#t:Device" title="TensorFlow.Core">Device</a> -&gt; <a href="TensorFlow-Core.html#t:Device" title="TensorFlow.Core">Device</a> -&gt; <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-">(&lt;)</a> :: <a href="TensorFlow-Core.html#t:Device" title="TensorFlow.Core">Device</a> -&gt; <a href="TensorFlow-Core.html#t:Device" title="TensorFlow.Core">Device</a> -&gt; <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-">(&lt;=)</a> :: <a href="TensorFlow-Core.html#t:Device" title="TensorFlow.Core">Device</a> -&gt; <a href="TensorFlow-Core.html#t:Device" title="TensorFlow.Core">Device</a> -&gt; <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-">(&gt;)</a> :: <a href="TensorFlow-Core.html#t:Device" title="TensorFlow.Core">Device</a> -&gt; <a href="TensorFlow-Core.html#t:Device" title="TensorFlow.Core">Device</a> -&gt; <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-">(&gt;=)</a> :: <a href="TensorFlow-Core.html#t:Device" title="TensorFlow.Core">Device</a> -&gt; <a href="TensorFlow-Core.html#t:Device" title="TensorFlow.Core">Device</a> -&gt; <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-Core.html#t:Device" title="TensorFlow.Core">Device</a> -&gt; <a href="TensorFlow-Core.html#t:Device" title="TensorFlow.Core">Device</a> -&gt; <a href="TensorFlow-Core.html#t:Device" title="TensorFlow.Core">Device</a> <a href="#v:max" class="selflink">#</a></p><p class="src"><a href="#v:min">min</a> :: <a href="TensorFlow-Core.html#t:Device" title="TensorFlow.Core">Device</a> -&gt; <a href="TensorFlow-Core.html#t:Device" title="TensorFlow.Core">Device</a> -&gt; <a href="TensorFlow-Core.html#t:Device" title="TensorFlow.Core">Device</a> <a href="#v:min" 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:Device:Show:3"></span> <a href="../base-4.13.0.0/Text-Show.html#t:Show" title="Text.Show">Show</a> <a href="TensorFlow-Core.html#t:Device" title="TensorFlow.Core">Device</a></span> <a href="src/TensorFlow.Output.html#line-76" class="link">Source</a> <a href="#t:Device" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Device:Show:3"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Output.html">TensorFlow.Output</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="../base-4.13.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="TensorFlow-Core.html#t:Device" title="TensorFlow.Core">Device</a> -&gt; <a href="../base-4.13.0.0/Text-Show.html#t:ShowS" title="Text.Show">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="TensorFlow-Core.html#t:Device" title="TensorFlow.Core">Device</a> -&gt; <a href="../base-4.13.0.0/Data-String.html#t:String" title="Data.String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="TensorFlow-Core.html#t:Device" title="TensorFlow.Core">Device</a>] -&gt; <a href="../base-4.13.0.0/Text-Show.html#t:ShowS" title="Text.Show">ShowS</a> <a href="#v:showList" 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:Device:IsString:4"></span> <a href="../base-4.13.0.0/Data-String.html#t:IsString" title="Data.String">IsString</a> <a href="TensorFlow-Core.html#t:Device" title="TensorFlow.Core">Device</a></span> <a href="src/TensorFlow.Output.html#line-74" class="link">Source</a> <a href="#t:Device" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:Device:IsString:4"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Output.html">TensorFlow.Output</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fromString">fromString</a> :: <a href="../base-4.13.0.0/Data-String.html#t:String" title="Data.String">String</a> -&gt; <a href="TensorFlow-Core.html#t:Device" title="TensorFlow.Core">Device</a> <a href="#v:fromString" class="selflink">#</a></p></div></details></td></tr></table></details></div></div><div class="top"><p class="src"><a id="v:withDevice" class="def">withDevice</a> :: <a href="TensorFlow-Core.html#t:MonadBuild" title="TensorFlow.Core">MonadBuild</a> m =&gt; <a href="../base-4.13.0.0/Data-Maybe.html#t:Maybe" title="Data.Maybe">Maybe</a> <a href="TensorFlow-Core.html#t:Device" title="TensorFlow.Core">Device</a> -&gt; m a -&gt; 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-Core.html#t:Build" title="TensorFlow.Core">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-Core.html#t:MonadBuild" title="TensorFlow.Core">MonadBuild</a> m =&gt; <a href="../text-1.2.4.0/Data-Text.html#t:Text" title="Data.Text">Text</a> -&gt; m a -&gt; 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-Core.html#t:Build" title="TensorFlow.Core">Build</a></code> action.</p></div></div><a href="#g:9" id="g:9"><h2>Dependencies</h2></a><div class="top"><p class="src"><a id="v:withControlDependencies" class="def">withControlDependencies</a> :: (<a href="TensorFlow-Core.html#t:MonadBuild" title="TensorFlow.Core">MonadBuild</a> m, <a href="TensorFlow-Core.html#t:Nodes" title="TensorFlow.Core">Nodes</a> t) =&gt; t -&gt; m a -&gt; m a <a href="src/TensorFlow.ControlFlow.html#withControlDependencies" class="link">Source</a> <a href="#v:withControlDependencies" class="selflink">#</a></p><div class="doc"><p>Modify a <code><a href="TensorFlow-Core.html#t:Build" title="TensorFlow.Core">Build</a></code> action, such that all new ops rendered in it will depend
on the nodes in the first argument.</p></div></div><div class="top"><p class="src"><a id="v:group" class="def">group</a> :: (<a href="TensorFlow-Core.html#t:MonadBuild" title="TensorFlow.Core">MonadBuild</a> m, <a href="TensorFlow-Core.html#t:Nodes" title="TensorFlow.Core">Nodes</a> t) =&gt; t -&gt; m <a href="TensorFlow-Core.html#t:ControlNode" title="TensorFlow.Core">ControlNode</a> <a href="src/TensorFlow.ControlFlow.html#group" class="link">Source</a> <a href="#v:group" class="selflink">#</a></p><div class="doc"><p>Create an op that groups multiple operations.</p><p>When this op finishes, all ops in the input <code>n</code> have finished. This op has
no output.</p></div></div><a href="#g:10" id="g:10"><h2>Misc</h2></a><div class="top"><p class="src"><a id="v:noOp" class="def">noOp</a> :: <a href="TensorFlow-Core.html#t:MonadBuild" title="TensorFlow.Core">MonadBuild</a> m =&gt; m <a href="TensorFlow-Core.html#t:ControlNode" title="TensorFlow.Core">ControlNode</a> <a href="src/TensorFlow.ControlFlow.html#noOp" class="link">Source</a> <a href="#v:noOp" class="selflink">#</a></p><div class="doc"><p>Does nothing. Only useful as a placeholder for control edges.</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>