mirror of
https://github.com/tensorflow/haskell.git
synced 2024-11-23 11:29:43 +01:00
25 lines
No EOL
55 KiB
HTML
25 lines
No EOL
55 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 src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" 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="src/TensorFlow.Tensor.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">tensorflow-0.1.0.2: 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 => {..} -> <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 -> <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 => <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -> 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="#t:Rendered">Rendered</a> t <span class="keyword">where</span><ul class="subs"></ul></li><li class="src short"><a href="#v:tensorNodeName">tensorNodeName</a> :: <a href="TensorFlow-Tensor.html#t:Rendered">Rendered</a> t => t a -> <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> t => t a -> <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> a -> <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 => Text -> <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a</li><li class="src short"><a href="#v:tensorValueFromName">tensorValueFromName</a> :: Text -> <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 -> <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> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v) => <a href="TensorFlow-Tensor.html#t:TensorList">TensorList</a> v as -> [<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> t) => t b -> m a -> m a</li><li class="src short"><a href="#v:render">render</a> :: <a href="TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m => <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Build.html#t:Build">Build</a> a -> 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 => <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -> <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) => <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v <a href="../bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> -> m ()</li><li class="src short"><a href="#v:collectAllSummaries">collectAllSummaries</a> :: <a href="TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m => 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.8.1/Data-ByteString.html#t:ByteString">ByteString</a></li><li class="src short"><span class="keyword">class</span> <a href="../base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> v => <a href="#t:TensorKind">TensorKind</a> v <span class="keyword">where</span><ul class="subs"></ul></li><li class="src short"><span class="keyword">class</span> <a href="#t:ToTensor">ToTensor</a> t <span class="keyword">where</span><ul class="subs"></ul></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:Tensor" class="def">Tensor</a> v a <span class="keyword">where</span> <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-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 id="v:Tensor" class="def">Tensor</a> :: <a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> v => {..} -> <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a</td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:tensorOutput" class="def">tensorOutput</a> :: v <a href="TensorFlow-Output.html#t:Output">Output</a></dfn><div class="doc empty"> </div></li></ul></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"><span id="control.i:id:Tensor:ToTensor:1" class="instance expander" onclick="toggleSection('i:id:Tensor:ToTensor:1')"></span> <a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> v => <a href="TensorFlow-Tensor.html#t:ToTensor">ToTensor</a> (<a href="TensorFlow-Tensor.html#t:Tensor">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"> </td></tr><tr><td colspan="2"><div id="section.i:id:Tensor:ToTensor:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toTensor">toTensor</a> :: <a href="TensorFlow-Types.html#t:TensorType">TensorType</a> a => <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -> <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Build.html#t:Build">Build</a> a <a href="src/TensorFlow.Tensor.html#toTensor" class="link">Source</a> <a href="#v:toTensor" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Tensor:Rendered:2" class="instance expander" onclick="toggleSection('i:id:Tensor:Rendered:2')"></span> <a href="TensorFlow-Tensor.html#t:Rendered">Rendered</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Ref">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"> </td></tr><tr><td colspan="2"><div id="section.i:id:Tensor:Rendered:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:renderedOutput">renderedOutput</a> :: <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> a -> <a href="TensorFlow-Output.html#t:Output">Output</a> <a href="src/TensorFlow.Tensor.html#renderedOutput" class="link">Source</a> <a href="#v:renderedOutput" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Tensor:Rendered:3" class="instance expander" onclick="toggleSection('i:id:Tensor:Rendered:3')"></span> <a href="TensorFlow-Tensor.html#t:Rendered">Rendered</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Value">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"> </td></tr><tr><td colspan="2"><div id="section.i:id:Tensor:Rendered:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:renderedOutput">renderedOutput</a> :: <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Value">Value</a> a -> <a href="TensorFlow-Output.html#t:Output">Output</a> <a href="src/TensorFlow.Tensor.html#renderedOutput" class="link">Source</a> <a href="#v:renderedOutput" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Tensor:BuildInputs:4" class="instance expander" onclick="toggleSection('i:id:Tensor:BuildInputs:4')"></span> <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> <a href="src/TensorFlow.BuildOp.html#line-298" class="link">Source</a> <a href="#t:BuildInputs" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Tensor:BuildInputs:4" class="inst-details hide"><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">ListOf</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v) as -> <a href="TensorFlow-Build.html#t:Build">Build</a> [<a href="TensorFlow-Output.html#t:Output">Output</a>] <a href="src/TensorFlow.BuildOp.html#buildInputs" class="link">Source</a> <a href="#v:buildInputs" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Tensor:BuildInputs:5" class="instance expander" onclick="toggleSection('i:id:Tensor:BuildInputs:5')"></span> <a href="TensorFlow-BuildOp.html#t:BuildInputs">BuildInputs</a> (<a href="TensorFlow-Tensor.html#t:Tensor">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"> </td></tr><tr><td colspan="2"><div id="section.i:id:Tensor:BuildInputs:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:buildInputs">buildInputs</a> :: <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -> <a href="TensorFlow-Build.html#t:Build">Build</a> [<a href="TensorFlow-Output.html#t:Output">Output</a>] <a href="src/TensorFlow.BuildOp.html#buildInputs" class="link">Source</a> <a href="#v:buildInputs" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Tensor:PureResult:6" class="instance expander" onclick="toggleSection('i:id:Tensor:PureResult:6')"></span> <a href="TensorFlow-Types.html#t:TensorTypes">TensorTypes</a> as => <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> <a href="src/TensorFlow.BuildOp.html#line-270" class="link">Source</a> <a href="#t:PureResult" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Tensor:PureResult:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:pureResult">pureResult</a> :: <a href="../transformers-0.5.2.0/Control-Monad-Trans-Reader.html#t:ReaderT">ReaderT</a> <a href="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a> (<a href="TensorFlow-Build.html#t:Build">Build</a> <a href="TensorFlow-Output.html#t:OpDef">OpDef</a>) (<a href="../transformers-0.5.2.0/Control-Monad-Trans-State-Strict.html#t:State">State</a> ResultState) (<a href="TensorFlow-Tensor.html#t:TensorList">TensorList</a> <a href="TensorFlow-Build.html#t:Build">Build</a> as) <a href="src/TensorFlow.BuildOp.html#pureResult" class="link">Source</a> <a href="#v:pureResult" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Tensor:PureResult:7" class="instance expander" onclick="toggleSection('i:id:Tensor:PureResult:7')"></span> <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> <a href="src/TensorFlow.BuildOp.html#line-178" class="link">Source</a> <a href="#t:PureResult" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Tensor:PureResult:7" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:pureResult">pureResult</a> :: <a href="../transformers-0.5.2.0/Control-Monad-Trans-Reader.html#t:ReaderT">ReaderT</a> <a href="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a> (<a href="TensorFlow-Build.html#t:Build">Build</a> <a href="TensorFlow-Output.html#t:OpDef">OpDef</a>) (<a href="../transformers-0.5.2.0/Control-Monad-Trans-State-Strict.html#t:State">State</a> ResultState) (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Build.html#t:Build">Build</a> a) <a href="src/TensorFlow.BuildOp.html#pureResult" class="link">Source</a> <a href="#v:pureResult" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Tensor:BuildResult:8" class="instance expander" onclick="toggleSection('i:id:Tensor:BuildResult:8')"></span> (<a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> v, <a href="TensorFlow-Tensor.html#t:Rendered">Rendered</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v), <a href="TensorFlow-Types.html#t:TensorTypes">TensorTypes</a> as) => <a href="TensorFlow-BuildOp.html#t:BuildResult">BuildResult</a> (<a href="TensorFlow-Tensor.html#t:TensorList">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"> </td></tr><tr><td colspan="2"><div id="section.i:id:Tensor:BuildResult:8" class="inst-details hide"><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">TensorList</a> v as) <a href="src/TensorFlow.BuildOp.html#buildResult" class="link">Source</a> <a href="#v:buildResult" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Tensor:BuildResult:9" class="instance expander" onclick="toggleSection('i:id:Tensor:BuildResult:9')"></span> (<a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> v, <a href="TensorFlow-Tensor.html#t:Rendered">Rendered</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v)) => <a href="TensorFlow-BuildOp.html#t:BuildResult">BuildResult</a> (<a href="TensorFlow-Tensor.html#t:Tensor">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"> </td></tr><tr><td colspan="2"><div id="section.i:id:Tensor:BuildResult:9" class="inst-details hide"><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:Tensor">Tensor</a> v a) <a href="src/TensorFlow.BuildOp.html#buildResult" class="link">Source</a> <a href="#v:buildResult" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Tensor:Nodes:10" class="instance expander" onclick="toggleSection('i:id:Tensor:Nodes:10')"></span> <a href="TensorFlow-Nodes.html#t:Nodes">Nodes</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a)</span> <a href="src/TensorFlow.Nodes.html#line-121" class="link">Source</a> <a href="#t:Nodes" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Tensor:Nodes:10" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:getNodes">getNodes</a> :: <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -> <a href="TensorFlow-Build.html#t:Build">Build</a> (<a href="../containers-0.5.7.1/Data-Set.html#t:Set">Set</a> <a href="TensorFlow-Output.html#t:NodeName">NodeName</a>) <a href="src/TensorFlow.Nodes.html#getNodes" class="link">Source</a> <a href="#v:getNodes" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Tensor:Fetchable:11" class="instance expander" onclick="toggleSection('i:id:Tensor:Fetchable:11')"></span> (<a href="TensorFlow-Types.html#t:TensorType">TensorType</a> a, <a href="TensorFlow-Types.html#t:TensorDataType">TensorDataType</a> s a, (~) <a href="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a> a a') => <a href="TensorFlow-Nodes.html#t:Fetchable">Fetchable</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a) (s a')</span> <a href="src/TensorFlow.Nodes.html#line-145" class="link">Source</a> <a href="#t:Fetchable" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Tensor:Fetchable:11" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:getFetch">getFetch</a> :: <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -> <a href="TensorFlow-Build.html#t:Build">Build</a> (<a href="TensorFlow-Nodes.html#t:Fetch">Fetch</a> (s a')) <a href="src/TensorFlow.Nodes.html#getFetch" class="link">Source</a> <a href="#v:getFetch" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Tensor:Fetchable:12" class="instance expander" onclick="toggleSection('i:id:Tensor:Fetchable:12')"></span> (<a href="TensorFlow-Types.html#t:TensorType">TensorType</a> a, (~) <a href="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a> a a') => <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> <a href="src/TensorFlow.Nodes.html#line-142" class="link">Source</a> <a href="#t:Fetchable" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Tensor:Fetchable:12" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:getFetch">getFetch</a> :: <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -> <a href="TensorFlow-Build.html#t:Build">Build</a> (<a href="TensorFlow-Nodes.html#t:Fetch">Fetch</a> (<a href="TensorFlow-Types.html#t:TensorData">TensorData</a> a')) <a href="src/TensorFlow.Nodes.html#getFetch" class="link">Source</a> <a href="#v:getFetch" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">newtype</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 constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:Value" class="def">Value</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:runValue" class="def">runValue</a> :: a</dfn><div class="doc empty"> </div></li></ul></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"><span id="control.i:id:Value:Monad:1" class="instance expander" onclick="toggleSection('i:id:Value:Monad:1')"></span> <a href="../base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> <a href="TensorFlow-Tensor.html#t:Value">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"> </td></tr><tr><td colspan="2"><div id="section.i:id:Value:Monad:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-62--62--61-">(>>=)</a> :: <a href="TensorFlow-Tensor.html#t:Value">Value</a> a -> (a -> <a href="TensorFlow-Tensor.html#t:Value">Value</a> b) -> <a href="TensorFlow-Tensor.html#t:Value">Value</a> b <a href="#v:-62--62--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62--62-">(>>)</a> :: <a href="TensorFlow-Tensor.html#t:Value">Value</a> a -> <a href="TensorFlow-Tensor.html#t:Value">Value</a> b -> <a href="TensorFlow-Tensor.html#t:Value">Value</a> b <a href="#v:-62--62-" class="selflink">#</a></p><p class="src"><a href="#v:return">return</a> :: a -> <a href="TensorFlow-Tensor.html#t:Value">Value</a> a <a href="#v:return" class="selflink">#</a></p><p class="src"><a href="#v:fail">fail</a> :: <a href="../base-4.9.1.0/Data-String.html#t:String">String</a> -> <a href="TensorFlow-Tensor.html#t:Value">Value</a> a <a href="#v:fail" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Value:Functor:2" class="instance expander" onclick="toggleSection('i:id:Value:Functor:2')"></span> <a href="../base-4.9.1.0/Data-Functor.html#t:Functor">Functor</a> <a href="TensorFlow-Tensor.html#t:Value">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"> </td></tr><tr><td colspan="2"><div id="section.i:id:Value:Functor:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> <a href="TensorFlow-Tensor.html#t:Value">Value</a> a -> <a href="TensorFlow-Tensor.html#t:Value">Value</a> b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> <a href="TensorFlow-Tensor.html#t:Value">Value</a> b -> <a href="TensorFlow-Tensor.html#t:Value">Value</a> a <a href="#v:-60--36-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Value:Applicative:3" class="instance expander" onclick="toggleSection('i:id:Value:Applicative:3')"></span> <a href="../base-4.9.1.0/Control-Applicative.html#t:Applicative">Applicative</a> <a href="TensorFlow-Tensor.html#t:Value">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"> </td></tr><tr><td colspan="2"><div id="section.i:id:Value:Applicative:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:pure">pure</a> :: a -> <a href="TensorFlow-Tensor.html#t:Value">Value</a> a <a href="#v:pure" class="selflink">#</a></p><p class="src"><a href="#v:-60--42--62-">(<*>)</a> :: <a href="TensorFlow-Tensor.html#t:Value">Value</a> (a -> b) -> <a href="TensorFlow-Tensor.html#t:Value">Value</a> a -> <a href="TensorFlow-Tensor.html#t:Value">Value</a> b <a href="#v:-60--42--62-" class="selflink">#</a></p><p class="src"><a href="#v:-42--62-">(*>)</a> :: <a href="TensorFlow-Tensor.html#t:Value">Value</a> a -> <a href="TensorFlow-Tensor.html#t:Value">Value</a> b -> <a href="TensorFlow-Tensor.html#t:Value">Value</a> b <a href="#v:-42--62-" class="selflink">#</a></p><p class="src"><a href="#v:-60--42-">(<*)</a> :: <a href="TensorFlow-Tensor.html#t:Value">Value</a> a -> <a href="TensorFlow-Tensor.html#t:Value">Value</a> b -> <a href="TensorFlow-Tensor.html#t:Value">Value</a> a <a href="#v:-60--42-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Value:TensorKind:4" class="instance expander" onclick="toggleSection('i:id:Value:TensorKind:4')"></span> <a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> <a href="TensorFlow-Tensor.html#t:Value">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"> </td></tr><tr><td colspan="2"><div id="section.i:id:Value:TensorKind:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toBuild">toBuild</a> :: <a href="TensorFlow-Tensor.html#t:Value">Value</a> a -> <a href="TensorFlow-Build.html#t:Build">Build</a> a <a href="src/TensorFlow.Tensor.html#toBuild" class="link">Source</a> <a href="#v:toBuild" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Value:Rendered:5" class="instance expander" onclick="toggleSection('i:id:Value:Rendered:5')"></span> <a href="TensorFlow-Tensor.html#t:Rendered">Rendered</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Value">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"> </td></tr><tr><td colspan="2"><div id="section.i:id:Value:Rendered:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:renderedOutput">renderedOutput</a> :: <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Value">Value</a> a -> <a href="TensorFlow-Output.html#t:Output">Output</a> <a href="src/TensorFlow.Tensor.html#renderedOutput" class="link">Source</a> <a href="#v:renderedOutput" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">newtype</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 constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:Ref" class="def">Ref</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:runRef" class="def">runRef</a> :: a</dfn><div class="doc empty"> </div></li></ul></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"><span id="control.i:id:Ref:Monad:1" class="instance expander" onclick="toggleSection('i:id:Ref:Monad:1')"></span> <a href="../base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> <a href="TensorFlow-Tensor.html#t:Ref">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"> </td></tr><tr><td colspan="2"><div id="section.i:id:Ref:Monad:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-62--62--61-">(>>=)</a> :: <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> a -> (a -> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> b) -> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> b <a href="#v:-62--62--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62--62-">(>>)</a> :: <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> a -> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> b -> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> b <a href="#v:-62--62-" class="selflink">#</a></p><p class="src"><a href="#v:return">return</a> :: a -> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> a <a href="#v:return" class="selflink">#</a></p><p class="src"><a href="#v:fail">fail</a> :: <a href="../base-4.9.1.0/Data-String.html#t:String">String</a> -> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> a <a href="#v:fail" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Ref:Functor:2" class="instance expander" onclick="toggleSection('i:id:Ref:Functor:2')"></span> <a href="../base-4.9.1.0/Data-Functor.html#t:Functor">Functor</a> <a href="TensorFlow-Tensor.html#t:Ref">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"> </td></tr><tr><td colspan="2"><div id="section.i:id:Ref:Functor:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> a -> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> b -> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> a <a href="#v:-60--36-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Ref:Applicative:3" class="instance expander" onclick="toggleSection('i:id:Ref:Applicative:3')"></span> <a href="../base-4.9.1.0/Control-Applicative.html#t:Applicative">Applicative</a> <a href="TensorFlow-Tensor.html#t:Ref">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"> </td></tr><tr><td colspan="2"><div id="section.i:id:Ref:Applicative:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:pure">pure</a> :: a -> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> a <a href="#v:pure" class="selflink">#</a></p><p class="src"><a href="#v:-60--42--62-">(<*>)</a> :: <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> (a -> b) -> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> a -> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> b <a href="#v:-60--42--62-" class="selflink">#</a></p><p class="src"><a href="#v:-42--62-">(*>)</a> :: <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> a -> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> b -> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> b <a href="#v:-42--62-" class="selflink">#</a></p><p class="src"><a href="#v:-60--42-">(<*)</a> :: <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> a -> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> b -> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> a <a href="#v:-60--42-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Ref:TensorKind:4" class="instance expander" onclick="toggleSection('i:id:Ref:TensorKind:4')"></span> <a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> <a href="TensorFlow-Tensor.html#t:Ref">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"> </td></tr><tr><td colspan="2"><div id="section.i:id:Ref:TensorKind:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toBuild">toBuild</a> :: <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> a -> <a href="TensorFlow-Build.html#t:Build">Build</a> a <a href="src/TensorFlow.Tensor.html#toBuild" class="link">Source</a> <a href="#v:toBuild" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Ref:Rendered:5" class="instance expander" onclick="toggleSection('i:id:Ref:Rendered:5')"></span> <a href="TensorFlow-Tensor.html#t:Rendered">Rendered</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Ref">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"> </td></tr><tr><td colspan="2"><div id="section.i:id:Ref:Rendered:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:renderedOutput">renderedOutput</a> :: <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> a -> <a href="TensorFlow-Output.html#t:Output">Output</a> <a href="src/TensorFlow.Tensor.html#renderedOutput" class="link">Source</a> <a href="#v:renderedOutput" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="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 -> <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Value">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:renderValue" class="def">renderValue</a> :: <a href="TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m => <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -> m (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Value">Value</a> a) <a href="src/TensorFlow.Tensor.html#renderValue" class="link">Source</a> <a href="#v:renderValue" class="selflink">#</a></p></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-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 id="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"> </td></tr></table></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a id="t:Rendered" class="def">Rendered</a> t <span class="keyword">where</span> <a href="src/TensorFlow.Tensor.html#Rendered" class="link">Source</a> <a href="#t:Rendered" class="selflink">#</a></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 minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="TensorFlow-Tensor.html#v:renderedOutput">renderedOutput</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:renderedOutput" class="def">renderedOutput</a> :: t a -> <a href="TensorFlow-Output.html#t:Output">Output</a> <a href="src/TensorFlow.Tensor.html#renderedOutput" class="link">Source</a> <a href="#v:renderedOutput" class="selflink">#</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"><span id="control.i:ic:Rendered:Rendered:1" class="instance expander" onclick="toggleSection('i:ic:Rendered:Rendered:1')"></span> <a href="TensorFlow-Tensor.html#t:Rendered">Rendered</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a>)</span> <a href="src/TensorFlow.Tensor.html#line-100" class="link">Source</a> <a href="#t:Rendered" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Rendered:Rendered:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:renderedOutput">renderedOutput</a> :: <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> a -> <a href="TensorFlow-Output.html#t:Output">Output</a> <a href="src/TensorFlow.Tensor.html#renderedOutput" class="link">Source</a> <a href="#v:renderedOutput" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Rendered:Rendered:2" class="instance expander" onclick="toggleSection('i:ic:Rendered:Rendered:2')"></span> <a href="TensorFlow-Tensor.html#t:Rendered">Rendered</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Value">Value</a>)</span> <a href="src/TensorFlow.Tensor.html#line-97" class="link">Source</a> <a href="#t:Rendered" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Rendered:Rendered:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:renderedOutput">renderedOutput</a> :: <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Value">Value</a> a -> <a href="TensorFlow-Output.html#t:Output">Output</a> <a href="src/TensorFlow.Tensor.html#renderedOutput" class="link">Source</a> <a href="#v:renderedOutput" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:tensorNodeName" class="def">tensorNodeName</a> :: <a href="TensorFlow-Tensor.html#t:Rendered">Rendered</a> t => t a -> <a href="TensorFlow-Output.html#t:NodeName">NodeName</a> <a href="src/TensorFlow.Tensor.html#tensorNodeName" class="link">Source</a> <a href="#v:tensorNodeName" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:feed" class="def">feed</a> :: <a href="TensorFlow-Tensor.html#t:Rendered">Rendered</a> t => t a -> <a href="TensorFlow-Types.html#t:TensorData">TensorData</a> a -> <a href="TensorFlow-Tensor.html#t:Feed">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-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 id="v:tensorFromName" class="def">tensorFromName</a> :: <a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> v => Text -> <a href="TensorFlow-Tensor.html#t:Tensor">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-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 id="v:tensorValueFromName" class="def">tensorValueFromName</a> :: Text -> <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Value">Value</a> a <a href="src/TensorFlow.Tensor.html#tensorValueFromName" class="link">Source</a> <a href="#v:tensorValueFromName" class="selflink">#</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 id="v:tensorRefFromName" class="def">tensorRefFromName</a> :: Text -> <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> a <a href="src/TensorFlow.Tensor.html#tensorRefFromName" class="link">Source</a> <a href="#v:tensorRefFromName" class="selflink">#</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 id="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) <a href="src/TensorFlow.Tensor.html#TensorList" class="link">Source</a> <a href="#t:TensorList" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:tensorListOutputs" class="def">tensorListOutputs</a> :: <a href="TensorFlow-Tensor.html#t:Rendered">Rendered</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v) => <a href="TensorFlow-Tensor.html#t:TensorList">TensorList</a> v as -> [<a href="TensorFlow-Output.html#t:Output">Output</a>] <a href="src/TensorFlow.Tensor.html#tensorListOutputs" class="link">Source</a> <a href="#v:tensorListOutputs" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="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> t) => t b -> m a -> 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-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 id="v:render" class="def">render</a> :: <a href="TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m => <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Build.html#t:Build">Build</a> a -> m (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Value">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-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 id="v:expr" class="def">expr</a> :: <a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> v => <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -> <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Build.html#t:Build">Build</a> a <a href="src/TensorFlow.Tensor.html#expr" class="link">Source</a> <a href="#v:expr" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:addSummary" class="def">addSummary</a> <a href="src/TensorFlow.Tensor.html#addSummary" class="link">Source</a> <a href="#v:addSummary" class="selflink">#</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"> </td></tr><tr><td class="src">=> <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v <a href="../bytestring-0.10.8.1/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">-> m ()</td><td class="doc empty"> </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 id="v:collectAllSummaries" class="def">collectAllSummaries</a> :: <a href="TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m => m [<a href="TensorFlow-Tensor.html#t:SummaryTensor">SummaryTensor</a>] <a href="src/TensorFlow.Tensor.html#collectAllSummaries" class="link">Source</a> <a href="#v:collectAllSummaries" class="selflink">#</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 id="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.8.1/Data-ByteString.html#t:ByteString">ByteString</a> <a href="src/TensorFlow.Tensor.html#SummaryTensor" class="link">Source</a> <a href="#t:SummaryTensor" class="selflink">#</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.9.1.0/Control-Monad.html#t:Monad">Monad</a> v => <a id="t:TensorKind" class="def">TensorKind</a> v <span class="keyword">where</span> <a href="src/TensorFlow.Tensor.html#TensorKind" class="link">Source</a> <a href="#t:TensorKind" class="selflink">#</a></p><div class="doc"><p>An internal class for kinds of Tensors.</p></div><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="TensorFlow-Tensor.html#v:toBuild">toBuild</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:toBuild" class="def">toBuild</a> :: v a -> <a href="TensorFlow-Build.html#t:Build">Build</a> a <a href="src/TensorFlow.Tensor.html#toBuild" class="link">Source</a> <a href="#v:toBuild" class="selflink">#</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"><span id="control.i:ic:TensorKind:TensorKind:1" class="instance expander" onclick="toggleSection('i:ic:TensorKind:TensorKind:1')"></span> <a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> <a href="TensorFlow-Build.html#t:Build">Build</a></span> <a href="src/TensorFlow.Tensor.html#line-191" class="link">Source</a> <a href="#t:TensorKind" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:TensorKind:TensorKind:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toBuild">toBuild</a> :: <a href="TensorFlow-Build.html#t:Build">Build</a> a -> <a href="TensorFlow-Build.html#t:Build">Build</a> a <a href="src/TensorFlow.Tensor.html#toBuild" class="link">Source</a> <a href="#v:toBuild" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:TensorKind:TensorKind:2" class="instance expander" onclick="toggleSection('i:ic:TensorKind:TensorKind:2')"></span> <a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a></span> <a href="src/TensorFlow.Tensor.html#line-188" class="link">Source</a> <a href="#t:TensorKind" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:TensorKind:TensorKind:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toBuild">toBuild</a> :: <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> a -> <a href="TensorFlow-Build.html#t:Build">Build</a> a <a href="src/TensorFlow.Tensor.html#toBuild" class="link">Source</a> <a href="#v:toBuild" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:TensorKind:TensorKind:3" class="instance expander" onclick="toggleSection('i:ic:TensorKind:TensorKind:3')"></span> <a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> <a href="TensorFlow-Tensor.html#t:Value">Value</a></span> <a href="src/TensorFlow.Tensor.html#line-185" class="link">Source</a> <a href="#t:TensorKind" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:TensorKind:TensorKind:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toBuild">toBuild</a> :: <a href="TensorFlow-Tensor.html#t:Value">Value</a> a -> <a href="TensorFlow-Build.html#t:Build">Build</a> a <a href="src/TensorFlow.Tensor.html#toBuild" class="link">Source</a> <a href="#v:toBuild" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a id="t:ToTensor" class="def">ToTensor</a> t <span class="keyword">where</span> <a href="src/TensorFlow.Tensor.html#ToTensor" class="link">Source</a> <a href="#t:ToTensor" class="selflink">#</a></p><div class="doc"><p>Types which can be converted to <code><a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a></code>.</p></div><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="TensorFlow-Tensor.html#v:toTensor">toTensor</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:toTensor" class="def">toTensor</a> :: <a href="TensorFlow-Types.html#t:TensorType">TensorType</a> a => t a -> <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Build.html#t:Build">Build</a> a <a href="src/TensorFlow.Tensor.html#toTensor" class="link">Source</a> <a href="#v:toTensor" class="selflink">#</a></p></div><div class="subs instances"><p id="control.i:ToTensor" class="caption collapser" onclick="toggleSection('i:ToTensor')">Instances</p><div id="section.i:ToTensor" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ToTensor:ToTensor:1" class="instance expander" onclick="toggleSection('i:ic:ToTensor:ToTensor:1')"></span> <a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> v => <a href="TensorFlow-Tensor.html#t:ToTensor">ToTensor</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v)</span> <a href="src/TensorFlow.Tensor.html#line-199" class="link">Source</a> <a href="#t:ToTensor" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ToTensor:ToTensor:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toTensor">toTensor</a> :: <a href="TensorFlow-Types.html#t:TensorType">TensorType</a> a => <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -> <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Build.html#t:Build">Build</a> a <a href="src/TensorFlow.Tensor.html#toTensor" class="link">Source</a> <a href="#v:toTensor" class="selflink">#</a></p></div></div></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.17.3</p></div></body></html> |