1
0
Fork 0
mirror of https://github.com/tensorflow/haskell.git synced 2024-11-24 03:49:44 +01:00
tensorflow-haskell/docs/haddock/tensorflow-0.1.0.0/TensorFlow-Tensor.html

17 lines
16 KiB
HTML
Raw Normal View History

<!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");};
//]]>
2016-11-23 19:55:35 +01:00
</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.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> :: <a href="../lens-family-1.2.0/Lens-Family2-Unchecked.html#t:Lens-39-">Lens'</a> (<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> :: <a href="../lens-family-1.2.0/Lens-Family2-Unchecked.html#t:Lens-39-">Lens'</a> (<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; <a href="../text-1.2.2.1/Data-Text.html#t:Text">Text</a> -&gt; <a href="../lens-family-1.2.0/Lens-Family2-Unchecked.html#t:Traversal-39-">Traversal'</a> (<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; <a href="../text-1.2.2.1/Data-Text.html#t:Text">Text</a> -&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 <a href="src/TensorFlow-Tensor.html#Tensor" class="link">Source</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
2016-11-23 19:55:35 +01:00
<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> <a href="src/TensorFlow-BuildOp.html#line-162" class="link">Source</a></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> <a href="src/TensorFlow-BuildOp.html#line-198" class="link">Source</a></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> <a href="src/TensorFlow-BuildOp.html#line-195" class="link">Source</a></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> <a href="src/TensorFlow-BuildOp.html#line-159" class="link">Source</a></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> <a href="src/TensorFlow-BuildOp.html#line-156" class="link">Source</a></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> <a href="src/TensorFlow-BuildOp.html#line-95" class="link">Source</a></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> <a href="src/TensorFlow-BuildOp.html#line-92" class="link">Source</a></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> <a href="src/TensorFlow-Nodes.html#line-101" class="link">Source</a></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> <a href="src/TensorFlow-Nodes.html#line-135" class="link">Source</a></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="../vector-0.11.0.0/Data-Vector.html#t:Vector">Vector</a> a')</span> <a href="src/TensorFlow-Nodes.html#line-128" class="link">Source</a></td><td class="doc empty">&nb
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> :: <a href="../lens-family-1.2.0/Lens-Family2-Unchecked.html#t:Lens-39-">Lens'</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a) (<a href="TensorFlow-Tensor.html#t:TensorKind">TensorKind</a> v) <a href="src/TensorFlow-Tensor.html#tensorKind" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:tensorOutput" class="def">tensorOutput</a> :: <a href="../lens-family-1.2.0/Lens-Family2-Unchecked.html#t:Lens-39-">Lens'</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a) <a href="TensorFlow-Output.html#t:Output">Output</a> <a href="src/TensorFlow-Tensor.html#tensorOutput" class="link">Source</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; <a href="../text-1.2.2.1/Data-Text.html#t:Text">Text</a> -&gt; <a href="../lens-family-1.2.0/Lens-Family2-Unchecked.html#t:Traversal-39-">Traversal'</a> (<a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a) attr <a href="src/TensorFlow-Tensor.html#tensorAttr" class="link">Source</a></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
2016-11-23 19:55:35 +01:00
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 <a href="src/TensorFlow-Tensor.html#value" class="link">Source</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> <a href="src/TensorFlow-Tensor.html#Feed" class="link">Source</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> <a href="src/TensorFlow-Tensor.html#feed" class="link">Source</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
2016-11-23 19:55:35 +01:00
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; <a href="../text-1.2.2.1/Data-Text.html#t:Text">Text</a> -&gt; <a href="TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a <a href="src/TensorFlow-Tensor.html#tensorFromName" class="link">Source</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>