<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type"content="text/html; charset=UTF-8"/><title>TensorFlow.Ops</title><linkhref="ocean.css"rel="stylesheet"type="text/css"title="Ocean"/><scriptsrc="haddock-util.js"type="text/javascript"></script><scriptsrc="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"type="text/javascript"></script><scripttype="text/javascript">//<![CDATA[
</script></head><body><divid="package-header"><ulclass="links"id="page-menu"><li><ahref="src/TensorFlow.Ops.html">Source</a></li><li><ahref="index.html">Contents</a></li><li><ahref="doc-index.html">Index</a></li></ul><pclass="caption">tensorflow-ops-0.1.0.0: Friendly layer around TensorFlow bindings.</p></div><divid="content"><divid="module-header"><tableclass="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><pclass="caption">TensorFlow.Ops</p></div><divid="table-of-contents"><pclass="caption">Contents</p><ul><li><ahref="#section.orphans">Orphan instances</a></li></ul></div><divid="description"><pclass="caption">Description</p><divclass="doc"><p>This module contains definitions for some built-in TensorFlow operations.</p><p>Note that certain, "stateful" ops like <code>variable</code> and <code>assign</code> return a
<code><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a></code> action (e.g., <code>Build (Tensor Ref a)</code> instead of a pure value; the
returned <code><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a></code>s are always rendered in the current <code><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a></code> context. This
in w * w'</pre><p>Ops should return a <code><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a></code> action if their original <code>OpDef</code> marks them as
an output element, this operation computes \(y = |x|\).</p></div></div><divclass="top"><pclass="src"><aid="v:abs-39-"class="def">abs'</a><ahref="#v:abs-39-"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Word.html#t:Word16">Word16</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Prelude.html#t:Double">Double</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Prelude.html#t:Float">Float</a> ([] <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a>)))))) t</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="../tensorflow-0.1.0.2/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><tdclass="doc empty"> </td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><tdclass="doc"><p><strong>x</strong></p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> t</td><tdclass="doc"><p><strong>y</strong></p></td></tr></table></div></div><divclass="top"><pclass="src"><aid="v:addN"class="def">addN</a><ahref="#v:addN"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a> (<ahref="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a><ahref="../base-4.9.1.0/Prelude.html#t:Double">Double</a>) ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a> (<ahref="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a><ahref="../base-4.9.1.0/Prelude.html#t:Float">Float</a>) ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int16">Int16</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int8">Int8</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Word.html#t:Word16">Word16</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Word.html#t:Word8">Word8</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Prelude.html#t:Double">Double</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Prelude.html#t:Float">Float</a> ([] <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a>))))))))))) t</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=> [<ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t]</td><tdclass="doc"><p><strong>inputs</strong>: Must all be the same size and shape.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> t</td><tdclass="doc"><p><strong>sum</strong></p></td></tr></table></div><divclass="doc"><p>Add all input tensors element wise.</p></div></div><divclass="top"><pclass="src"><aid="v:addN-39-"class="def">addN'</a><ahref="#v:addN-39-"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:On
which dimension of the input Tensor to reduce across. For vectors,
use dimension = 0.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> output_type</td><tdclass="doc"><p><strong>output</strong></p></td></tr></table></div><divclass="doc"><p>Returns the index with the largest value across dimensions of a tensor.</p><p>Note that in case of ties the identity of the return value is not guaranteed.</p></div></div><divclass="top"><pclass="src"><aid="v:argMax-39-"class="def">argMax'</a><ahref="#v:argMax-39-"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: (<ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a> (<ahref="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a><ahref="../base-4.9.1.0/Prelude.html#t:Double">Double</a>) ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a> (<ahref="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a><ahref="../base-4.9.1.0/Prelude.html#t:Float">Float</a>) ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int16">Int16</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int8">Int8</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Word.html#t:Word16">Word16</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Word.html#t:Word8">Word8</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Prelude.html#t:Double">Double</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Prelude.html#t:Float">Float</a> ([] <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a>))))))))))) t, <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> ([] <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a>))) tidx, <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> ([] <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a>))) output_type)</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="../tensorflow-0.1.0.2/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><tdclass="doc empty"> </td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><tdclass="doc"><p><strong>input</strong></p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tidx</td><tdclass="doc"><p><strong>dimension</strong>: int32 or int64, 0 <= dimension < rank(input). Describes
which dimension of the input Tensor to reduce across. For vectors,
use dimension = 0.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> output_type</td><tdclass="doc"><p><strong>output</strong></p></td></tr></table></div></div><divclass="top"><pclass="src"><aid="v:assign"class="def">assign</a><ahref="#v:assign"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: (<ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m', <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:TensorType">TensorType</a> t)</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Ref">Ref</a> t</td><tdclass="doc"><p><strong>ref</strong>: Should be from a <code>Variable</code> node. May be uninitialized.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t</td><tdclass="doc"><p><strong>value</strong>: The value to be assigned to the variable.</p></td></tr><tr><tdclass="src">-> m' (<ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Ref">Ref</a> t)</td><tdclass="doc"><p><strong>output_ref</strong>: = Same as "ref". Returned as a convenience for operations that want
to use the new value after the variable has been reset.</p></td></tr></table></div><divclass="doc"><p>Update <code>ref</code> by assigning <code><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#v:value">value</a></code> to it.</p><p>This operation outputs "ref" after the assignment is done.
This makes it easier to chain operations that need to use the reset value.</p></div></div><divclass="top"><pclass="src"><aid="v:assign-39-"class="def">assign'</a><ahref="#v:assign-39-"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: (<ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m', <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:TensorType">TensorType</a> t)</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="../tensorflow-0.1.0.2/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><tdclass="doc empty"> </td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Ref">Ref</a> t</td><tdclass="doc"><p><strong>ref</strong>: Should be from a <code>Variable</code> node. May be uninitialized.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t</td><tdclass="doc"><p><strong>value</strong>: The value to be assigned to the variable.</p></td></tr><tr><tdclass="src">-> m' (<ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Ref">Ref</a> t)</td><tdclass="doc"><p><strong>output_ref</strong>: = Same as "ref". Returned as a convenience for operations that want
to use the new value after the variable has been reset.</p></td></tr></table></div></div><divclass="top"><pclass="src"><aid="v:broadcastGradientArgs"class="def">broadcastGradientArgs</a><ahref="#v:broadcastGradientArgs"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> ([] <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a>))) t</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><tdclass="doc"><p><strong>s0</strong></p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t</td><tdclass="doc"><p><strong>s1</strong></p></td></tr><tr><tdclass="src">-> (<ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> t, <ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> t)</td><tdclass="doc"><p>(<strong>r0</strong>, <strong>r1</strong>)</p><ul><li><strong>r0</strong></li><li><strong>r1</strong></li></ul></td></tr></table></div><divclass="doc"><p>Return the reduction indices for computing gradients of s0 op s1 with broadcast.</p><p>This is typically used by gradient computations for a broadcasting operation.</p></div></div><divclass="top"><pclass="src"><aid="v:broadcastGradientArgs-39-"class="def">broadcastGradientArgs'</a><ahref="#v:broadcastGradientArgs-39-"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> ([] <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a>))) t</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="../tensorflow-0.1.0.2/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><tdclass="doc empty"> </td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><tdclass="doc"><p><strong>s0</strong></p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t</td><tdclass="doc"><p><strong>s1</strong></p></td></tr><tr><tdclass="src">-> (<ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> t, <ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> t)</td><tdclass="doc"><p>(<strong>r0</strong>, <strong>r1</strong>)</p><ul><li><strong>r0</strong></li><li><strong>r1</strong></li></ul></td></tr></table></div></div><divclass="top"><pclass="src"><aid="v:cast"class="def">cast</a><ahref="#v:cast"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: (<ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:TensorType">TensorType</a> srcT, <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:TensorType">TensorType</a> dstT)</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 srcT</td><tdclass="doc"><p><strong>x</strong></p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahr
range [0, rank(values)).</p></td></tr><tr><tdclass="src">-> [<ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t]</td><tdclass="doc"><p><strong>values</strong>: The <code>N</code> Tensors to concatenate. Their ranks and types must match,
and their sizes must match in all dimensions except <code>concat_dim</code>.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> t</td><tdclass="doc"><p><strong>output</strong>: A <code><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a></code> with the concatenation of values stacked along the
in <code>concat_dim</code> where it has the sum of the sizes.</p></td></tr></table></div><divclass="doc"><p>Concatenates tensors along one dimension.</p></div></div><divclass="top"><pclass="src"><aid="v:concat-39-"class="def">concat'</a><ahref="#v:concat-39-"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:TensorType">TensorType</a> t</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="../tensorflow-0.1.0.2/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><tdclass="doc empty"> </td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 <ahref="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a></td><tdclass="doc"><p><strong>concat_dim</strong>: 0-D. The dimension along which to concatenate. Must be in the
range [0, rank(values)).</p></td></tr><tr><tdclass="src">-> [<ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t]</td><tdclass="doc"><p><strong>values</strong>: The <code>N</code> Tensors to concatenate. Their ranks and types must match,
and their sizes must match in all dimensions except <code>concat_dim</code>.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> t</td><tdclass="doc"><p><strong>output</strong>: A <code><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a></code> with the concatenation of values stacked along the
in <code>concat_dim</code> where it has the sum of the sizes.</p></td></tr></table></div></div><divclass="top"><pclass="src"><aid="v:constant"class="def">constant</a> :: <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:TensorType">TensorType</a> a =><ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:Shape">Shape</a> -> [a] -><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> a <ahref="src/TensorFlow.Ops.html#constant"class="link">Source</a><ahref="#v:constant"class="selflink">#</a></p><divclass="doc"><p>Create a constant tensor.</p><p>The values should be in row major order, e.g.,</p><p>element 0: index (0, ..., 0)
Initialization happens next time session runs.</p></div></div><divclass="top"><pclass="src"><aid="v:initializedVariable-39-"class="def">initializedVariable'</a> :: (<ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:TensorType">TensorType</a> a) =><ahref="../tensorflow-0.1.0.2/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -> m (<ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Ref">Ref</a> a) <ahref="src/TensorFlow.Ops.html#initializedVariable%27"class="link">Source</a><ahref="#v:initializedVariable-39-"class="selflink">#</a></p></div><divclass="top"><pclass="src"><aid="v:zeroInitializedVariable"class="def">zeroInitializedVariable</a> :: (<ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:TensorType">TensorType</a> a, <ahref="../base-4.9.1.0/Prelude.html#t:Num">Num</a> a) =><ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:Shape">Shape</a> -> m (<ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Ref">Ref</a> a) <ahref="src/TensorFlow.Ops.html#zeroInitializedVariable"class="link">Source</a><ahref="#v:zeroInitializedVariable"class="selflink">#</a></p><divclass="doc"><p>Creates a zero-initialized variable with the given shape.</p></div></div><divclass="top"><pclass="src"><aid="v:zeroInitializedVariable-39-"class="def">zeroInitializedVariable'</a> :: (<ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:TensorType">TensorType</a> a, <ahref="../base-4.9.1.0/Prelude.html#t:Num">Num</a> a) =><ahref="../tensorflow-0.1.0.2/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -><ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:Shape">Shape</a> -> m (<ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Ref">Ref</a> a) <ahref="src/TensorFlow.Ops.html#zeroInitializedVariable%27"class="link">Source</a><ahref="#v:zeroInitializedVariable-39-"class="selflink">#</a></p></div><divclass="top"><pclass="src"><aid="v:fill"class="def">fill</a><ahref="#v:fill"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:TensorType">TensorType</a> t</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 <ahref="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a></td><tdclass="doc"><p><strong>dims</strong>: 1-D. Represents the shape of the output tensor.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t</td><tdclass="doc"><p><strong>value</strong>: 0-D (scalar). Value to fill the returned tensor.</p><p><code>compatibility(numpy)
</code>end_compatibility</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> t</td><tdclass="doc"><p><strong>output</strong></p></td></tr></table></div><divclass="doc"><p>Creates a tensor filled with a scalar value.</p><p>This operation creates a tensor of shape <code>dims</code> and fills it with <code><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#v:value">value</a></code>.</p><p>For example:</p><p>```
```</p></div></div><divclass="top"><pclass="src"><aid="v:fill-39-"class="def">fill'</a><ahref="#v:fill-39-"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:TensorType">TensorType</a> t</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="../tensorflow-0.1.0.2/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><tdclass="doc empty"> </td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 <ahref="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a></td><tdclass="doc"><p><strong>dims</strong>: 1-D. Represents the shape of the output tensor.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t</td><tdclass="doc"><p><strong>value</strong>: 0-D (scalar). Value to fill the returned tensor.</p><p><code>compatibility(numpy)
</code>end_compatibility</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> t</td><tdclass="doc"><p><strong>output</strong></p></td></tr></table></div></div><divclass="top"><pclass="src"><aid="v:identity"class="def">identity</a><ahref="#v:identity"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:TensorType">TensorType</a> t</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><tdclass="doc"><p><strong>input</strong></p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> t</td><tdclass="doc"><p><strong>output</strong></p></td></tr></table></div><divclass="doc"><p>Return a tensor with the same shape and contents as the input tensor or value.</p></div></div><divclass="top"><pclass="src"><aid="v:identity-39-"class="def">identity'</a><ahref="#v:identity-39-"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:TensorType">TensorType</a> t</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="../tensorflow-0.1.0.2/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><tdclass="doc empty"> </td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><tdclass="doc"><p><strong>input</strong></p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> t</td><tdclass="doc"><p><strong>output</strong></p></td></tr></table></div></div><divclass="top"><pclass="src"><aid="v:matMul"class="def">matMul</a><ahref="#v:matMul"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a> (<ahref="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a><ahref="../base-4.9.1.0/Prelude.html#t:Double">Double</a>) ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a> (<ahref="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a><ahref="../base-4.9.1.0/Prelude.html#t:Float">Float</a>) ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Word.html#t:Word16">Word16</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Prelude.html#t:Double">Double</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Prelude.html#t:Float">Float</a> ([] <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a>))))))) t</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><tdclass="doc"><p><strong>a</strong></p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t</td><tdclass="doc"><p><strong>b</strong></p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> t</td><tdclass="doc"><p><strong>product</strong></p></td></tr></table></div><divclass="doc"><p>Multiply the matrix "a" by the matrix "b".</p><p>The inputs must be two-dimensional matrices and the inner dimension of
while all other locations take value <code>off_value</code>.</p><p>If the input <code>indices</code> is rank <code>N</code>, the output will have rank `N+1`,
The new axis is created at dimension <code>axis</code> (default: the new axis is
appended at the end).</p><p>If <code>indices</code> is a scalar the output shape will be a vector of length <code>depth</code>.</p><p>If <code>indices</code> is a vector of length <code>features</code>, the output shape will be:
```
features x depth if axis == -1
depth x features if axis == 0
```</p><p>If <code>indices</code> is a matrix (batch) with shape `[batch, features]`,
the output shape will be:
```
batch x features x depth if axis == -1
batch x depth x features if axis == 1
depth x batch x features if axis == 0
```</p><p>Examples
=========</p><p>Suppose that</p><p>```
indices = [0, 2, -1, 1]
depth = 3
on_value = 5.0
off_value = 0.0
axis = -1
```</p><p>Then output is `[4 x 3]`:</p><p>```output =
[5.0 0.0 0.0] // one_hot(0)
[0.0 0.0 5.0] // one_hot(2)
[0.0 0.0 0.0] // one_hot(-1)
[0.0 5.0 0.0] // one_hot(1)
```</p><p>Suppose that</p><p>```
indices = [0, 2, -1, 1]
depth = 3
on_value = 0.0
off_value = 3.0
axis = 0
```</p><p>Then output is `[3 x 4]`:</p><p>```output =
[0.0 3.0 3.0 3.0]
[3.0 3.0 3.0 0.0]
[3.0 3.0 3.0 3.0]
[3.0 0.0 3.0 3.0]
// ^ one_hot(0)
// ^ one_hot(2)
// ^ one_hot(-1)
// ^ one_hot(1)
```
Suppose that</p><p>```
indices = [[0, 2], [1, -1]]
depth = 3
on_value = 1.0
off_value = 0.0
axis = -1
```</p><p>Then output is `[2 x 2 x 3]`:</p><p>```output =
]```</p></div></div><divclass="top"><pclass="src"><aid="v:oneHot-39-"class="def">oneHot'</a><ahref="#v:oneHot-39-"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: (<ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:TensorType">TensorType</a> t, <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Word.html#t:Word8">Word8</a> ([] <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a>)))) tI)</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="../tensorflow-0.1.0.2/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><tdclass="doc empty"> </td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 tI</td><tdclass="doc"><p><strong>indices</strong>: A tensor of indices.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 <ahref="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a></td><tdclass="doc"><p><strong>depth</strong>: A scalar defining the depth of the one hot dimension.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'3 t</td><tdclass="doc"><p><strong>on_value</strong>: A scalar defining the value to fill in output when `indices[j] = i`.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'4 t</td><tdclass="doc"><p><strong>off_value</strong>: A scalar defining the value to fill in output when `indices[j] != i`.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> t</td><tdclass="doc"><p><strong>output</strong>: The one-hot tensor.</p></td></tr></table></div></div><divclass="top"><pclass="src"><aid="v:pack"class="def">pack</a><ahref="#v:pack"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:TensorType">TensorType</a> t</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=> [<ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t]</td><tdclass="doc"><p><strong>values</strong>: Must be of same shape and type.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> t</td><tdclass="doc"><p><strong>output</strong>: The packed tensor.</p></td></tr></table></div><divclass="doc"><p>Packs a list of <code>N</code> rank-<code>R</code> tensors into one rank-`(R+1)` tensor.</p><p>Packs the <code>N</code> tensors in <code>values</code> into a tensor with rank one higher than each
```</p><p>This is the opposite of <code><ahref="../tensorflow-core-ops-0.1.0.0/TensorFlow-GenOps-Core.html#v:unpack">unpack</a></code>.</p></div></div><divclass="top"><pclass="src"><aid="v:pack-39-"class="def">pack'</a><ahref="#v:pack-39-"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:TensorType">TensorType</a> t</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="../tensorflow-0.1.0.2/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><tdclass="doc empty"> </td></tr><tr><tdclass="src">-> [<ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t]</td><tdclass="doc"><p><strong>values</strong>: Must be of same shape and type.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> t</td><tdclass="doc"><p><strong>output</strong>: The packed tensor.</p></td></tr></table></div></div><divclass="top"><pclass="src"><aid="v:placeholder"class="def">placeholder</a> :: (<ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:TensorType">TensorType</a> a) =><ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:Shape">Shape</a> -> m (<ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Value">Value</a> a) <ahref="src/TensorFlow.Ops.html#placeholder"class="link">Source</a><ahref="#v:placeholder"class="selflink">#</a></p></div><divclass="top"><pclass="src"><aid="v:placeholder-39-"class="def">placeholder'</a> :: <spanclass="keyword">forall</span> m a. (<ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:TensorType">TensorType</a> a) =><ahref="../tensorflow-0.1.0.2/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -><ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:Shape">Shape</a> -> m (<ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Value">Value</a> a) <ahref="src/TensorFlow.Ops.html#placeholder%27"class="link">Source</a><ahref="#v:placeholder-39-"class="selflink">#</a></p></div><divclass="top"><pclass="src"><aid="v:range"class="def">range</a><ahref="#v:range"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Prelude.html#t:Double">Double</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Prelude.html#t:Float">Float</a> ([] <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a>))))) tidx</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 tidx</td><tdclass="doc"><p><strong>start</strong>: 0-D (scalar). First entry in the sequence.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tidx</td><tdclass="doc"><p><strong>limit</strong>: 0-D (scalar). Upper limit of sequence, exclusive.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'3 tidx</td><tdclass="doc"><p><strong>delta</strong>: 0-D (scalar). Optional. Default is 1. Number that increments <code>start</code>.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/Ten
```</p></div></div><divclass="top"><pclass="src"><aid="v:range-39-"class="def">range'</a><ahref="#v:range-39-"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Prelude.html#t:Double">Double</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Prelude.html#t:Float">Float</a> ([] <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a>))))) tidx</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="../tensorflow-0.1.0.2/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><tdclass="doc empty"> </td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 tidx</td><tdclass="doc"><p><strong>start</strong>: 0-D (scalar). First entry in the sequence.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tidx</td><tdclass="doc"><p><strong>limit</strong>: 0-D (scalar). Upper limit of sequence, exclusive.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'3 tidx</td><tdclass="doc"><p><strong>delta</strong>: 0-D (scalar). Optional. Default is 1. Number that increments <code>start</code>.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> tidx</td><tdclass="doc"><p><strong>output</strong>: 1-D.</p></td></tr></table></div></div><divclass="top"><pclass="src"><aid="v:reducedShape"class="def">reducedShape</a> :: (<ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:OneOf">OneOf</a> '[<ahref="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a>, <ahref="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a>] t1, <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:OneOf">OneOf</a> '[<ahref="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a>, <ahref="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a>] t2) =><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v1 t1 -><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v2 t2 -><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a><ahref="src/TensorFlow.Ops.html#reducedShape"class="link">Source</a><ahref="#v:reducedShape"class="selflink">#</a></p><divclass="doc"><p>Helper function for reduction ops (translation of math_ops.reduced_shape).</p></div></div><divclass="top"><pclass="src"><aid="v:reduceMean"class="def">reduceMean</a> :: (<ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:TensorType">TensorType</a> a, <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:OneOf">OneOf</a> '[<ahref="../base-4.9.1.0/Prelude.html#t:Double">Double</a>, <ahref="../base-4.9.1.0/Prelude.html#t:Float">Float</a>, <ahref="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a><ahref="../base-4.9.1.0/Prelude.html#t:Float">Float</a>, <ahref="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a><ahref="../base-4.9.1.0/Prelude.html#t:Double">Double</a>] a) =><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> a <ahref="src/TensorFlow.Ops.html#reduceMean"class="link">Source</a><ahref="#v:reduceMean"class="selflink">#</a></p><divclass="doc"><p>Computes the mean of ele
the outputs of that operation (both work equivalently).</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> t</td><tdclass="doc"><p><strong>backprops</strong>: `gradients * (features > 0)`.</p></td></tr></table></div><divclass="doc"><p>Computes rectified linear gradients for a Relu operation.</p></div></div><divclass="top"><pclass="src"><aid="v:reluGrad-39-"class="def">reluGrad'</a><ahref="#v:reluGrad-39-"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int16">Int16</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int8">Int8</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Word.html#t:Word16">Word16</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Word.html#t:Word8">Word8</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Prelude.html#t:Double">Double</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Prelude.html#t:Float">Float</a> ([] <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a>))))))))) t</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="../tensorflow-0.1.0.2/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><tdclass="doc empty"> </td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><tdclass="doc"><p><strong>gradients</strong>: The backpropagated gradients to the corresponding Relu operation.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t</td><tdclass="doc"><p><strong>features</strong>: The features passed as input to the corresponding Relu operation, OR
the outputs of that operation (both work equivalently).</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> t</td><tdclass="doc"><p><strong>backprops</strong>: `gradients * (features > 0)`.</p></td></tr></table></div></div><divclass="top"><pclass="src"><aid="v:reshape"class="def">reshape</a><ahref="#v:reshape"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: (<ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:TensorType">TensorType</a> t, <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> ([] <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a>))) tshape)</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><tdclass="doc"><p><strong>tensor</strong></p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tshape</td><tdclass="doc"><p><strong>shape</strong>: Defines the shape of the output tensor.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> t</td><tdclass="doc"><p><strong>output</strong></p></td></tr></table></div><divclass="doc"><p>Reshapes a tensor.</p><p>Given <code>tensor</code>, this operation returns a tensor that has the same values
as <code>tensor</code> with shape <code><ahref="../tensorflow-core-ops-0.1.0.0/TensorFlow-GenOps-Core.html#v:shape">shape</a></code>.</p><p>If one component of <code><ahref="../tensorflow-core-ops-0.1.0.0/TensorFlow-GenOps-Core.html#v:shape">shape</a></code> is the special value -1, the size of that dimension
is computed so that the total size remains constant. In particular, a <code><ahref="../tensorflow-core-ops-0.1.0.0/TensorFlow-GenOps-Core.html#v:shape">shape</a></code>
of `[-1]` flattens into 1-D. At most one component of <code><ahref="../tensorflow-core-ops-0.1.0.0/TensorFlow-GenOps-Core.html#v:shape">shape</a></code> can be -1.</p><p>If <code><ahref="../tensorflow-core-ops-0.1.0.0/TensorFlow-GenOps-Core.html#v:shape">shape</a></code> is 1-D or higher, then the operation returns a tensor with shape
<code><ahref="../tensorflow-core-ops-0.1.0.0/TensorFlow-GenOps-Core.html#v:shape">shape</a></code> filled with the values of <code>tensor</code>. In this case, the number of elements
implied by <code><ahref="../tensorflow-core-ops-0.1.0.0/TensorFlow-GenOps-Core.html#v:shape">shape</a></code> must be the same as the number of elements in <code>tensor</code>.</p><p>For example:</p><p>```
[7, 8, 9]]</p><p># tensor <code>t</code> is [[[1, 1], [2, 2]],
# [[3, 3], [4, 4]]]
# tensor <code>t</code> has shape [2, 2, 2]
reshape(t, [2, 4]) ==> [[1, 1, 2, 2],
[3, 3, 4, 4]]</p><p># tensor <code>t</code> is [[[1, 1, 1],
# [2, 2, 2]],
# [[3, 3, 3],
# [4, 4, 4]],
# [[5, 5, 5],
# [6, 6, 6]]]
# tensor <code>t</code> has shape [3, 2, 3]
# pass '[-1]' to flatten <code>t</code>
reshape(t, [-1]) ==> [1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6]</p><p># -1 can also be used to infer the shape</p><p># -1 is inferred to be 9:
```</p></div></div><divclass="top"><pclass="src"><aid="v:reshape-39-"class="def">reshape'</a><ahref="#v:reshape-39-"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: (<ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:TensorType">TensorType</a> t, <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> ([] <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a>))) tshape)</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="../tensorflow-0.1.0.2/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><tdclass="doc empty"> </td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><tdclass="doc"><p><strong>tensor</strong></p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tshape</td><tdclass="doc"><p><strong>shape</strong>: Defines the shape of the output tensor.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> t</td><tdclass="doc"><p><strong>output</strong></p></td></tr></table></div></div><divclass="top"><pclass="src"><aid="v:restore"class="def">restore</a><ahref="src/TensorFlow.Ops.html#restore"class="link">Source</a><ahref="#v:restore"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: (<ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:TensorType">TensorType</a> a)</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="../bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a></td><tdclass="doc"><p>File path.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Ref">Ref</a> a</td><tdclass="doc"><p>Tensor to restore.</p></td></tr><tr><tdclass="src">-> m <ahref="../tensorflow-0.1.0.2/TensorFlow-Output.html#t:ControlNode">ControlNode</a></td><tdclass="doc empty"> </td></tr></table></div><divclass="doc"><p>Restore a tensor's value from a checkpoint file.</p></div></div><divclass="top"><pclass="src"><aid="v:restoreFromName"class="def">restoreFromName</a><ahref="src/TensorFlow.Ops.html#restoreFromName"class="link">Source</a><ahref="#v:restoreFromName"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: (<ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:TensorType">TensorType</a> a)</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="../bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a></td><tdclass="doc"><p>File path.</p></td></tr><tr><tdclass="src">-><ahref="../bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a></td><tdclass="doc"><p>Tensor name override.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Ref">Ref</a> a</td><tdclass="doc"><p>Tensor to restore.</p></td></tr><tr><tdclass="src">-> m <ahref="../tensorflow-0.1.0.2/TensorFlow-Output.html#t:ControlNode">ControlNode</a></td><tdclass="doc empty"> </td></tr></table></div><divclass="doc"><p>Restore a tensor's value from a checkpoint file.</p><p>This version allows restoring from a checkpoint file that uses a different
tensor name than the variable.</p></div></div><divclass="top"><pclass="src"><aid="v:save"class="def">save</a><ahref="src/TensorFlow.Ops.html#save"class="link">Source</a><ahref="#v:save"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: (<ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Rendered">Rendered</a> (<ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v), <ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:TensorType">TensorType</a> a)</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="../bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a></td><tdclass="doc"><p>File path.</p></td></tr><tr><tdclass="src">-> [<ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a]</td><tdclass="doc"><p>Tensors to save.</p></td></tr><tr><tdclass="src">-> m <ahref="../tensorflow-0.1.0.2/TensorFlow-Output.html#t:ControlNode">ControlNode</a></td><tdclass="doc empty"> </td></tr></table></div></div><divclass="top"><pclass="src"><aid="v:scalar"class="def">scalar</a> :: <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:TensorType">TensorType</a> a => a -><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> a <ahref="src/TensorFlow.Ops.html#scalar"class="link">Source</a><ahref="#v:scalar"class="selflink">#</a></p><divclass="doc"><p>Create a constant scalar.</p></div></div><divclass="top"><pclass="src"><aid="v:scalar-39-"class="def">scalar'</a> :: <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:TensorType">TensorType</a> a =><ahref="../tensorflow-0.1.0.2/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> a -><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> a <ahref="src/TensorFlow.Ops.html#scalar%27"class="link">Source</a><ahref="#v:scalar-39-"class="selflink">#</a></p></div><divclass="top"><pclass="src"><aid="v:shape"class="def">shape</a> :: <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:TensorType">TensorType</a> t =><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v t -><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a><ahref="src/TensorFlow.Ops.html#shape"class="link">Source</a><ahref="#v:shape"class="selflink">#</a></p></div><divclass="top"><pclass="src"><aid="v:shape-39-"class="def">shape'</a> :: <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:TensorType">TensorType</a> t =><ahref="../tensorflow-0.1.0.2/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v t -><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a><ahref="src/TensorFlow.Ops.html#shape%27"class="link">Source</a><ahref="#v:shape-39-"class="selflink">#</a></p></div><divclass="top"><pclass="src"><aid="v:sign"class="def">sign</a><ahref="#v:sign"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a> (<ahref="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a><ahref="../base-4.9.1.0/Prelude.html#t:Double">Double</a>) ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a> (<ahref="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a><ahref="../base-4.9.1.0/Prelude.html#t:Float">Float</a>) ((:) <ahref
probability distribution.</p></td></tr><tr><tdclass="src">-> (<ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> t, <ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> t)</td><tdclass="doc"><p>(<strong>loss</strong>, <strong>backprop</strong>)</p><ul><li><strong>loss</strong>: Per example loss (batch_size vector).</li><li><strong>backprop</strong>: backpropagated gradients (batch_size x num_classes matrix).</li></ul></td></tr></table></div><divclass="doc"><p>Computes softmax cross entropy cost and gradients to backpropagate.</p><p>Inputs are the logits, not probabilities.</p></div></div><divclass="top"><pclass="src"><aid="v:softmaxCrossEntropyWithLogits-39-"class="def">softmaxCrossEntropyWithLogits'</a><ahref="#v:softmaxCrossEntropyWithLogits-39-"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Word.html#t:Word16">Word16</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Prelude.html#t:Double">Double</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Prelude.html#t:Float">Float</a> ([] <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a>)))) t</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="../tensorflow-0.1.0.2/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><tdclass="doc empty"> </td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><tdclass="doc"><p><strong>features</strong>: batch_size x num_classes matrix</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t</td><tdclass="doc"><p><strong>labels</strong>: batch_size x num_classes matrix
probability distribution.</p></td></tr><tr><tdclass="src">-> (<ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> t, <ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> t)</td><tdclass="doc"><p>(<strong>loss</strong>, <strong>backprop</strong>)</p><ul><li><strong>loss</strong>: Per example loss (batch_size vector).</li><li><strong>backprop</strong>: backpropagated gradients (batch_size x num_classes matrix).</li></ul></td></tr></table></div></div><divclass="top"><pclass="src"><aid="v:sparseToDense"class="def">sparseToDense</a><ahref="#v:sparseToDense"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: (<ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:TensorType">TensorType</a> t, <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> ([] <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a>))) tindices)</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 tindices</td><tdclass="doc"><p><strong>sparse_indices</strong>: 0-D, 1-D, or 2-D. `sparse_indices[i]` contains the complete
index where `sparse_values[i]` will be placed.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tindices</td><tdclass="doc"><p><strong>output_shape</strong>: 1-D. Shape of the dense output tensor.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'3 t</td><tdclass="doc"><p><strong>sparse_values</strong>: 1-D. Values corresponding to each row of <code>sparse_indices</code>,
or a scalar value to be used for all sparse indices.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'4 t</td><tdclass="doc"><p><strong>default_value</strong>: Scalar value to set for indices not specified in
<code>sparse_indices</code>.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> t</td><tdclass="doc"><p><strong>dense</strong>: Dense output tensor of shape <code>output_shape</code>.</p></td></tr></table></div><divclass="doc"><p>Converts a sparse representation into a dense tensor.</p><p>Builds an array <code>dense</code> with shape <code>output_shape</code> such that</p><p>```
are checked during execution.</p></div></div><divclass="top"><pclass="src"><aid="v:sparseToDense-39-"class="def">sparseToDense'</a><ahref="#v:sparseToDense-39-"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: (<ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:TensorType">TensorType</a> t, <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> ([] <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a>))) tindices)</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="../tensorflow-0.1.0.2/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><tdclass="doc empty"> </td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 tindices</td><tdclass="doc"><p><strong>sparse_indices</strong>: 0-D, 1-D, or 2-D. `sparse_indices[i]` contains the complete
index where `sparse_values[i]` will be placed.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tindices</td><tdclass="doc"><p><strong>output_shape</strong>: 1-D. Shape of the dense output tensor.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'3 t</td><tdclass="doc"><p><strong>sparse_values</strong>: 1-D. Values corresponding to each row of <code>sparse_indices</code>,
or a scalar value to be used for all sparse indices.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'4 t</td><tdclass="doc"><p><strong>default_value</strong>: Scalar value to set for indices not specified in
<code>sparse_indices</code>.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> t</td><tdclass="doc"><p><strong>dense</strong>: Dense output tensor of shape <code>output_shape</code>.</p></td></tr></table></div></div><divclass="top"><pclass="src"><aid="v:sub"class="def">sub</a><ahref="#v:sub"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a> (<ahref="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a><ahref="../base-4.9.1.0/Prelude.html#t:Double">Double</a>) ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a> (<ahref="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a><ahref="../base-4.9.1.0/Prelude.html#t:Float">Float</a>) ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Word.html#t:Word16">Word16</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Prelude.html#t:Double">Double</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Prelude.html#t:Float">Float</a> ([] <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a>)))))))) t</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><tdclass="doc"><p><strong>x</strong></p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t</td><tdclass="doc"><p><strong>y</strong></p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> t</td><tdclass="doc"><p><strong>z</strong></p></td></tr></table></div><divclass="doc"><p>Returns x - y element-wise.</p><ul><li>NOTE*: <code>Sub</code> supports broadcasting. More about broadcasting
retained with length 1.</p></div></div><divclass="top"><pclass="src"><aid="v:sum-39-"class="def">sum'</a><ahref="#v:sum-39-"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: (<ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a> (<ahref="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a><ahref="../base-4.9.1.0/Prelude.html#t:Double">Double</a>) ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a> (<ahref="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a><ahref="../base-4.9.1.0/Prelude.html#t:Float">Float</a>) ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int16">Int16</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int8">Int8</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Word.html#t:Word16">Word16</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Word.html#t:Word8">Word8</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Prelude.html#t:Double">Double</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Prelude.html#t:Float">Float</a> ([] <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a>))))))))))) t, <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> ([] <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a>))) tidx)</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="../tensorflow-0.1.0.2/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><tdclass="doc empty"> </td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><tdclass="doc"><p><strong>input</strong>: The tensor to reduce.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tidx</td><tdclass="doc"><p><strong>reduction_indices</strong>: The dimensions to reduce.</p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> t</td><tdclass="doc"><p><strong>output</strong>: The reduced tensor.</p></td></tr></table></div></div><divclass="top"><pclass="src"><aid="v:reduceSum"class="def">reduceSum</a> :: <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:OneOf">OneOf</a> '[<ahref="../base-4.9.1.0/Prelude.html#t:Double">Double</a>, <ahref="../base-4.9.1.0/Prelude.html#t:Float">Float</a>, <ahref="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a>, <ahref="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a>, <ahref="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a><ahref="../base-4.9.1.0/Prelude.html#t:Float">Float</a>, <ahref="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a><ahref="../base-4.9.1.0/Prelude.html#t:Double">Double</a>] a =><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> a <ahref="src/TensorFlow.Ops.html#reduceSum"class="link">Source</a><ahref="#v:reduceSum"class="selflink">#</a></p><divclass="doc"><p>Sum a tensor down to a scalar
Seee <code><ahref="../tensorflow-core-ops-0.1.0.0/TensorFlow-GenOps-Core.html#v:sum">sum</a></code></p></div></div><divclass="top"><pclass="src"><aid="v:reduceSum-39-"class="def">reduceSum'</a> :: <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:OneOf">OneOf</a> '[<ahref="../base-4.9.1.0/Prelude.html#t:Double">Double</a>, <ahref="../base-4.9.1.0/Prelude.html#t:Float">Float</a>, <ahref="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a>, <ahref="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a>, <ahref="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a><ahref="../base-4.9.1.0/Prelude.html#t:Float">Float</a>, <ahref="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a><ahref="../base-4.9.1.0/Prelude.html#t:Double">Double</a>] a =><ahref="../tensorflow-0.1.0.2/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> a <ahref="src/TensorFlow.Ops.html#reduceSum%27"class="link">Source</a><ahref="#v:reduceSum-39-"class="selflink">#</a></p></div><divclass="top"><pclass="src"><aid="v:transpose"class="def">transpose</a><ahref="#v:transpose"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: (<ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:TensorType">TensorType</a> t, <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> ([] <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a>))) tperm)</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><tdclass="doc"><p><strong>x</strong></p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tperm</td><tdclass="doc"><p><strong>perm</strong></p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> t</td><tdclass="doc"><p><strong>y</strong></p></td></tr></table></div><divclass="doc"><p>Shuffle dimensions of x according to a permutation.</p><p>The output <code>y</code> has the same rank as <code>x</code>. The shapes of <code>x</code> and <code>y</code> satisfy:
`y.shape[i] == x.shape[perm[i]] for i in [0, 1, ..., rank(x) - 1]`</p></div></div><divclass="top"><pclass="src"><aid="v:transpose-39-"class="def">transpose'</a><ahref="#v:transpose-39-"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: (<ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:TensorType">TensorType</a> t, <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int32">Int32</a> ((:) <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ahref="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a> ([] <ahref="../base-4.9.1.0/Data-Kind.html#t:-42-">*</a>))) tperm)</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="../tensorflow-0.1.0.2/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><tdclass="doc empty"> </td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><tdclass="doc"><p><strong>x</strong></p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tperm</td><tdclass="doc"><p><strong>perm</strong></p></td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:Build">Build</a> t</td><tdclass="doc"><p><strong>y</strong></p></td></tr></table></div></div><divclass="top"><pclass="src"><aid="v:truncatedNormal"class="def">truncatedNormal</a><ahref="src/TensorFlow.Ops.html#truncatedNormal"class="link">Source</a><ahref="#v:truncatedNormal"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: (<ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:OneOf">OneOf</a> '[<ahref="../base-4.9.1.0/Data-Word.html#t:Word16">Word16</a>, <ahref="../base-4.9.1.0/Prelude.html#t:Double">Double</a>, <ahref="../base-4.9.1.0/Prelude.html#t:Float">Float</a>] a)</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v <ahref="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a></td><tdclass="doc"><p>Shape.</p></td></tr><tr><tdclass="src">-> m (<ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Value">Value</a> a)</td><tdclass="doc empty"> </td></tr></table></div><divclass="doc"><p>Random tensor from the unit normal distribution with bounded values.</p><p>This is a type-restricted version of <code><ahref="../tensorflow-core-ops-0.1.0.0/TensorFlow-GenOps-Core.html#v:truncatedNormal">truncatedNormal</a></code>.</p></div></div><divclass="top"><pclass="src"><aid="v:truncatedNormal-39-"class="def">truncatedNormal'</a><ahref="src/TensorFlow.Ops.html#truncatedNormal%27"class="link">Source</a><ahref="#v:truncatedNormal-39-"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: (<ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:OneOf">OneOf</a> '[<ahref="../base-4.9.1.0/Data-Word.html#t:Word16">Word16</a>, <ahref="../base-4.9.1.0/Prelude.html#t:Double">Double</a>, <ahref="../base-4.9.1.0/Prelude.html#t:Float">Float</a>] a)</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="../tensorflow-0.1.0.2/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><tdclass="doc empty"> </td></tr><tr><tdclass="src">-><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v <ahref="../base-4.9.1.0/Data-Int.html#t:Int64">Int64</a></td><tdclass="doc"><p>Shape.</p></td></tr><tr><tdclass="src">-> m (<ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">
and Tensor.</p><p>The indirect constraint "v ~ Value" helps disambiguate types, for example in
"neg 1 :: Tensor Value Float", it helps find the type of the subexpression
"1".</p></td></tr><tr><tdcolspan="2"><divid="section.i:o:ic:Num:Num:1"class="inst-details hide"><divclass="subs methods"><pclass="caption">Methods</p><pclass="src"><ahref="#v:-43-">(+)</a> :: <ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a <ahref="#v:-43-"class="selflink">#</a></p><pclass="src"><ahref="#v:-45-">(-)</a> :: <ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a <ahref="#v:-45-"class="selflink">#</a></p><pclass="src"><ahref="#v:-42-">(*)</a> :: <ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a <ahref="#v:-42-"class="selflink">#</a></p><pclass="src"><ahref="#v:negate">negate</a> :: <ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a <ahref="#v:negate"class="selflink">#</a></p><pclass="src"><ahref="#v:abs">abs</a> :: <ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a <ahref="#v:abs"class="selflink">#</a></p><pclass="src"><ahref="#v:signum">signum</a> :: <ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a <ahref="#v:signum"class="selflink">#</a></p><pclass="src"><ahref="#v:fromInteger">fromInteger</a> :: <ahref="../base-4.9.1.0/Prelude.html#t:Integer">Integer</a> -><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a <ahref="#v:fromInteger"class="selflink">#</a></p></div></div></td></tr></table></div></div></div><divid="footer"><p>Produced by <ahref="http://www.haskell.org/haddock/">Haddock</a> version 2.17.3</p></div></body></html>