1
0
Fork 0
mirror of https://github.com/tensorflow/haskell.git synced 2024-11-23 11:29:43 +01:00
tensorflow-haskell/docs/haddock/tensorflow-ops-0.2.0.0/TensorFlow-Ops.html

30 lines
237 KiB
HTML
Raw Normal View History

2018-08-14 06:05:49 +02:00
<!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 src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/TensorFlow.Ops.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">tensorflow-ops-0.2.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="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#section.orphans">Orphan instances</a></li></ul></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, &quot;stateful&quot; ops like <code>variable</code> and <code>assign</code> return a
<code><a href="../tensorflow-0.2.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.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a></code>s are always rendered in the current <code><a href="../tensorflow-0.2.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 &lt;- variable []
w &lt;- 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.2.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.2.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="../base-4.10.1.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.10.1.0/Prelude.html#t:Double">Double</a>) ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="../base-4.10.1.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.10.1.0/Prelude.html#t:Float">Float</a>) ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../bytestring-0.10.8.2/Data-ByteString.html#t:ByteString">ByteString</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Int.html#t:Int16">Int16</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Int.html#t:Int32">Int32</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Int.html#t:Int64">Int64</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Int.html#t:Int8">Int8</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Word.html#t:Word16">Word16</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Word.html#t:Word8">Word8</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Prelude.html#t:Double">Double</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Prelude.html#t:Float">Float</a> ([] <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a>)))))))))))) t =&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t -&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.2.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.2.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="../base-4.10.1.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.10.1.0/Prelude.html#t:Double">Double</a>) ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="../base-4.10.1.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.10.1.0/Prelude.html#t:Float">Float</a>) ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../bytestring-0.10.8.2/Data-ByteString.html#t:ByteString">ByteString</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Int.html#t:Int16">Int16</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Int.html#t:Int32">Int32</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Int.html#t:Int64">Int64</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Int.html#t:Int8">Int8</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Word.html#t:Word16">Word16</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Word.html#t:Word8">Word8</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Prelude.html#t:Double">Double</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Prelude.html#t:Float">Float</a> ([] <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a>)))))))))))) t =&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 t -&
element 1: index (0, ..., 1)
...</p></div></div><div class="top"><p class="src"><a id="v:constant-39-" class="def">constant'</a> :: <span class="keyword">forall</span> a. <a href="../tensorflow-0.2.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a =&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Types.html#t:Shape">Shape</a> -&gt; [a] -&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.2.0.0/TensorFlow-Build.html#t:Build">Build</a> a <a href="src/TensorFlow.Ops.html#constant%27" class="link">Source</a> <a href="#v:constant-39-" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:equal" class="def">equal</a> <a href="#v:equal" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="../tensorflow-0.2.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="../base-4.10.1.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.10.1.0/Prelude.html#t:Double">Double</a>) ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="../base-4.10.1.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.10.1.0/Prelude.html#t:Float">Float</a>) ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Bool.html#t:Bool">Bool</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../bytestring-0.10.8.2/Data-ByteString.html#t:ByteString">ByteString</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Int.html#t:Int16">Int16</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Int.html#t:Int32">Int32</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Int.html#t:Int64">Int64</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Int.html#t:Int8">Int8</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Word.html#t:Word16">Word16</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Word.html#t:Word8">Word8</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Prelude.html#t:Double">Double</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Prelude.html#t:Float">Float</a> ([] <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a>))))))))))))) t</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; <a href="../tensorflow-0.2.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">-&gt; <a href="../tensorflow-0.2.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">-&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.2.0.0/TensorFlow-Build.html#t:Build">Build</a> <a href="../base-4.10.1.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 id="v:equal-39-" class="def">equal'</a> <a href="#v:equal-39-" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="../tensorflow-0.2.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="../base-4.10.1.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.10.1.0/Prelude.html#t:Double">Double</a>) ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="../base-4.10.1.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.10.1.0/Prelude.html#t:Float">Float</a>) ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Bool.html#t:Bool">Bool</a> ((:) <a href="..
Initialization happens next time session runs.</p></div></div><div class="top"><p class="src"><a id="v:initializedVariable-39-" class="def">initializedVariable'</a> :: (<a href="../tensorflow-0.2.0.0/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <a href="../tensorflow-0.2.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a) =&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -&gt; m (<a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Ref">Ref</a> a) <a href="src/TensorFlow.Ops.html#initializedVariable%27" class="link">Source</a> <a href="#v:initializedVariable-39-" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:zeroInitializedVariable" class="def">zeroInitializedVariable</a> :: (<a href="../tensorflow-0.2.0.0/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <a href="../tensorflow-0.2.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a, <a href="../base-4.10.1.0/Prelude.html#t:Num">Num</a> a) =&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Types.html#t:Shape">Shape</a> -&gt; m (<a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Ref">Ref</a> a) <a href="src/TensorFlow.Ops.html#zeroInitializedVariable" class="link">Source</a> <a href="#v:zeroInitializedVariable" class="selflink">#</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 id="v:zeroInitializedVariable-39-" class="def">zeroInitializedVariable'</a> :: (<a href="../tensorflow-0.2.0.0/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <a href="../tensorflow-0.2.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a, <a href="../base-4.10.1.0/Prelude.html#t:Num">Num</a> a) =&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Types.html#t:Shape">Shape</a> -&gt; m (<a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Ref">Ref</a> a) <a href="src/TensorFlow.Ops.html#zeroInitializedVariable%27" class="link">Source</a> <a href="#v:zeroInitializedVariable-39-" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:fill" class="def">fill</a> <a href="#v:fill" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="../tensorflow-0.2.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t, <a href="../tensorflow-0.2.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Int.html#t:Int32">Int32</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Int.html#t:Int64">Int64</a> ([] <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a>))) index_type)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'1 index_type</td><td class="doc"><p><strong>dims</strong></p></td></tr><tr><td class="src">-&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v'2 t</td><td class="doc"><p><strong>value</strong></p></td></tr><tr><td class="src">-&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.2.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 id="v:fill-39-" class="def">fill'</a> <a href="#v:fill-39-" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="../tensorflow-0.2.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t, <a href="../tensorflow-0.2.0.0/TensorFlow-T
See <code><a href="../tensorflow-core-ops-0.2.0.0/TensorFlow-GenOps-Core.html#v:mean">mean</a></code></p></div></div><div class="top"><p class="src"><a id="v:reduceMean-39-" class="def">reduceMean'</a> :: (<a href="../tensorflow-0.2.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a, <a href="../tensorflow-0.2.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> '[<a href="../base-4.10.1.0/Prelude.html#t:Double">Double</a>, <a href="../base-4.10.1.0/Prelude.html#t:Float">Float</a>, <a href="../base-4.10.1.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.10.1.0/Prelude.html#t:Float">Float</a>, <a href="../base-4.10.1.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.10.1.0/Prelude.html#t:Double">Double</a>] a) =&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.2.0.0/TensorFlow-Build.html#t:Build">Build</a> a <a href="src/TensorFlow.Ops.html#reduceMean%27" class="link">Source</a> <a href="#v:reduceMean-39-" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:relu" class="def">relu</a> <a href="#v:relu" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="../tensorflow-0.2.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Int.html#t:Int16">Int16</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Int.html#t:Int32">Int32</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Int.html#t:Int64">Int64</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Int.html#t:Int8">Int8</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Word.html#t:Word16">Word16</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Word.html#t:Word32">Word32</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Word.html#t:Word64">Word64</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Word.html#t:Word8">Word8</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Prelude.html#t:Double">Double</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Prelude.html#t:Float">Float</a> ([] <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a>))))))))))) t</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; <a href="../tensorflow-0.2.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">-&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.2.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 id="v:relu-39-" class="def">relu'</a> <a href="#v:relu-39-" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="../tensorflow-0.2.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Int.html#t:Int16">Int16</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Int.html#t:Int32">Int32</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Int.html#t:Int64">Int64</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Int.html#t:Int8">Int8</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Word.html#t:Word16">Word16</a>
tensor name than the variable.</p></div></div><div class="top"><p class="src"><a id="v:save" class="def">save</a> <a href="src/TensorFlow.Ops.html#save" class="link">Source</a> <a href="#v:save" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Rendered">Rendered</a> (<a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v), <a href="../tensorflow-0.2.0.0/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <a href="../tensorflow-0.2.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; <a href="../bytestring-0.10.8.2/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>File path.</p></td></tr><tr><td class="src">-&gt; [<a href="../tensorflow-0.2.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">-&gt; m <a href="../tensorflow-0.2.0.0/TensorFlow-Output.html#t:ControlNode">ControlNode</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div><div class="top"><p class="src"><a id="v:scalar" class="def">scalar</a> :: <a href="../tensorflow-0.2.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a =&gt; a -&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.2.0.0/TensorFlow-Build.html#t:Build">Build</a> a <a href="src/TensorFlow.Ops.html#scalar" class="link">Source</a> <a href="#v:scalar" class="selflink">#</a></p><div class="doc"><p>Create a constant scalar.</p></div></div><div class="top"><p class="src"><a id="v:scalar-39-" class="def">scalar'</a> :: <a href="../tensorflow-0.2.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> a =&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -&gt; a -&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.2.0.0/TensorFlow-Build.html#t:Build">Build</a> a <a href="src/TensorFlow.Ops.html#scalar%27" class="link">Source</a> <a href="#v:scalar-39-" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:shape" class="def">shape</a> :: <a href="../tensorflow-0.2.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t =&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v t -&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.2.0.0/TensorFlow-Build.html#t:Build">Build</a> <a href="../base-4.10.1.0/Data-Int.html#t:Int32">Int32</a> <a href="src/TensorFlow.Ops.html#shape" class="link">Source</a> <a href="#v:shape" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:shape-39-" class="def">shape'</a> :: <a href="../tensorflow-0.2.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t =&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v t -&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.2.0.0/TensorFlow-Build.html#t:Build">Build</a> <a href="../base-4.10.1.0/Data-Int.html#t:Int32">Int32</a> <a href="src/TensorFlow.Ops.html#shape%27" class="link">Source</a> <a href="#v:shape-39-" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:sign" class="def">sign</a> <a href="#v:sign" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="../tensorflow-0.2.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="../base-4.10.1.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.10.1.0/Prelude.html#t:Double">Double</a>) ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> (<a href="../base-4.10.1.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.10.1.0/Prelude.html#t:Float">Float</a>) ((:)
Seee <code><a href="../tensorflow-core-ops-0.2.0.0/TensorFlow-GenOps-Core.html#v:sum">sum</a></code></p></div></div><div class="top"><p class="src"><a id="v:reduceSum-39-" class="def">reduceSum'</a> :: <a href="../tensorflow-0.2.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> '[<a href="../base-4.10.1.0/Prelude.html#t:Double">Double</a>, <a href="../base-4.10.1.0/Prelude.html#t:Float">Float</a>, <a href="../base-4.10.1.0/Data-Int.html#t:Int32">Int32</a>, <a href="../base-4.10.1.0/Data-Int.html#t:Int64">Int64</a>, <a href="../base-4.10.1.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.10.1.0/Prelude.html#t:Float">Float</a>, <a href="../base-4.10.1.0/Data-Complex.html#t:Complex">Complex</a> <a href="../base-4.10.1.0/Prelude.html#t:Double">Double</a>] a =&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a> -&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.2.0.0/TensorFlow-Build.html#t:Build">Build</a> a <a href="src/TensorFlow.Ops.html#reduceSum%27" class="link">Source</a> <a href="#v:reduceSum-39-" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:transpose" class="def">transpose</a> <a href="#v:transpose" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="../tensorflow-0.2.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t, <a href="../tensorflow-0.2.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Int.html#t:Int32">Int32</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Int.html#t:Int64">Int64</a> ([] <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a>))) tperm)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; <a href="../tensorflow-0.2.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">-&gt; <a href="../tensorflow-0.2.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">-&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.2.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 id="v:transpose-39-" class="def">transpose'</a> <a href="#v:transpose-39-" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="../tensorflow-0.2.0.0/TensorFlow-Types.html#t:TensorType">TensorType</a> t, <a href="../tensorflow-0.2.0.0/TensorFlow-Types.html#t:OneOf">OneOf</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Int.html#t:Int32">Int32</a> ((:) <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a> <a href="../base-4.10.1.0/Data-Int.html#t:Int64">Int64</a> ([] <a href="../base-4.10.1.0/Data-Kind.html#t:-42-">*</a>))) tperm)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-BuildOp.html#t:OpParams">OpParams</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="../tensorflow-0.2.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">-&gt; <a href="../tensorflow-0.2.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">-&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> <a href="../tensorflow-0.2.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 id="v:truncatedNormal" class="def">truncatedNormal</a> <a href="
and Tensor.</p><p>The indirect constraint &quot;v ~ Value&quot; helps disambiguate types, for example in
&quot;neg 1 :: Tensor Value Float&quot;, it helps find the type of the subexpression
&quot;1&quot;.</p></td></tr><tr><td colspan="2"><div id="section.i:o:ic:Num:Num:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-43-">(+)</a> :: <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a <a href="#v:-43-" class="selflink">#</a></p><p class="src"><a href="#v:-45-">(-)</a> :: <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a <a href="#v:-45-" class="selflink">#</a></p><p class="src"><a href="#v:-42-">(*)</a> :: <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a <a href="#v:-42-" class="selflink">#</a></p><p class="src"><a href="#v:negate">negate</a> :: <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a <a href="#v:negate" class="selflink">#</a></p><p class="src"><a href="#v:abs">abs</a> :: <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a <a href="#v:abs" class="selflink">#</a></p><p class="src"><a href="#v:signum">signum</a> :: <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a -&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a <a href="#v:signum" class="selflink">#</a></p><p class="src"><a href="#v:fromInteger">fromInteger</a> :: <a href="../base-4.10.1.0/Prelude.html#t:Integer">Integer</a> -&gt; <a href="../tensorflow-0.2.0.0/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v a <a href="#v:fromInteger" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.18.1</p></div></body></html>