mirror of
https://github.com/tensorflow/haskell.git
synced 2024-11-14 15:09:43 +01:00
22 lines
67 KiB
HTML
22 lines
67 KiB
HTML
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1" /><title>TensorFlow.Tensor</title><link href="linuwial.css" rel="stylesheet" type="text/css" title="Linuwial" /><link rel="stylesheet" type="text/css" href="quick-jump.css" /><link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" /><script src="haddock-bundle.min.js" async="async" type="text/javascript"></script><script type="text/x-mathjax-config">MathJax.Hub.Config({ tex2jax: { processClass: "mathjax", ignoreClass: ".*" } });</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script></head><body><div id="package-header"><span class="caption">tensorflow-0.3.0.0: TensorFlow bindings.</span><ul class="links" id="page-menu"><li><a href="src/TensorFlow.Tensor.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">TensorFlow.Tensor</p></div><div id="synopsis"><details id="syn"><summary>Synopsis</summary><ul class="details-toggle" data-details-id="syn"><li class="src short"><span class="keyword">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" title="TensorFlow.Tensor">TensorKind</a> v => {..} -> <a href="TensorFlow-Tensor.html#t:Tensor" title="TensorFlow.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" title="TensorFlow.Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Ref" title="TensorFlow.Tensor">Ref</a> a -> <a href="TensorFlow-Tensor.html#t:Tensor" title="TensorFlow.Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Value" title="TensorFlow.Tensor">Value</a> a</li><li class="src short"><a href="#v:renderValue">renderValue</a> :: <a href="TensorFlow-Build.html#t:MonadBuild" title="TensorFlow.Build">MonadBuild</a> m => <a href="TensorFlow-Tensor.html#t:Tensor" title="TensorFlow.Tensor">Tensor</a> v a -> m (<a href="TensorFlow-Tensor.html#t:Tensor" title="TensorFlow.Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Value" title="TensorFlow.Tensor">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" title="TensorFlow.Output">Output</a> <a href="TensorFlow-Internal-FFI.html#t:TensorData" title="TensorFlow.Internal.FFI">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"><li><a href="#v:renderedOutput">renderedOutput</a> :: t a -> <a href="TensorFlow-Output.html#t:Output" title="TensorFlow.Output">Output</a></li></ul></li><li class="src short"><a href="#v:tensorNodeName">tensorNodeName</a> :: <a href="TensorFlow-Tensor.html#t:Rendered" title="TensorFlow.Tensor">Rendered</a> t => t a -> <a href="TensorFlow-Output.html#t:NodeName" title="TensorFlow.Output">NodeName</a></li><li class="src short"><a href="#v:feed">feed</a> :: <a href="TensorFlow-Tensor.html#t:Rendered" title="TensorFlow.Tensor">Rendered</a>
|
||
|
parameter <code>v</code> is either:</p><ul><li><code><a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a></code>: An unrendered, immutable value.</li><li><code><a href="TensorFlow-Tensor.html#t:Value" title="TensorFlow.Tensor">Value</a></code>: A rendered, immutable value.</li><li><code><a href="TensorFlow-Tensor.html#t:Ref" title="TensorFlow.Tensor">Ref</a></code>: A rendered stateful handle (e.g., a variable).</li></ul><p>Note that <code><a href="TensorFlow-Tensor.html#v:expr" title="TensorFlow.Tensor">expr</a></code>, <code><a href="TensorFlow-Tensor.html#v:value" title="TensorFlow.Tensor">value</a></code>, <code><a href="TensorFlow-Tensor.html#v:render" title="TensorFlow.Tensor">render</a></code> and <code><a href="TensorFlow-Tensor.html#v:renderValue" title="TensorFlow.Tensor">renderValue</a></code> can help convert between
|
||
|
the different types of <code><a href="TensorFlow-Tensor.html#t:Tensor" title="TensorFlow.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></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 href="TensorFlow-Tensor.html#t:TensorKind" title="TensorFlow.Tensor">TensorKind</a> v</dfn><div class="doc empty"> </div></li><li><dfn class="src">=> { <a id="v:tensorOutput" class="def">tensorOutput</a> :: v <a href="TensorFlow-Output.html#t:Output" title="TensorFlow.Output">Output</a></dfn><div class="doc empty"> </div></li><li><dfn class="src"> } -> <a href="TensorFlow-Tensor.html#t:Tensor" title="TensorFlow.Tensor">Tensor</a> v a</dfn><div class="doc empty"> </div></li></ul></div></td></tr></table></div><div class="subs instances"><h4 class="instances details-toggle-control details-toggle" data-details-id="i:Tensor">Instances</h4><details id="i:Tensor" open="open"><summary class="hide-when-js-enabled">Instances details</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:Tensor:ToTensor:1"></span> <a href="TensorFlow-Tensor.html#t:TensorKind" title="TensorFlow.Tensor">TensorKind</a> v => <a href="TensorFlow-Tensor.html#t:ToTensor" title="TensorFlow.Tensor">ToTensor</a> (<a href="TensorFlow-Tensor.html#t:Tensor" title="TensorFlow.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"><details id="i:id:Tensor:ToTensor:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Tensor.html">TensorFlow.Tensor</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toTensor">toTensor</a> :: <a href="TensorFlow-Types.html#t:TensorType" title="TensorFlow.Types">TensorType</a> a => <a href="TensorFlow-Tensor.html#t:Tensor" title="TensorFlow.Tensor">Tensor</a> v a -> <a href="TensorFlow-Tensor.html#t:Tensor" title="TensorFlow.Tensor">Tensor</a> <a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a> a <a href="src/TensorFlow.Tensor.html#toTensor" class="link">Source</a> <a href="#v:toTensor" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:Tensor:Rendered:2"></span> <a href="TensorFlow-Tensor.html#t:Rendered" title="TensorFlow.Tensor">Rendered</a> (<a href="TensorFlow-Tensor.html#t:Tensor" title="TensorFlow.Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Ref" title="TensorFlow.Tensor">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"><details id="i:id:Tensor:Rendered:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Tensor.html">TensorFlow.Tensor</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:renderedOutput">renderedOutput</a> :: <a href="TensorFlow-Tensor.html#t:Tensor" title="TensorFlow.Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Ref" title="TensorFlow.Tensor">Ref</a> a -> <a href="TensorFlow-Output.html#t:Output" title="TensorFlow.Output">Output</a> <a href="src/TensorFlow.Tensor.html#renderedOutput" class="link">Source</a> <a href="#v:renderedOutput" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:Tensor:Rendered:3"></span> <a href="TensorFlow-Tensor.html#t:Rendered" title="TensorFlow.Tensor">Rendered</a> (<a href="Ten
|
||
|
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" title="TensorFlow.Output">Output</a> <a href="TensorFlow-Internal-FFI.html#t:TensorData" title="TensorFlow.Internal.FFI">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 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" title="TensorFlow.Output">Output</a> <a href="src/TensorFlow.Tensor.html#renderedOutput" class="link">Source</a> <a href="#v:renderedOutput" class="selflink">#</a></p></div><div class="subs instances"><h4 class="instances details-toggle-control details-toggle" data-details-id="i:Rendered">Instances</h4><details id="i:Rendered" open="open"><summary class="hide-when-js-enabled">Instances details</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:ic:Rendered:Rendered:1"></span> <a href="TensorFlow-Tensor.html#t:Rendered" title="TensorFlow.Tensor">Rendered</a> (<a href="TensorFlow-Tensor.html#t:Tensor" title="TensorFlow.Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Ref" title="TensorFlow.Tensor">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"><details id="i:ic:Rendered:Rendered:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Tensor.html">TensorFlow.Tensor</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:renderedOutput">renderedOutput</a> :: <a href="TensorFlow-Tensor.html#t:Tensor" title="TensorFlow.Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Ref" title="TensorFlow.Tensor">Ref</a> a -> <a href="TensorFlow-Output.html#t:Output" title="TensorFlow.Output">Output</a> <a href="src/TensorFlow.Tensor.html#renderedOutput" class="link">Source</a> <a href="#v:renderedOutput" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:ic:Rendered:Rendered:2"></span> <a href="TensorFlow-Tensor.html#t:Rendered" title="TensorFlow.Tensor">Rendered</a> (<a href="TensorFlow-Tensor.html#t:Tensor" title="TensorFlow.Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Value" title="TensorFlow.Tensor">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"><details id="i:ic:Rendered:Rendered:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Tensor.html">TensorFlow.Tensor</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:renderedOutput">renderedOutput</a> :: <a href="TensorFlow-Tensor.html#t:Tensor" title="TensorFlow.Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Value" title="TensorFlow.Tensor">Value</a> a -> <a href="TensorFlow-Output.html#t:Output" title="TensorFlow.Output">Output</a> <a href="src/TensorFlow.Tensor.html#renderedOutput" class="link">Source</a> <a href="#v:renderedOutput" class="selflink">#</a></p></div></details></td></tr></table></details></div></div><div class="top"><p class="src"><a id="v:tensorNodeName" class="def">tensorNodeName</a> :: <a href="TensorFlow-Tensor.html#t:Rendered" title="TensorFlow.Tensor">Rendered</a> t => t a -> <a href="TensorFlow-Output.html#t:NodeName" title="TensorFlow.Output">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" title="TensorFlow.Tensor">Rendered</a> t => t a -> <a href="TensorFlow-Types.html#t:TensorData" title="TensorFlow.Types">TensorData</a> a -> <a href="TensorFlow-Tensor.html#t:Feed" title="TensorFlow.Tensor">Feed</a> <a href="src/TensorFlow.Tensor.html#feed" class="link">Source</a> <a href="#v:feed" class="selflink">#</a></p><div class="doc">
|
||
|
the graph.</p><p>Note that if a <code><a href="TensorFlow-Tensor.html#t:Tensor" title="TensorFlow.Tensor">Tensor</a></code> is rendered, its identity may change; so feeding the
|
||
|
rendered <code><a href="TensorFlow-Tensor.html#t:Tensor" title="TensorFlow.Tensor">Tensor</a></code> may be different than feeding the original <code><a href="TensorFlow-Tensor.html#t:Tensor" title="TensorFlow.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" title="TensorFlow.Tensor">TensorKind</a> v => <a href="../text-1.2.4.0/Data-Text.html#t:Text" title="Data.Text">Text</a> -> <a href="TensorFlow-Tensor.html#t:Tensor" title="TensorFlow.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" title="TensorFlow.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" title="TensorFlow.Build">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> :: <a href="../text-1.2.4.0/Data-Text.html#t:Text" title="Data.Text">Text</a> -> <a href="TensorFlow-Tensor.html#t:Tensor" title="TensorFlow.Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Value" title="TensorFlow.Tensor">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" title="TensorFlow.Tensor">tensorFromName</a></code>, but type-restricted to <code><a href="TensorFlow-Tensor.html#t:Value" title="TensorFlow.Tensor">Value</a></code>.</p></div></div><div class="top"><p class="src"><a id="v:tensorRefFromName" class="def">tensorRefFromName</a> :: <a href="../text-1.2.4.0/Data-Text.html#t:Text" title="Data.Text">Text</a> -> <a href="TensorFlow-Tensor.html#t:Tensor" title="TensorFlow.Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Ref" title="TensorFlow.Tensor">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" title="TensorFlow.Tensor">tensorFromName</a></code>, but type-restricted to <code><a href="TensorFlow-Tensor.html#t:Ref" title="TensorFlow.Tensor">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" title="TensorFlow.Types">ListOf</a> (<a href="TensorFlow-Tensor.html#t:Tensor" title="TensorFlow.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" title="TensorFlow.Tensor">Rendered</a> (<a href="TensorFlow-Tensor.html#t:Tensor" title="TensorFlow.Tensor">Tensor</a> v) => <a href="TensorFlow-Tensor.html#t:TensorList" title="TensorFlow.Tensor">TensorList</a> v as -> [<a href="TensorFlow-Output.html#t:Output" title="TensorFlow.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" title="TensorFlow.Build">MonadBuild</a> m, <a href="TensorFlow-Tensor.html#t:Rendered" title="TensorFlow.Tensor">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" title="TensorFlow.Build">Build</a></code> action on the same
|
||
|
device as the given Tensor (see also <code><a href="TensorFlow-Build.html#v:withDevice" title="TensorFlow.Build">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" title="TensorFlow.Build">MonadBuild</a> m => <a href="TensorFlow-Tensor.html#t:Tensor" title="TensorFlow.Tensor">Tensor</a> <a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a> a -> m (<a href="TensorFlow-Tensor.html#t:Tensor" title="TensorFlow.Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Value" title="TensorFlow.Tensor">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" title="TensorFlow.Tensor">Tensor</a></code>, fixing its name, scope, device and control inputs from
|
||
|
the <code><a href="TensorFlow-Build.html#t:MonadBuild" title="TensorFlow.Build">MonadBuild</a></code> context. Also renders any dependencies of the <code><a href="TensorFlow-Tensor.html#t:Tensor" title="TensorFlow.Tensor">Tensor</a></code> that
|
||
|
weren't already rendered.</p><p>This operation is idempotent; calling <code><a href="TensorFlow-Tensor.html#v:render" title="TensorFlow.Tensor">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" title="TensorFlow.Tensor">TensorKind</a> v => <a href="TensorFlow-Tensor.html#t:Tensor" title="TensorFlow.Tensor">Tensor</a> v a -> <a href="TensorFlow-Tensor.html#t:Tensor" title="TensorFlow.Tensor">Tensor</a> <a href="TensorFlow-Build.html#t:Build" title="TensorFlow.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" title="TensorFlow.Build">MonadBuild</a> m, <a href="TensorFlow-Tensor.html#t:TensorKind" title="TensorFlow.Tensor">TensorKind</a> v)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="TensorFlow-Tensor.html#t:Tensor" title="TensorFlow.Tensor">Tensor</a> v <a href="../bytestring-0.10.10.1/Data-ByteString.html#t:ByteString" title="Data.ByteString">ByteString</a></td><td class="doc"><p>A <code><a href="TensorFlow-Tensor.html#t:SummaryTensor" title="TensorFlow.Tensor">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" title="TensorFlow.Build">MonadBuild</a> m => m [<a href="TensorFlow-Tensor.html#t:SummaryTensor" title="TensorFlow.Tensor">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" title="TensorFlow.Session">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" title="TensorFlow.Tensor">Tensor</a> <a href="TensorFlow-Tensor.html#t:Value" title="TensorFlow.Tensor">Value</a> <a href="../bytestring-0.10.10.1/Data-ByteString.html#t:ByteString" title="Data.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.13.0.0/Control-Monad.html#t:Monad" title="Control.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 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" title="TensorFlow.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"><h4 class="instances details-toggle-control details-toggle" data-details-id="i:TensorKind">Instances</h4><details id="i:TensorKind" open="open"><summary class="hide-when-js-enabled">Instances details</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:ic:TensorKind:TensorKind:1"></span> <a href="TensorFlow-Tensor.html#t:TensorKind" title="TensorFlow.Tensor">TensorKind</a> <a href="TensorFlow-Build.html#t:Build" title="TensorFlow.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"><details id="i:ic:TensorKind:TensorKind:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Tensor.html">TensorFlow.Tensor</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toBuild">toBuild</a> :: <a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a> a -> <a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a> a <a href="src/TensorFlow.Tensor.html#toBuild" class="link">Source</a> <a href="#v:toBuild" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:ic:TensorKind:TensorKind:2"></span> <a href="TensorFlow-Tensor.html#t:TensorKind" title="TensorFlow.Tensor">TensorKind</a> <a href="TensorFlow-Tensor.html#t:Ref" title="TensorFlow.Tensor">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"><details id="i:ic:TensorKind:TensorKind:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Tensor.html">TensorFlow.Tensor</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toBuild">toBuild</a> :: <a href="TensorFlow-Tensor.html#t:Ref" title="TensorFlow.Tensor">Ref</a> a -> <a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a> a <a href="src/TensorFlow.Tensor.html#toBuild" class="link">Source</a> <a href="#v:toBuild" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:ic:TensorKind:TensorKind:3"></span> <a href="TensorFlow-Tensor.html#t:TensorKind" title
|