1
0
Fork 0
mirror of https://github.com/tensorflow/haskell.git synced 2024-11-30 06:49:44 +01:00
tensorflow-haskell/docs/haddock/tensorflow-0.1.0.0/TensorFlow-Tensor.html
2017-04-08 07:14:47 -07:00

25 lines
No EOL
26 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>TensorFlow.Tensor</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_TensorFlow-Tensor.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">tensorflow-0.1.0.0: TensorFlow bindings.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">TensorFlow.Tensor</p></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span> <a href="#t:Tensor">Tensor</a> v a <span class="keyword">where</span><ul class="subs"><li><a href="#v:Tensor">Tensor</a> :: <a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> v =&gt; { <ul class="subs"><li><a href="#v:tensorOutput">tensorOutput</a> :: v <a href="TensorFlow-Output.html#t:Output">Output</a></li></ul> } -&gt; <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a</li></ul></li><li class="src short"><span class="keyword">newtype</span> <a href="#t:Value">Value</a> a = <a href="#v:Value">Value</a> {<ul class="subs"><li><a href="#v:runValue">runValue</a> :: a</li></ul>}</li><li class="src short"><span class="keyword">newtype</span> <a href="#t:Ref">Ref</a> a = <a href="#v:Ref">Ref</a> {<ul class="subs"><li><a href="#v:runRef">runRef</a> :: a</li></ul>}</li><li class="src short"><a href="#v:value">value</a> :: <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> a -&gt; <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Value">Value</a> a</li><li class="src short"><a href="#v:renderValue">renderValue</a> :: <a href="TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m =&gt; <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -&gt; m (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Value">Value</a> a)</li><li class="src short"><span class="keyword">data</span> <a href="#t:Feed">Feed</a> = <a href="#v:Feed">Feed</a> <a href="TensorFlow-Output.html#t:Output">Output</a> <a href="TensorFlow-Internal-FFI.html#t:TensorData">TensorData</a></li><li class="src short"><span class="keyword">class</span> <a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> v =&gt; <a href="#t:Rendered">Rendered</a> v <span class="keyword">where</span><ul class="subs"><li><a href="#v:rendered">rendered</a> :: v a -&gt; a</li></ul></li><li class="src short"><a href="#v:renderedOutput">renderedOutput</a> :: <a href="TensorFlow-Tensor.html#t:Rendered">Rendered</a> v =&gt; <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -&gt; <a href="TensorFlow-Output.html#t:Output">Output</a></li><li class="src short"><a href="#v:tensorNodeName">tensorNodeName</a> :: <a href="TensorFlow-Tensor.html#t:Rendered">Rendered</a> v =&gt; <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -&gt; <a href="TensorFlow-Output.html#t:NodeName">NodeName</a></li><li class="src short"><a href="#v:feed">feed</a> :: <a href="TensorFlow-Tensor.html#t:Rendered">Rendered</a> v =&gt; <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -&gt; <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> a -&gt; <a href="TensorFlow-Tensor.html#t:Feed">Feed</a></li><li class="src short"><a href="#v:tensorFromName">tensorFromName</a> :: <a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> v =&gt; Text -&gt; <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a</li><li class="src short"><a href="#v:tensorValueFromName">tensorValueFromName</a> :: Text -&gt; <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Value">Value</a> a</li><li class="src short"><a href="#v:tensorRefFromName">tensorRefFromName</a> :: Text -&gt; <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> a</li><li class="src short"><span class="keyword">type</span> <a href="#t:TensorList">TensorList</a> v = <a href="TensorFlow-Types.html#t:ListOf">ListOf</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v)</li><li class="src short"><a href="#v:tensorListOutputs">tensorListOutputs</a> :: <a href="TensorFlow-Tensor.html#t:Rendered">Rendered</a> v =&gt; <a href="TensorFlow-Tensor.html#t:TensorList">TensorList</a> v as -&gt; [<a href="TensorFlow-Output.html#t:Output">Output</a>]</li><li class="src short"><a href="#v:colocateWith">colocateWith</a> :: (<a href="TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <a href="TensorFlow-Tensor.html#t:Rendered">Rendered</a> v) =&gt; <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v b -&gt; m a -&gt; m a</li><li class="src short"><a href="#v:render">render</a> :: <a href="TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m =&gt; <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Build.html#t:Build">Build</a> a -&gt; m (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Value">Value</a> a)</li><li class="src short"><a href="#v:expr">expr</a> :: <a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> v =&gt; <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -&gt; <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Build.html#t:Build">Build</a> a</li><li class="src short"><a href="#v:addSummary">addSummary</a> :: (<a href="TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> v) =&gt; <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v <a href="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; m ()</li><li class="src short"><a href="#v:collectAllSummaries">collectAllSummaries</a> :: <a href="TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m =&gt; m [<a href="TensorFlow-Tensor.html#t:SummaryTensor">SummaryTensor</a>]</li><li class="src short"><span class="keyword">type</span> <a href="#t:SummaryTensor">SummaryTensor</a> = <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Value">Value</a> <a href="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></li><li class="src short"><span class="keyword">class</span> <a href="../base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> v =&gt; <a href="#t:TensorKind">TensorKind</a> v <span class="keyword">where</span><ul class="subs"><li><a href="#v:toBuild">toBuild</a> :: v a -&gt; <a href="TensorFlow-Build.html#t:Build">Build</a> a</li></ul></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Tensor" class="def">Tensor</a> v a <span class="keyword">where</span></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-Tensor.html#t:Tensor">Tensor</a></code>. The
parameter <code>v</code> is either:</p><ul><li><code><a href="TensorFlow-Build.html#t:Build">Build</a></code>: An unrendered, immutable value.</li><li><code><a href="TensorFlow-Tensor.html#t:Value">Value</a></code>: A rendered, immutable value.</li><li><code><a href="TensorFlow-Tensor.html#t:Ref">Ref</a></code>: A rendered stateful handle (e.g., a variable).</li></ul><p>Note that <code><a href="TensorFlow-Tensor.html#v:expr">expr</a></code>, <code><a href="TensorFlow-Tensor.html#v:value">value</a></code>, <code><a href="TensorFlow-Tensor.html#v:render">render</a></code> and <code><a href="TensorFlow-Tensor.html#v:renderValue">renderValue</a></code> can help convert between
the different types of <code><a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a></code>.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Tensor" class="def">Tensor</a> :: <a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> v =&gt; v <a href="TensorFlow-Output.html#t:Output">Output</a> -&gt; <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a</td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:tensorOutput" class="def">tensorOutput</a> :: v <a href="TensorFlow-Output.html#t:Output">Output</a></dt><dd class="doc empty">&nbsp;</dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:Tensor" class="caption collapser" onclick="toggleSection('i:Tensor')">Instances</p><div id="section.i:Tensor" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="TensorFlow-BuildOp.html#t:BuildInputs">BuildInputs</a> (<a href="TensorFlow-Types.html#t:ListOf">ListOf</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v) as)</span></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="TensorFlow-BuildOp.html#t:BuildInputs">BuildInputs</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a)</span></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="TensorFlow-Types.html#t:TensorTypes">TensorTypes</a> as =&gt; <a href="TensorFlow-BuildOp.html#t:PureResult">PureResult</a> (<a href="TensorFlow-Tensor.html#t:TensorList">TensorList</a> <a href="TensorFlow-Build.html#t:Build">Build</a> as)</span></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="TensorFlow-BuildOp.html#t:PureResult">PureResult</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Build.html#t:Build">Build</a> a)</span></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left">(<a href="TensorFlow-Tensor.html#t:Rendered">Rendered</a> v, <a href="TensorFlow-Types.html#t:TensorTypes">TensorTypes</a> as) =&gt; <a href="TensorFlow-BuildOp.html#t:BuildResult">BuildResult</a> (<a href="TensorFlow-Tensor.html#t:TensorList">TensorList</a> v as)</span></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="TensorFlow-Tensor.html#t:Rendered">Rendered</a> v =&gt; <a href="TensorFlow-BuildOp.html#t:BuildResult">BuildResult</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a)</span></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="TensorFlow-Nodes.html#t:Nodes">Nodes</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a)</span></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left">(<a href="TensorFlow-Types.html#t:TensorType">TensorType</a> a, <a href="TensorFlow-Types.html#t:TensorDataType">TensorDataType</a> s a, (~) * a a') =&gt; <a href="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a) (s a')</span></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left">(<a href="TensorFlow-Types.html#t:TensorType">TensorType</a> a, (~) * a a') =&gt; <a href="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a) (<a href="TensorFlow-Types.html#t:TensorData">TensorData</a> a')</span></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a name="t:Value" class="def">Value</a> a</p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Value" class="def">Value</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:runValue" class="def">runValue</a> :: a</dt><dd class="doc empty">&nbsp;</dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:Value" class="caption collapser" onclick="toggleSection('i:Value')">Instances</p><div id="section.i:Value" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="../base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> <a href="TensorFlow-Tensor.html#t:Value">Value</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="../base-4.8.2.0/Data-Functor.html#t:Functor">Functor</a> <a href="TensorFlow-Tensor.html#t:Value">Value</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="../base-4.8.2.0/Control-Applicative.html#t:Applicative">Applicative</a> <a href="TensorFlow-Tensor.html#t:Value">Value</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> <a href="TensorFlow-Tensor.html#t:Value">Value</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="TensorFlow-Tensor.html#t:Rendered">Rendered</a> <a href="TensorFlow-Tensor.html#t:Value">Value</a></span></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a name="t:Ref" class="def">Ref</a> a</p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Ref" class="def">Ref</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:runRef" class="def">runRef</a> :: a</dt><dd class="doc empty">&nbsp;</dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:Ref" class="caption collapser" onclick="toggleSection('i:Ref')">Instances</p><div id="section.i:Ref" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="../base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="../base-4.8.2.0/Data-Functor.html#t:Functor">Functor</a> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="../base-4.8.2.0/Control-Applicative.html#t:Applicative">Applicative</a> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="TensorFlow-Tensor.html#t:Rendered">Rendered</a> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a></span></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:value" class="def">value</a> :: <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> a -&gt; <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Value">Value</a> 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 name="v:renderValue" class="def">renderValue</a> :: <a href="TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m =&gt; <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -&gt; m (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Value">Value</a> a)</p></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Feed" class="def">Feed</a></p><div class="doc"><p>A pair of a <code><a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a></code> and some data that should be fed into that <code><a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a></code>
when running the graph.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Feed" class="def">Feed</a> <a href="TensorFlow-Output.html#t:Output">Output</a> <a href="TensorFlow-Internal-FFI.html#t:TensorData">TensorData</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> v =&gt; <a name="t:Rendered" class="def">Rendered</a> v <span class="keyword">where</span></p><div class="doc"><p>A class ensuring that a given tensor is rendered, i.e., has a fixed
name, device, etc.</p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:rendered" class="def">rendered</a> :: v a -&gt; a</p></div><div class="subs instances"><p id="control.i:Rendered" class="caption collapser" onclick="toggleSection('i:Rendered')">Instances</p><div id="section.i:Rendered" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="TensorFlow-Tensor.html#t:Rendered">Rendered</a> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="TensorFlow-Tensor.html#t:Rendered">Rendered</a> <a href="TensorFlow-Tensor.html#t:Value">Value</a></span></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:renderedOutput" class="def">renderedOutput</a> :: <a href="TensorFlow-Tensor.html#t:Rendered">Rendered</a> v =&gt; <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -&gt; <a href="TensorFlow-Output.html#t:Output">Output</a></p></div><div class="top"><p class="src"><a name="v:tensorNodeName" class="def">tensorNodeName</a> :: <a href="TensorFlow-Tensor.html#t:Rendered">Rendered</a> v =&gt; <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -&gt; <a href="TensorFlow-Output.html#t:NodeName">NodeName</a></p></div><div class="top"><p class="src"><a name="v:feed" class="def">feed</a> :: <a href="TensorFlow-Tensor.html#t:Rendered">Rendered</a> v =&gt; <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -&gt; <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> a -&gt; <a href="TensorFlow-Tensor.html#t:Feed">Feed</a></p><div class="doc"><p>Create a <code><a href="TensorFlow-Tensor.html#t:Feed">Feed</a></code> for feeding the given data into a <code><a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a></code> when running
the graph.</p><p>Note that if a <code><a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a></code> is rendered, its identity may change; so feeding the
rendered <code><a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a></code> may be different than feeding the original <code><a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a></code>.</p></div></div><div class="top"><p class="src"><a name="v:tensorFromName" class="def">tensorFromName</a> :: <a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> v =&gt; Text -&gt; <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a</p><div class="doc"><p>Create a <code><a href="TensorFlow-Tensor.html#t:Tensor">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-Build.html#v:addGraphDef">addGraphDef</a></code>.
TODO(judahjacobson): add more safety checks here.</p></div></div><div class="top"><p class="src"><a name="v:tensorValueFromName" class="def">tensorValueFromName</a> :: Text -&gt; <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Value">Value</a> a</p><div class="doc"><p>Like <code><a href="TensorFlow-Tensor.html#v:tensorFromName">tensorFromName</a></code>, but type-restricted to <code><a href="TensorFlow-Tensor.html#t:Value">Value</a></code>.</p></div></div><div class="top"><p class="src"><a name="v:tensorRefFromName" class="def">tensorRefFromName</a> :: Text -&gt; <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> a</p><div class="doc"><p>Like <code><a href="TensorFlow-Tensor.html#v:tensorFromName">tensorFromName</a></code>, but type-restricted to <code><a href="TensorFlow-Tensor.html#t:Ref">Ref</a></code>.</p></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:TensorList" class="def">TensorList</a> v = <a href="TensorFlow-Types.html#t:ListOf">ListOf</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v)</p></div><div class="top"><p class="src"><a name="v:tensorListOutputs" class="def">tensorListOutputs</a> :: <a href="TensorFlow-Tensor.html#t:Rendered">Rendered</a> v =&gt; <a href="TensorFlow-Tensor.html#t:TensorList">TensorList</a> v as -&gt; [<a href="TensorFlow-Output.html#t:Output">Output</a>]</p></div><div class="top"><p class="src"><a name="v:colocateWith" class="def">colocateWith</a> :: (<a href="TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <a href="TensorFlow-Tensor.html#t:Rendered">Rendered</a> v) =&gt; <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v b -&gt; m a -&gt; m a</p><div class="doc"><p>Places all nodes rendered in the given <code><a href="TensorFlow-Build.html#t:Build">Build</a></code> action on the same
device as the given Tensor (see also <code><a href="TensorFlow-Build.html#v:withDevice">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"><a name="v:render" class="def">render</a> :: <a href="TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m =&gt; <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Build.html#t:Build">Build</a> a -&gt; m (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Value">Value</a> a)</p><div class="doc"><p>Render a <code><a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a></code>, fixing its name, scope, device and control inputs from
the <code><a href="TensorFlow-Build.html#t:MonadBuild">MonadBuild</a></code> context. Also renders any dependencies of the <code><a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a></code> that
weren't already rendered.</p><p>This operation is idempotent; calling <code><a href="TensorFlow-Tensor.html#v:render">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 name="v:expr" class="def">expr</a> :: <a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> v =&gt; <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -&gt; <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Build.html#t:Build">Build</a> a</p></div><div class="top"><p class="src"><a name="v:addSummary" class="def">addSummary</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> v)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v <a href="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>A <code><a href="TensorFlow-Tensor.html#t:SummaryTensor">SummaryTensor</a></code></p></td></tr><tr><td class="src">-&gt; m ()</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Records the given summary action in Build for retrieval with
Summary protocol buffer in string form. For safety, use the
pre-composed functions: Logging.scalarSummary and
Logging.histogramSummary.</p></div></div><div class="top"><p class="src"><a name="v:collectAllSummaries" class="def">collectAllSummaries</a> :: <a href="TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m =&gt; m [<a href="TensorFlow-Tensor.html#t:SummaryTensor">SummaryTensor</a>]</p><div class="doc"><p>Retrieves the summary ops collected thus far. Typically this only
happens once, but if <code><a href="TensorFlow-Session.html#v:buildWithSummary">buildWithSummary</a></code> is used
repeatedly, the values accumulate.</p></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:SummaryTensor" class="def">SummaryTensor</a> = <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Value">Value</a> <a href="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></p><div class="doc"><p>Synonym for the tensors that return serialized Summary proto.</p></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="../base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> v =&gt; <a name="t:TensorKind" class="def">TensorKind</a> v <span class="keyword">where</span></p><div class="doc"><p>An internal class for kinds of Tensors.</p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:toBuild" class="def">toBuild</a> :: v a -&gt; <a href="TensorFlow-Build.html#t:Build">Build</a> a</p></div><div class="subs instances"><p id="control.i:TensorKind" class="caption collapser" onclick="toggleSection('i:TensorKind')">Instances</p><div id="section.i:TensorKind" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> <a href="TensorFlow-Build.html#t:Build">Build</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> <a href="TensorFlow-Tensor.html#t:Value">Value</a></span></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.1</p></div></body></html>