mirror of
https://github.com/tensorflow/haskell.git
synced 2024-11-05 18:49:41 +01:00
194 lines
No EOL
193 KiB
HTML
194 lines
No EOL
193 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>TensorFlow.Ops</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
|
|
window.onload = function () {pageLoad();setSynopsis("mini_TensorFlow-Ops.html");};
|
|
//]]>
|
|
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">tensorflow-ops-0.1.0.0: Friendly layer around TensorFlow bindings.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">TensorFlow.Ops</p></div><div id="description"><p class="caption">Description</p><div class="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><a href="../tensorflow-0.1.0.0/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><a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a></code>s are always rendered in the current <code><a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a></code> context. This
|
|
approach helps us avoid problems with inlining or common subexpression
|
|
elimination, by writing</p><pre>do
|
|
v <- variable []
|
|
w <- assign v 3
|
|
render $ w * w</pre><p>instead of</p><pre>let
|
|
v = variable []
|
|
w = assign v 3
|
|
in w * w</pre><p>since the latter could be reasonably transformed by the compiler into (or
|
|
vice versa)</p><pre>let
|
|
v = variable []
|
|
w = assign v 3
|
|
w' = assign v 3
|
|
in w * w'</pre><p>Ops should return a <code><a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a></code> action if their original <code>OpDef</code> marks them as
|
|
stateful, or if they take any Refs as input. (This mirrors the rules that
|
|
TensorFlow uses to avoid common subexpression elimination.)</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><a href="#v:add">add</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *)))))))))))) t => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:add-39-">add'</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *)))))))))))) t => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:abs">abs</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *)))))) t => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:abs-39-">abs'</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *)))))) t => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:addN">addN</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))))))) t => [<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t] -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:addN-39-">addN'</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))))))) t => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> [<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t] -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:argMax">argMax</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))))))) t, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ([] *))) tidx) => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tidx -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a></li><li class="src short"><a href="#v:argMax-39-">argMax'</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))))))) t, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ([] *))) tidx) => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tidx -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a></li><li class="src short"><a href="#v:assign">assign</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m', <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t) => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Ref">Ref</a> t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t -> m' (<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Ref">Ref</a> t)</li><li class="src short"><a href="#v:assign-39-">assign'</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m', <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t) => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Ref">Ref</a> t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t -> m' (<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Ref">Ref</a> t)</li><li class="src short"><a href="#v:broadcastGradientArgs">broadcastGradientArgs</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ([] *))) t => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t -> (<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t, <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t)</li><li class="src short"><a href="#v:broadcastGradientArgs-39-">broadcastGradientArgs'</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ([] *))) t => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t -> (<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t, <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t)</li><li class="src short"><a href="#v:cast">cast</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> srcT, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> dstT) => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 srcT -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> dstT</li><li class="src short"><a href="#v:cast-39-">cast'</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> srcT, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> dstT) => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 srcT -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> dstT</li><li class="src short"><a href="#v:concat">concat</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> -> [<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t] -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:concat-39-">concat'</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> -> [<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t] -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:constant">constant</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a => <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:Shape">Shape</a> -> [a] -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> a</li><li class="src short"><a href="#v:constant-39-">constant'</a> :: <span class="keyword">forall</span> a. <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:Shape">Shape</a> -> [a] -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> a</li><li class="src short"><a href="#v:equal">equal</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a> ((:) * <a href="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))))))))) t => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> <a href="../base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:equal-39-">equal'</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a> ((:) * <a href="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))))))))) t => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> <a href="../base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:expandDims">expandDims</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v2 <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:expandDims-39-">expandDims'</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v2 <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:initializedVariable">initializedVariable</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a) => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -> m (<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Ref">Ref</a> a)</li><li class="src short"><a href="#v:initializedVariable-39-">initializedVariable'</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a) => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -> m (<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Ref">Ref</a> a)</li><li class="src short"><a href="#v:zeroInitializedVariable">zeroInitializedVariable</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a, <a href="../base-4.8.2.0/Prelude.html#t:Num">Num</a> a) => <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:Shape">Shape</a> -> m (<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Ref">Ref</a> a)</li><li class="src short"><a href="#v:zeroInitializedVariable-39-">zeroInitializedVariable'</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a, <a href="../base-4.8.2.0/Prelude.html#t:Num">Num</a> a) => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:Shape">Shape</a> -> m (<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Ref">Ref</a> a)</li><li class="src short"><a href="#v:fill">fill</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:fill-39-">fill'</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:identity">identity</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:identity-39-">identity'</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:matMul">matMul</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))) t => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:matMul-39-">matMul'</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))) t => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:matTranspose">matTranspose</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> e a -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> a</li><li class="src short"><a href="#v:matTranspose-39-">matTranspose'</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> a</li><li class="src short"><a href="#v:mean">mean</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))))))) t, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ([] *))) tidx) => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tidx -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:mean-39-">mean'</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))))))) t, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ([] *))) tidx) => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tidx -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:mul">mul</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))))))) t => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:mul-39-">mul'</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))))))) t => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:neg">neg</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *)))))))) t => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:neg-39-">neg'</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *)))))))) t => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:oneHot">oneHot</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ([] *)))) tI) => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 tI -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'3 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'4 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:oneHot-39-">oneHot'</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ([] *)))) tI) => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 tI -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'3 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'4 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:pack">pack</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t => [<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t] -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:pack-39-">pack'</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> [<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t] -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:placeholder">placeholder</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a) => <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:Shape">Shape</a> -> m (<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Value">Value</a> a)</li><li class="src short"><a href="#v:placeholder-39-">placeholder'</a> :: <span class="keyword">forall</span> m a. (<a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a) => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:Shape">Shape</a> -> m (<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Value">Value</a> a)</li><li class="src short"><a href="#v:range">range</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))) tidx => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 tidx -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tidx -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'3 tidx -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> tidx</li><li class="src short"><a href="#v:range-39-">range'</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))) tidx => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 tidx -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tidx -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'3 tidx -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> tidx</li><li class="src short"><a href="#v:reducedShape">reducedShape</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> `[<a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a>, <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a>]` t1, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> `[<a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a>, <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a>]` t2) => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v1 t1 -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v2 t2 -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a></li><li class="src short"><a href="#v:relu">relu</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))))) t => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:relu-39-">relu'</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))))) t => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:reluGrad">reluGrad</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))))) t => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:reluGrad-39-">reluGrad'</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))))) t => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:reshape">reshape</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ([] *))) tshape) => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tshape -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:reshape-39-">reshape'</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ([] *))) tshape) => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tshape -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:restore">restore</a> :: <span class="keyword">forall</span> a m. (<a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a) => <a href="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Ref">Ref</a> a -> m <a href="../tensorflow-0.1.0.0/TensorFlow-Output.html#t:ControlNode">ControlNode</a></li><li class="src short"><a href="#v:restoreFromName">restoreFromName</a> :: <span class="keyword">forall</span> a m. (<a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a) => <a href="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Ref">Ref</a> a -> m <a href="../tensorflow-0.1.0.0/TensorFlow-Output.html#t:ControlNode">ControlNode</a></li><li class="src short"><a href="#v:save">save</a> :: <span class="keyword">forall</span> a m v. (<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Rendered">Rendered</a> v, <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a) => <a href="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> [<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a] -> m <a href="../tensorflow-0.1.0.0/TensorFlow-Output.html#t:ControlNode">ControlNode</a></li><li class="src short"><a href="#v:scalar">scalar</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a => a -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> a</li><li class="src short"><a href="#v:scalar-39-">scalar'</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> a -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> a</li><li class="src short"><a href="#v:shape">shape</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a></li><li class="src short"><a href="#v:shape-39-">shape'</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a></li><li class="src short"><a href="#v:sign">sign</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *)))))))) t => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:sign-39-">sign'</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *)))))))) t => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:size">size</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ([] *))) out_type) => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> out_type</li><li class="src short"><a href="#v:size-39-">size'</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ([] *))) out_type) => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> out_type</li><li class="src short"><a href="#v:softmax">softmax</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *)))) t => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:softmax-39-">softmax'</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *)))) t => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:softmaxCrossEntropyWithLogits">softmaxCrossEntropyWithLogits</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *)))) t => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t -> (<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t, <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t)</li><li class="src short"><a href="#v:softmaxCrossEntropyWithLogits-39-">softmaxCrossEntropyWithLogits'</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *)))) t => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t -> (<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t, <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t)</li><li class="src short"><a href="#v:sparseToDense">sparseToDense</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ([] *))) tindices) => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 tindices -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tindices -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'3 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'4 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:sparseToDense-39-">sparseToDense'</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ([] *))) tindices) => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 tindices -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tindices -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'3 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'4 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:sub">sub</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *)))))))) t => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:sub-39-">sub'</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *)))))))) t => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:sum">sum</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))))))) t, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ([] *))) tidx) => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tidx -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:sum-39-">sum'</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))))))) t, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ([] *))) tidx) => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tidx -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:transpose">transpose</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ([] *))) tperm) => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tperm -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:transpose-39-">transpose'</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ([] *))) tperm) => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tperm -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:truncatedNormal">truncatedNormal</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> `[<a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a>, <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>, <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>]` a) => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> -> m (<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Value">Value</a> a)</li><li class="src short"><a href="#v:truncatedNormal-39-">truncatedNormal'</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> `[<a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a>, <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>, <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>]` a) => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> -> m (<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Value">Value</a> a)</li><li class="src short"><a href="#v:variable">variable</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m', <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> dtype) => <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:Shape">Shape</a> -> m' (<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Ref">Ref</a> dtype)</li><li class="src short"><a href="#v:variable-39-">variable'</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m', <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> dtype) => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:Shape">Shape</a> -> m' (<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Ref">Ref</a> dtype)</li><li class="src short"><a href="#v:vector">vector</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a => [a] -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> a</li><li class="src short"><a href="#v:vector-39-">vector'</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> [a] -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> a</li><li class="src short"><a href="#v:zeros">zeros</a> :: <span class="keyword">forall</span> a. (<a href="../base-4.8.2.0/Prelude.html#t:Num">Num</a> a, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a) => <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:Shape">Shape</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> a</li><li class="src short"><a href="#v:zerosLike">zerosLike</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:zerosLike-39-">zerosLike'</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</li><li class="src short"><a href="#v:scalarize">scalarize</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> a</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:add" class="def">add</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *)))))))))))) t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>x</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t</td><td class="doc"><p><strong>y</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>z</strong></p></td></tr></table></div><div class="doc"><p>Returns x + y element-wise.</p><ul><li>NOTE*: <code>Add</code> supports broadcasting. <code>AddN</code> does not. More about broadcasting
|
|
<a href="http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html">here</a></li></ul></div></div><div class="top"><p class="src"><a name="v:add-39-" class="def">add'</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *)))))))))))) t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>x</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t</td><td class="doc"><p><strong>y</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>z</strong></p></td></tr></table></div></div><div class="top"><p class="src"><a name="v:abs" class="def">abs</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *)))))) t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>x</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>y</strong></p></td></tr></table></div><div class="doc"><p>Computes the absolute value of a tensor.</p><p>Given a tensor <code>x</code>, this operation returns a tensor containing the absolute
|
|
value of each element in <code>x</code>. For example, if x is an input element and y is
|
|
an output element, this operation computes \(y = |x|\).</p></div></div><div class="top"><p class="src"><a name="v:abs-39-" class="def">abs'</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *)))))) t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>x</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>y</strong></p></td></tr></table></div></div><div class="top"><p class="src"><a name="v:addN" class="def">addN</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))))))) t</td><td class="doc empty"> </td></tr><tr><td class="src">=> [<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t]</td><td class="doc"><p><strong>inputs</strong>: Must all be the same size and shape.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>sum</strong></p></td></tr></table></div><div class="doc"><p>Add all input tensors element wise.</p></div></div><div class="top"><p class="src"><a name="v:addN-39-" class="def">addN'</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))))))) t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> [<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t]</td><td class="doc"><p><strong>inputs</strong>: Must all be the same size and shape.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>sum</strong></p></td></tr></table></div></div><div class="top"><p class="src"><a name="v:argMax" class="def">argMax</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *). (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))))))) t, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ([] *))) tidx)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>input</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tidx</td><td class="doc"><p><strong>dimension</strong>: int32, 0 <= dimension < rank(input). Describes which dimension
|
|
of the input Tensor to reduce across. For vectors, use dimension = 0.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a></td><td class="doc"><p><strong>output</strong></p></td></tr></table></div><div class="doc"><p>Returns the index with the largest value across dimensions of a tensor.</p></div></div><div class="top"><p class="src"><a name="v:argMax-39-" class="def">argMax'</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *). (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))))))) t, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ([] *))) tidx)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>input</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tidx</td><td class="doc"><p><strong>dimension</strong>: int32, 0 <= dimension < rank(input). Describes which dimension
|
|
of the input Tensor to reduce across. For vectors, use dimension = 0.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a></td><td class="doc"><p><strong>output</strong></p></td></tr></table></div></div><div class="top"><p class="src"><a name="v:assign" class="def">assign</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'2 :: * -> *) (m' :: * -> *). (<a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m', <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Ref">Ref</a> t</td><td class="doc"><p><strong>ref</strong>: Should be from a <code>Variable</code> node. May be uninitialized.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t</td><td class="doc"><p><strong>value</strong>: The value to be assigned to the variable.</p></td></tr><tr><td class="src">-> m' (<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Ref">Ref</a> t)</td><td class="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 class="doc"><p>Update <code>ref</code> by assigning <code><a href="../tensorflow-0.1.0.0/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><div class="top"><p class="src"><a name="v:assign-39-" class="def">assign'</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'2 :: * -> *) (m' :: * -> *). (<a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m', <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Ref">Ref</a> t</td><td class="doc"><p><strong>ref</strong>: Should be from a <code>Variable</code> node. May be uninitialized.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t</td><td class="doc"><p><strong>value</strong>: The value to be assigned to the variable.</p></td></tr><tr><td class="src">-> m' (<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Ref">Ref</a> t)</td><td class="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><div class="top"><p class="src"><a name="v:broadcastGradientArgs" class="def">broadcastGradientArgs</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ([] *))) t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>s0</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t</td><td class="doc"><p><strong>s1</strong></p></td></tr><tr><td class="src">-> (<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t, <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t)</td><td class="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 class="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><div class="top"><p class="src"><a name="v:broadcastGradientArgs-39-" class="def">broadcastGradientArgs'</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ([] *))) t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>s0</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t</td><td class="doc"><p><strong>s1</strong></p></td></tr><tr><td class="src">-> (<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t, <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t)</td><td class="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><div class="top"><p class="src"><a name="v:cast" class="def">cast</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *). (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> srcT, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> dstT)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 srcT</td><td class="doc"><p><strong>x</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> dstT</td><td class="doc"><p><strong>y</strong></p></td></tr></table></div><div class="doc"><p>Cast x of type SrcT to y of DstT.</p></div></div><div class="top"><p class="src"><a name="v:cast-39-" class="def">cast'</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *). (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> srcT, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> dstT)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 srcT</td><td class="doc"><p><strong>x</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> dstT</td><td class="doc"><p><strong>y</strong></p></td></tr></table></div></div><div class="top"><p class="src"><a name="v:concat" class="def">concat</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a></td><td class="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><td class="src">-> [<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t]</td><td class="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><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>output</strong>: A <code><a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a></code> with the concatenation of values stacked along the
|
|
<code>concat_dim</code> dimension. This tensor's shape matches that of <code>values</code> except
|
|
in <code>concat_dim</code> where it has the sum of the sizes.</p></td></tr></table></div><div class="doc"><p>Concatenates tensors along one dimension.</p></div></div><div class="top"><p class="src"><a name="v:concat-39-" class="def">concat'</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a></td><td class="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><td class="src">-> [<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t]</td><td class="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><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>output</strong>: A <code><a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a></code> with the concatenation of values stacked along the
|
|
<code>concat_dim</code> dimension. This tensor's shape matches that of <code>values</code> except
|
|
in <code>concat_dim</code> where it has the sum of the sizes.</p></td></tr></table></div></div><div class="top"><p class="src"><a name="v:constant" class="def">constant</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a => <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:Shape">Shape</a> -> [a] -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> a</p><div class="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)
|
|
element 1: index (0, ..., 1)
|
|
...</p></div></div><div class="top"><p class="src"><a name="v:constant-39-" class="def">constant'</a> :: <span class="keyword">forall</span> a. <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:Shape">Shape</a> -> [a] -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> a</p></div><div class="top"><p class="src"><a name="v:equal" class="def">equal</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a> ((:) * <a href="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))))))))) t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>x</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t</td><td class="doc"><p><strong>y</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> <a href="../base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p><strong>z</strong></p></td></tr></table></div><div class="doc"><p>Returns the truth value of (x == y) element-wise.</p><ul><li>NOTE*: <code>Equal</code> supports broadcasting. More about broadcasting
|
|
<a href="http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html">here</a></li></ul></div></div><div class="top"><p class="src"><a name="v:equal-39-" class="def">equal'</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a> ((:) * <a href="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))))))))) t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>x</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t</td><td class="doc"><p><strong>y</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> <a href="../base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p><strong>z</strong></p></td></tr></table></div></div><div class="top"><p class="src"><a name="v:expandDims" class="def">expandDims</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v2 <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</p></div><div class="top"><p class="src"><a name="v:expandDims-39-" class="def">expandDims'</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v1 t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v2 <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</p></div><div class="top"><p class="src"><a name="v:initializedVariable" class="def">initializedVariable</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a) => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -> m (<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Ref">Ref</a> a)</p><div class="doc"><p>Creates a variable initialized to the given value.
|
|
Initialization happens next time session runs.</p></div></div><div class="top"><p class="src"><a name="v:initializedVariable-39-" class="def">initializedVariable'</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a) => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -> m (<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Ref">Ref</a> a)</p></div><div class="top"><p class="src"><a name="v:zeroInitializedVariable" class="def">zeroInitializedVariable</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a, <a href="../base-4.8.2.0/Prelude.html#t:Num">Num</a> a) => <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:Shape">Shape</a> -> m (<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Ref">Ref</a> a)</p><div class="doc"><p>Creates a zero-initialized variable with the given shape.</p></div></div><div class="top"><p class="src"><a name="v:zeroInitializedVariable-39-" class="def">zeroInitializedVariable'</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a, <a href="../base-4.8.2.0/Prelude.html#t:Num">Num</a> a) => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:Shape">Shape</a> -> m (<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Ref">Ref</a> a)</p></div><div class="top"><p class="src"><a name="v:fill" class="def">fill</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a></td><td class="doc"><p><strong>dims</strong>: 1-D. Represents the shape of the output tensor.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t</td><td class="doc"><p><strong>value</strong>: 0-D (scalar). Value to fill the returned tensor.</p><p><code>compatibility(numpy)
|
|
Equivalent to np.full
|
|
</code>end_compatibility</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>output</strong></p></td></tr></table></div><div class="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><a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#v:value">value</a></code>.</p><p>For example:</p><p>```prettyprint
|
|
# Output tensor has shape [2, 3].
|
|
fill([2, 3], 9) ==> [[9, 9, 9]
|
|
[9, 9, 9]]
|
|
```</p></div></div><div class="top"><p class="src"><a name="v:fill-39-" class="def">fill'</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a></td><td class="doc"><p><strong>dims</strong>: 1-D. Represents the shape of the output tensor.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t</td><td class="doc"><p><strong>value</strong>: 0-D (scalar). Value to fill the returned tensor.</p><p><code>compatibility(numpy)
|
|
Equivalent to np.full
|
|
</code>end_compatibility</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>output</strong></p></td></tr></table></div></div><div class="top"><p class="src"><a name="v:identity" class="def">identity</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>input</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>output</strong></p></td></tr></table></div><div class="doc"><p>Return a tensor with the same shape and contents as the input tensor or value.</p></div></div><div class="top"><p class="src"><a name="v:identity-39-" class="def">identity'</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>input</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>output</strong></p></td></tr></table></div></div><div class="top"><p class="src"><a name="v:matMul" class="def">matMul</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))) t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>a</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t</td><td class="doc"><p><strong>b</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>product</strong></p></td></tr></table></div><div class="doc"><p>Multiply the matrix "a" by the matrix "b".</p><p>The inputs must be two-dimensional matrices and the inner dimension of
|
|
"a" (after being transposed if transpose_a is true) must match the
|
|
outer dimension of "b" (after being transposed if transposed_b is
|
|
true).</p><ul><li>Note*: The default kernel implementation for MatMul on GPUs uses
|
|
cublas.</li></ul></div></div><div class="top"><p class="src"><a name="v:matMul-39-" class="def">matMul'</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))) t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>a</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t</td><td class="doc"><p><strong>b</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>product</strong></p></td></tr></table></div></div><div class="top"><p class="src"><a name="v:matTranspose" class="def">matTranspose</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> e a -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> a</p></div><div class="top"><p class="src"><a name="v:matTranspose-39-" class="def">matTranspose'</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> a</p></div><div class="top"><p class="src"><a name="v:mean" class="def">mean</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *). (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))))))) t, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ([] *))) tidx)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>input</strong>: The tensor to reduce.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tidx</td><td class="doc"><p><strong>reduction_indices</strong>: The dimensions to reduce.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>output</strong>: The reduced tensor.</p></td></tr></table></div><div class="doc"><p>Computes the mean of elements across dimensions of a tensor.</p><p>Reduces <code>input</code> along the dimensions given in <code>reduction_indices</code>. Unless
|
|
<code>keep_dims</code> is true, the rank of the tensor is reduced by 1 for each entry in
|
|
<code>reduction_indices</code>. If <code>keep_dims</code> is true, the reduced dimensions are
|
|
retained with length 1.</p></div></div><div class="top"><p class="src"><a name="v:mean-39-" class="def">mean'</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *). (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))))))) t, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ([] *))) tidx)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>input</strong>: The tensor to reduce.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tidx</td><td class="doc"><p><strong>reduction_indices</strong>: The dimensions to reduce.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>output</strong>: The reduced tensor.</p></td></tr></table></div></div><div class="top"><p class="src"><a name="v:mul" class="def">mul</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))))))) t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>x</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t</td><td class="doc"><p><strong>y</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>z</strong></p></td></tr></table></div><div class="doc"><p>Returns x * y element-wise.</p><ul><li>NOTE*: <code>Mul</code> supports broadcasting. More about broadcasting
|
|
<a href="http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html">here</a></li></ul></div></div><div class="top"><p class="src"><a name="v:mul-39-" class="def">mul'</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))))))) t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>x</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t</td><td class="doc"><p><strong>y</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>z</strong></p></td></tr></table></div></div><div class="top"><p class="src"><a name="v:neg" class="def">neg</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *)))))))) t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>x</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>y</strong></p></td></tr></table></div><div class="doc"><p>Computes numerical negative value element-wise.</p><p>I.e., \(y = -x\).</p></div></div><div class="top"><p class="src"><a name="v:neg-39-" class="def">neg'</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *)))))))) t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>x</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>y</strong></p></td></tr></table></div></div><div class="top"><p class="src"><a name="v:oneHot" class="def">oneHot</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *) (v'3 :: * -> *) (v'4 :: * -> *). (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ([] *)))) tI)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 tI</td><td class="doc"><p><strong>indices</strong>: A tensor of indices.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a></td><td class="doc"><p><strong>depth</strong>: A scalar defining the depth of the one hot dimension.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'3 t</td><td class="doc"><p><strong>on_value</strong>: A scalar defining the value to fill in output when `indices[j] = i`.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'4 t</td><td class="doc"><p><strong>off_value</strong>: A scalar defining the value to fill in output when `indices[j] != i`.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>output</strong>: The one-hot tensor.</p></td></tr></table></div><div class="doc"><p>Returns a one-hot tensor.</p><p>The locations represented by indices in <code>indices</code> take value <code>on_value</code>,
|
|
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 =
|
|
[
|
|
[1.0, 0.0, 0.0] // one_hot(0)
|
|
[0.0, 0.0, 1.0] // one_hot(2)
|
|
][
|
|
[0.0, 1.0, 0.0] // one_hot(1)
|
|
[0.0, 0.0, 0.0] // one_hot(-1)
|
|
]```</p></div></div><div class="top"><p class="src"><a name="v:oneHot-39-" class="def">oneHot'</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *) (v'3 :: * -> *) (v'4 :: * -> *). (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ([] *)))) tI)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 tI</td><td class="doc"><p><strong>indices</strong>: A tensor of indices.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a></td><td class="doc"><p><strong>depth</strong>: A scalar defining the depth of the one hot dimension.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'3 t</td><td class="doc"><p><strong>on_value</strong>: A scalar defining the value to fill in output when `indices[j] = i`.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'4 t</td><td class="doc"><p><strong>off_value</strong>: A scalar defining the value to fill in output when `indices[j] != i`.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>output</strong>: The one-hot tensor.</p></td></tr></table></div></div><div class="top"><p class="src"><a name="v:pack" class="def">pack</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t</td><td class="doc empty"> </td></tr><tr><td class="src">=> [<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t]</td><td class="doc"><p><strong>values</strong>: Must be of same shape and type.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>output</strong>: The packed tensor.</p></td></tr></table></div><div class="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
|
|
tensor in <code>values</code>, by packing them along the <code>axis</code> dimension.
|
|
Given a list of tensors of shape `(A, B, C)`;</p><p>if `axis == 0` then the <code>output</code> tensor will have the shape `(N, A, B, C)`.
|
|
if `axis == 1` then the <code>output</code> tensor will have the shape `(A, N, B, C)`.
|
|
Etc.</p><p>For example:</p><p>```prettyprint
|
|
# <code>x</code> is [1, 4]
|
|
# <code>y</code> is [2, 5]
|
|
# <code>z</code> is [3, 6]
|
|
pack([x, y, z]) => [[1, 4], [2, 5], [3, 6]] # Pack along first dim.
|
|
pack([x, y, z], axis=1) => [[1, 2, 3], [4, 5, 6]]
|
|
```</p><p>This is the opposite of <code><a href="../tensorflow-core-ops-0.1.0.0/TensorFlow-GenOps-Core.html#v:unpack">unpack</a></code>.</p></div></div><div class="top"><p class="src"><a name="v:pack-39-" class="def">pack'</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> [<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t]</td><td class="doc"><p><strong>values</strong>: Must be of same shape and type.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>output</strong>: The packed tensor.</p></td></tr></table></div></div><div class="top"><p class="src"><a name="v:placeholder" class="def">placeholder</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a) => <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:Shape">Shape</a> -> m (<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Value">Value</a> a)</p></div><div class="top"><p class="src"><a name="v:placeholder-39-" class="def">placeholder'</a> :: <span class="keyword">forall</span> m a. (<a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a) => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:Shape">Shape</a> -> m (<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Value">Value</a> a)</p></div><div class="top"><p class="src"><a name="v:range" class="def">range</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *) (v'3 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))) tidx</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 tidx</td><td class="doc"><p><strong>start</strong>: 0-D (scalar). First entry in the sequence.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tidx</td><td class="doc"><p><strong>limit</strong>: 0-D (scalar). Upper limit of sequence, exclusive.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'3 tidx</td><td class="doc"><p><strong>delta</strong>: 0-D (scalar). Optional. Default is 1. Number that increments <code>start</code>.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> tidx</td><td class="doc"><p><strong>output</strong>: 1-D.</p></td></tr></table></div><div class="doc"><p>Creates a sequence of numbers.</p><p>This operation creates a sequence of numbers that begins at <code>start</code> and
|
|
extends by increments of <code>delta</code> up to but not including <code>limit</code>.</p><p>For example:</p><p>```
|
|
# <code>start</code> is 3
|
|
# <code>limit</code> is 18
|
|
# <code>delta</code> is 3
|
|
tf.range(start, limit, delta) ==> [3, 6, 9, 12, 15]
|
|
```</p></div></div><div class="top"><p class="src"><a name="v:range-39-" class="def">range'</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *) (v'3 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))) tidx</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 tidx</td><td class="doc"><p><strong>start</strong>: 0-D (scalar). First entry in the sequence.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tidx</td><td class="doc"><p><strong>limit</strong>: 0-D (scalar). Upper limit of sequence, exclusive.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'3 tidx</td><td class="doc"><p><strong>delta</strong>: 0-D (scalar). Optional. Default is 1. Number that increments <code>start</code>.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> tidx</td><td class="doc"><p><strong>output</strong>: 1-D.</p></td></tr></table></div></div><div class="top"><p class="src"><a name="v:reducedShape" class="def">reducedShape</a> :: (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> `[<a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a>, <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a>]` t1, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> `[<a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a>, <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a>]` t2) => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v1 t1 -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v2 t2 -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a></p><div class="doc"><p>Helper function for reduction ops (translation of math_ops.reduced_shape).</p></div></div><div class="top"><p class="src"><a name="v:relu" class="def">relu</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))))) t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>features</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>activations</strong></p></td></tr></table></div><div class="doc"><p>Computes rectified linear: `max(features, 0)`.</p></div></div><div class="top"><p class="src"><a name="v:relu-39-" class="def">relu'</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))))) t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>features</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>activations</strong></p></td></tr></table></div></div><div class="top"><p class="src"><a name="v:reluGrad" class="def">reluGrad</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))))) t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>gradients</strong>: The backpropagated gradients to the corresponding Relu operation.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t</td><td class="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><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>backprops</strong>: `gradients * (features > 0)`.</p></td></tr></table></div><div class="doc"><p>Computes rectified linear gradients for a Relu operation.</p></div></div><div class="top"><p class="src"><a name="v:reluGrad-39-" class="def">reluGrad'</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))))) t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>gradients</strong>: The backpropagated gradients to the corresponding Relu operation.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t</td><td class="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><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>backprops</strong>: `gradients * (features > 0)`.</p></td></tr></table></div></div><div class="top"><p class="src"><a name="v:reshape" class="def">reshape</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *). (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ([] *))) tshape)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>tensor</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tshape</td><td class="doc"><p><strong>shape</strong>: Defines the shape of the output tensor.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>output</strong></p></td></tr></table></div><div class="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><a href="../tensorflow-core-ops-0.1.0.0/TensorFlow-GenOps-Core.html#v:shape">shape</a></code>.</p><p>If one component of <code><a href="../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><a href="../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><a href="../tensorflow-core-ops-0.1.0.0/TensorFlow-GenOps-Core.html#v:shape">shape</a></code> can be -1.</p><p>If <code><a href="../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><a href="../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><a href="../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>```prettyprint
|
|
# tensor <code>t</code> is [1, 2, 3, 4, 5, 6, 7, 8, 9]
|
|
# tensor <code>t</code> has shape [9]
|
|
reshape(t, [3, 3]) ==> [[1, 2, 3],
|
|
[4, 5, 6],
|
|
[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:
|
|
reshape(t, [2, -1]) ==> [[1, 1, 1, 2, 2, 2, 3, 3, 3],
|
|
[4, 4, 4, 5, 5, 5, 6, 6, 6]]
|
|
# -1 is inferred to be 2:
|
|
reshape(t, [-1, 9]) ==> [[1, 1, 1, 2, 2, 2, 3, 3, 3],
|
|
[4, 4, 4, 5, 5, 5, 6, 6, 6]]
|
|
# -1 is inferred to be 3:
|
|
reshape(t, [ 2, -1, 3]) ==> [[[1, 1, 1],
|
|
[2, 2, 2],
|
|
[3, 3, 3]],
|
|
[[4, 4, 4],
|
|
[5, 5, 5],
|
|
[6, 6, 6]]]</p><p># tensor <code>t</code> is [7]
|
|
# shape `[]` reshapes to a scalar
|
|
reshape(t, []) ==> 7
|
|
```</p></div></div><div class="top"><p class="src"><a name="v:reshape-39-" class="def">reshape'</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *). (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ([] *))) tshape)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>tensor</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tshape</td><td class="doc"><p><strong>shape</strong>: Defines the shape of the output tensor.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>output</strong></p></td></tr></table></div></div><div class="top"><p class="src"><a name="v:restore" class="def">restore</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>File path.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Ref">Ref</a> a</td><td class="doc"><p>Tensor to restore.</p></td></tr><tr><td class="src">-> m <a href="../tensorflow-0.1.0.0/TensorFlow-Output.html#t:ControlNode">ControlNode</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Restore a tensor's value from a checkpoint file.</p></div></div><div class="top"><p class="src"><a name="v:restoreFromName" class="def">restoreFromName</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>File path.</p></td></tr><tr><td class="src">-> <a href="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>Tensor name override.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Ref">Ref</a> a</td><td class="doc"><p>Tensor to restore.</p></td></tr><tr><td class="src">-> m <a href="../tensorflow-0.1.0.0/TensorFlow-Output.html#t:ControlNode">ControlNode</a></td><td class="doc empty"> </td></tr></table></div><div class="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><div class="top"><p class="src"><a name="v:save" class="def">save</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Rendered">Rendered</a> v, <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>File path.</p></td></tr><tr><td class="src">-> [<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a]</td><td class="doc"><p>Tensors to save.</p></td></tr><tr><td class="src">-> m <a href="../tensorflow-0.1.0.0/TensorFlow-Output.html#t:ControlNode">ControlNode</a></td><td class="doc empty"> </td></tr></table></div></div><div class="top"><p class="src"><a name="v:scalar" class="def">scalar</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a => a -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> a</p><div class="doc"><p>Create a constant scalar.</p></div></div><div class="top"><p class="src"><a name="v:scalar-39-" class="def">scalar'</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> a -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> a</p></div><div class="top"><p class="src"><a name="v:shape" class="def">shape</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a></p></div><div class="top"><p class="src"><a name="v:shape-39-" class="def">shape'</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v t -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a></p></div><div class="top"><p class="src"><a name="v:sign" class="def">sign</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *)))))))) t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>x</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>y</strong></p></td></tr></table></div><div class="doc"><p>Returns an element-wise indication of the sign of a number.</p><p>`y = sign(x) = -1` if `x <a href="0`;">0 if `x == 0`; 1 if `x</a> 0`.</p><p>For complex numbers, `y = sign(x) = x / |x|` if `x != 0`, otherwise `y = 0`.</p></div></div><div class="top"><p class="src"><a name="v:sign-39-" class="def">sign'</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *)))))))) t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>x</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>y</strong></p></td></tr></table></div></div><div class="top"><p class="src"><a name="v:size" class="def">size</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *). (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ([] *))) out_type)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>input</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> out_type</td><td class="doc"><p><strong>output</strong></p></td></tr></table></div><div class="doc"><p>Returns the size of a tensor.</p><p>This operation returns an integer representing the number of elements in
|
|
<code>input</code>.</p><p>For example:</p><p>```prettyprint
|
|
# <code>t</code> is [[[1, 1,, 1], [2, 2, 2]], [[3, 3, 3], [4, 4, 4]]]]
|
|
size(t) ==> 12
|
|
```</p></div></div><div class="top"><p class="src"><a name="v:size-39-" class="def">size'</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *). (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ([] *))) out_type)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>input</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> out_type</td><td class="doc"><p><strong>output</strong></p></td></tr></table></div></div><div class="top"><p class="src"><a name="v:softmax" class="def">softmax</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *)))) t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>logits</strong>: 2-D with shape `[batch_size, num_classes]`.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>softmax</strong>: Same shape as <code>logits</code>.</p></td></tr></table></div><div class="doc"><p>Computes softmax activations.</p><p>For each batch <code>i</code> and class <code>j</code> we have</p><p>softmax[i, j] = exp(logits[i, j]) / sum_j(exp(logits[i, j]))</p></div></div><div class="top"><p class="src"><a name="v:softmax-39-" class="def">softmax'</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *)))) t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>logits</strong>: 2-D with shape `[batch_size, num_classes]`.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>softmax</strong>: Same shape as <code>logits</code>.</p></td></tr></table></div></div><div class="top"><p class="src"><a name="v:softmaxCrossEntropyWithLogits" class="def">softmaxCrossEntropyWithLogits</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *)))) t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>features</strong>: batch_size x num_classes matrix</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t</td><td class="doc"><p><strong>labels</strong>: batch_size x num_classes matrix
|
|
The caller must ensure that each batch of labels represents a valid
|
|
probability distribution.</p></td></tr><tr><td class="src">-> (<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t, <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t)</td><td class="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 class="doc"><p>Computes softmax cross entropy cost and gradients to backpropagate.</p><p>Inputs are the logits, not probabilities.</p></div></div><div class="top"><p class="src"><a name="v:softmaxCrossEntropyWithLogits-39-" class="def">softmaxCrossEntropyWithLogits'</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *)))) t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>features</strong>: batch_size x num_classes matrix</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t</td><td class="doc"><p><strong>labels</strong>: batch_size x num_classes matrix
|
|
The caller must ensure that each batch of labels represents a valid
|
|
probability distribution.</p></td></tr><tr><td class="src">-> (<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t, <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t)</td><td class="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><div class="top"><p class="src"><a name="v:sparseToDense" class="def">sparseToDense</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *) (v'3 :: * -> *) (v'4 :: * -> *). (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ([] *))) tindices)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 tindices</td><td class="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><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tindices</td><td class="doc"><p><strong>output_shape</strong>: 1-D. Shape of the dense output tensor.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'3 t</td><td class="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><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'4 t</td><td class="doc"><p><strong>default_value</strong>: Scalar value to set for indices not specified in
|
|
<code>sparse_indices</code>.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>dense</strong>: Dense output tensor of shape <code>output_shape</code>.</p></td></tr></table></div><div class="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>```prettyprint
|
|
# If sparse_indices is scalar
|
|
dense[i] = (i == sparse_indices ? sparse_values : default_value)</p><p># If sparse_indices is a vector, then for each i
|
|
dense[sparse_indices[i]] = sparse_values[i]</p><p># If sparse_indices is an n by d matrix, then for each i in [0, n)
|
|
dense[sparse_indices[i][0], ..., sparse_indices[i][d-1]] = sparse_values[i]
|
|
```</p><p>All other values in <code>dense</code> are set to <code>default_value</code>. If <code>sparse_values</code> is a
|
|
scalar, all sparse indices are set to this single value.</p><p>Indices should be sorted in lexicographic order, and indices must not
|
|
contain any repeats. If <code>validate_indices</code> is true, these properties
|
|
are checked during execution.</p></div></div><div class="top"><p class="src"><a name="v:sparseToDense-39-" class="def">sparseToDense'</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *) (v'3 :: * -> *) (v'4 :: * -> *). (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ([] *))) tindices)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 tindices</td><td class="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><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tindices</td><td class="doc"><p><strong>output_shape</strong>: 1-D. Shape of the dense output tensor.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'3 t</td><td class="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><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'4 t</td><td class="doc"><p><strong>default_value</strong>: Scalar value to set for indices not specified in
|
|
<code>sparse_indices</code>.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>dense</strong>: Dense output tensor of shape <code>output_shape</code>.</p></td></tr></table></div></div><div class="top"><p class="src"><a name="v:sub" class="def">sub</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *)))))))) t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>x</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t</td><td class="doc"><p><strong>y</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>z</strong></p></td></tr></table></div><div class="doc"><p>Returns x - y element-wise.</p><ul><li>NOTE*: <code>Sub</code> supports broadcasting. More about broadcasting
|
|
<a href="http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html">here</a></li></ul></div></div><div class="top"><p class="src"><a name="v:sub-39-" class="def">sub'</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *)))))))) t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>x</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t</td><td class="doc"><p><strong>y</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>z</strong></p></td></tr></table></div></div><div class="top"><p class="src"><a name="v:sum" class="def">sum</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *). (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))))))) t, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ([] *))) tidx)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>input</strong>: The tensor to reduce.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tidx</td><td class="doc"><p><strong>reduction_indices</strong>: The dimensions to reduce.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>output</strong>: The reduced tensor.</p></td></tr></table></div><div class="doc"><p>Computes the sum of elements across dimensions of a tensor.</p><p>Reduces <code>input</code> along the dimensions given in <code>reduction_indices</code>. Unless
|
|
<code>keep_dims</code> is true, the rank of the tensor is reduced by 1 for each entry in
|
|
<code>reduction_indices</code>. If <code>keep_dims</code> is true, the reduced dimensions are
|
|
retained with length 1.</p></div></div><div class="top"><p class="src"><a name="v:sum-39-" class="def">sum'</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *). (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>) ((:) * (<a href="../base-4.8.2.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>) ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int16">Int16</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int8">Int8</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a> ((:) * <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a> ((:) * <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a> ([] *))))))))))) t, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ([] *))) tidx)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>input</strong>: The tensor to reduce.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tidx</td><td class="doc"><p><strong>reduction_indices</strong>: The dimensions to reduce.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>output</strong>: The reduced tensor.</p></td></tr></table></div></div><div class="top"><p class="src"><a name="v:transpose" class="def">transpose</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *). (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ([] *))) tperm)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>x</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tperm</td><td class="doc"><p><strong>perm</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>y</strong></p></td></tr></table></div><div class="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><div class="top"><p class="src"><a name="v:transpose-39-" class="def">transpose'</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *) (v'2 :: * -> *). (<a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int32">Int32</a> ((:) * <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a> ([] *))) tperm)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>x</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 tperm</td><td class="doc"><p><strong>perm</strong></p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>y</strong></p></td></tr></table></div></div><div class="top"><p class="src"><a name="v:truncatedNormal" class="def">truncatedNormal</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> `[<a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a>, <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>, <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>]` a)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a></td><td class="doc"><p>Shape.</p></td></tr><tr><td class="src">-> m (<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Value">Value</a> a)</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Random tensor from the unit normal distribution with bounded values.</p><p>This is a type-restricted version of <code><a href="../tensorflow-core-ops-0.1.0.0/TensorFlow-GenOps-Core.html#v:truncatedNormal">truncatedNormal</a></code>.</p></div></div><div class="top"><p class="src"><a name="v:truncatedNormal-39-" class="def">truncatedNormal'</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> `[<a href="../base-4.8.2.0/Data-Word.html#t:Word16">Word16</a>, <a href="../base-4.8.2.0/Prelude.html#t:Double">Double</a>, <a href="../base-4.8.2.0/Prelude.html#t:Float">Float</a>]` a)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v <a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a></td><td class="doc"><p>Shape.</p></td></tr><tr><td class="src">-> m (<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Value">Value</a> a)</td><td class="doc empty"> </td></tr></table></div></div><div class="top"><p class="src"><a name="v:variable" class="def">variable</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (m' :: * -> *). (<a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m', <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> dtype)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:Shape">Shape</a></td><td class="doc"><p><strong>shape</strong></p></td></tr><tr><td class="src">-> m' (<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Ref">Ref</a> dtype)</td><td class="doc"><p><strong>ref</strong></p></td></tr></table></div><div class="doc"><p>Use VariableV2 instead.</p></div></div><div class="top"><p class="src"><a name="v:variable-39-" class="def">variable'</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (m' :: * -> *). (<a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m', <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> dtype)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:Shape">Shape</a></td><td class="doc"><p><strong>shape</strong></p></td></tr><tr><td class="src">-> m' (<a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Ref">Ref</a> dtype)</td><td class="doc"><p><strong>ref</strong></p></td></tr></table></div></div><div class="top"><p class="src"><a name="v:vector" class="def">vector</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a => [a] -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> a</p><div class="doc"><p>Create a constant vector.</p></div></div><div class="top"><p class="src"><a name="v:vector-39-" class="def">vector'</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a => <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -> [a] -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> a</p></div><div class="top"><p class="src"><a name="v:zeros" class="def">zeros</a> :: <span class="keyword">forall</span> a. (<a href="../base-4.8.2.0/Prelude.html#t:Num">Num</a> a, <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a) => <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:Shape">Shape</a> -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> a</p></div><div class="top"><p class="src"><a name="v:zerosLike" class="def">zerosLike</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>x</strong>: a tensor of type T.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>y</strong>: a tensor of the same shape and type as x but filled with zeros.</p></td></tr></table></div><div class="doc"><p>Returns a tensor of zeros with the same shape and type as x.</p></div></div><div class="top"><p class="src"><a name="v:zerosLike-39-" class="def">zerosLike'</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <span class="keyword">forall</span> (v'1 :: * -> *). <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="../tensorflow-0.1.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t</td><td class="doc"><p><strong>x</strong>: a tensor of type T.</p></td></tr><tr><td class="src">-> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> t</td><td class="doc"><p><strong>y</strong>: a tensor of the same shape and type as x but filled with zeros.</p></td></tr></table></div></div><div class="top"><p class="src"><a name="v:scalarize" class="def">scalarize</a> :: <a href="../tensorflow-0.1.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a => <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -> <a href="../tensorflow-0.1.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.1.0.0/TensorFlow-Build.html#t:Build">Build</a> a</p><div class="doc"><p>Reshape a N-D tensor down to a scalar.</p><p>See <code><a href="../tensorflow-core-ops-0.1.0.0/TensorFlow-GenOps-Core.html#v:reshape">reshape</a></code>.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.1</p></div></body></html> |