1
0
mirror of https://github.com/tensorflow/haskell.git synced 2024-06-02 11:03:34 +02:00
tensorflow-haskell/docs/haddock/tensorflow-0.1.0.0/TensorFlow-Tensor.html
2016-10-31 14:22:48 -07:00

17 lines
14 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 = <a href="#v:Tensor">Tensor</a> (<a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> v) <a href="TensorFlow-Output.html#t:Output">Output</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:Value">Value</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:Ref">Ref</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:TensorKind">TensorKind</a> v <span class="keyword">where</span><ul class="subs"><li><a href="#v:ValueKind">ValueKind</a> :: <a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> <a href="TensorFlow-Tensor.html#t:Value">Value</a></li><li><a href="#v:RefKind">RefKind</a> :: <a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a></li></ul></li><li class="src short"><a href="#v:tensorKind">tensorKind</a> :: Lens' (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a) (<a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> v)</li><li class="src short"><a href="#v:tensorOutput">tensorOutput</a> :: Lens' (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a) <a href="TensorFlow-Output.html#t:Output">Output</a></li><li class="src short"><a href="#v:tensorAttr">tensorAttr</a> :: <a href="TensorFlow-Types.html#t:Attribute">Attribute</a> attr =&gt; Text -&gt; Traversal' (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a) attr</li><li class="src short"><a href="#v:value">value</a> :: <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v 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"><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"><a href="#v:feed">feed</a> :: <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></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</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 <code><a href="TensorFlow-Tensor.html#t:Value">Value</a></code> or <code><a href="TensorFlow-Tensor.html#t:Ref">Ref</a></code>, depending on whether the graph is
treating this op output as an immutable <code><a href="TensorFlow-Tensor.html#t:Value">Value</a></code> or a stateful <code><a href="TensorFlow-Tensor.html#t:Ref">Ref</a></code> (e.g., a
variable). Note that a <code>Tensor Ref</code> can be casted into a <code>Tensor Value</code> via
<code><a href="TensorFlow-Tensor.html#v:value">value</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) <a href="TensorFlow-Output.html#t:Output">Output</a></td><td class="doc empty">&nbsp;</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:BuildOp">BuildOp</a> [<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Value">Value</a> a]</span></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="TensorFlow-BuildOp.html#t:BuildOp">BuildOp</a> f =&gt; <a href="TensorFlow-BuildOp.html#t:BuildOp">BuildOp</a> ([<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a] -&gt; f)</span></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="TensorFlow-BuildOp.html#t:BuildOp">BuildOp</a> f =&gt; <a href="TensorFlow-BuildOp.html#t:BuildOp">BuildOp</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -&gt; f)</span></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="TensorFlow-BuildOp.html#t:BuildOp">BuildOp</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> a)</span></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="TensorFlow-BuildOp.html#t:BuildOp">BuildOp</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Value">Value</a> a)</span></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="TensorFlow-BuildOp.html#t:OpResult">OpResult</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> a)</span></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="TensorFlow-BuildOp.html#t:OpResult">OpResult</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Value">Value</a> 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 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-Nodes.html#t:Scalar">Scalar</a> 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) (Vector a')</span></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Value" class="def">Value</a></p><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="TensorFlow-BuildOp.html#t:BuildOp">BuildOp</a> [<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Value">Value</a> a]</span></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="TensorFlow-BuildOp.html#t:BuildOp">BuildOp</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Value">Value</a> a)</span></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="TensorFlow-BuildOp.html#t:OpResult">OpResult</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Value">Value</a> a)</span></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Ref" class="def">Ref</a></p><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="TensorFlow-BuildOp.html#t:BuildOp">BuildOp</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> a)</span></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="TensorFlow-BuildOp.html#t:OpResult">OpResult</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a> a)</span></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:TensorKind" class="def">TensorKind</a> v <span class="keyword">where</span></p><div class="doc"><p>This class provides a runtime switch on whether a <code><a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a></code> should be
treated as a <code><a href="TensorFlow-Tensor.html#t:Value">Value</a></code> or as a <code><a href="TensorFlow-Tensor.html#t:Ref">Ref</a></code>.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:ValueKind" class="def">ValueKind</a> :: <a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> <a href="TensorFlow-Tensor.html#t:Value">Value</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:RefKind" class="def">RefKind</a> :: <a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> <a href="TensorFlow-Tensor.html#t:Ref">Ref</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div><div class="top"><p class="src"><a name="v:tensorKind" class="def">tensorKind</a> :: Lens' (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a) (<a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> v)</p></div><div class="top"><p class="src"><a name="v:tensorOutput" class="def">tensorOutput</a> :: Lens' (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a) <a href="TensorFlow-Output.html#t:Output">Output</a></p></div><div class="top"><p class="src"><a name="v:tensorAttr" class="def">tensorAttr</a> :: <a href="TensorFlow-Types.html#t:Attribute">Attribute</a> attr =&gt; Text -&gt; Traversal' (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a) attr</p><div class="doc"><p>Lens for the attributes of a tensor.</p><p>Only valid if the tensor has not yet been rendered. If the tensor has been
rendered, the traversal will be over nothing (nothing can be read or
written).</p></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> v 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 *' into a 'Tensor Value'. Common usage is to cast a
Ref into Value. This behaves like a no-op.</p></div></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"><a name="v:feed" class="def">feed</a> :: <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>addGraphDef</code>.
TODO(judahjacobson): add more safety checks here.</p></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>