<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type"content="text/html; charset=UTF-8"/><title>TensorFlow.Gradient</title><linkhref="ocean.css"rel="stylesheet"type="text/css"title="Ocean"/><scriptsrc="haddock-util.js"type="text/javascript"></script><scriptsrc="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"type="text/javascript"></script><scripttype="text/javascript">//<![CDATA[
</script></head><body><divid="package-header"><ulclass="links"id="page-menu"><li><ahref="src/TensorFlow.Gradient.html">Source</a></li><li><ahref="index.html">Contents</a></li><li><ahref="doc-index.html">Index</a></li></ul><pclass="caption">tensorflow-ops-0.1.0.0: Friendly layer around TensorFlow bindings.</p></div><divid="content"><divid="module-header"><tableclass="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><pclass="caption">TensorFlow.Gradient</p></div><divid="synopsis"><pid="control.syn"class="caption expander"onclick="toggleSection('syn')">Synopsis</p><ulid="section.syn"class="hide"onclick="toggleSection('syn')"><liclass="src short"><spanclass="keyword">type</span><ahref="#t:GradientCompatible">GradientCompatible</a> a = (<ahref="../base-4.9.1.0/Prelude.html#t:Num">Num</a> a, <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:OneOf">OneOf</a> '[<ahref="../base-4.9.1.0/Prelude.html#t:Float">Float</a>, <ahref="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a><ahref="../base-4.9.1.0/Prelude.html#t:Float">Float</a>, <ahref="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a><ahref="../base-4.9.1.0/Prelude.html#t:Double">Double</a>] a)</li><liclass="src short"><ahref="#v:gradients">gradients</a> :: <spanclass="keyword">forall</span> a v1 t m. (<ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Rendered">Rendered</a> t, <ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:ToTensor">ToTensor</a> t, <ahref="TensorFlow-Gradient.html#t:GradientCompatible">GradientCompatible</a> a) =><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v1 a -> [t a] -> m [<ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Value">Value</a> a]</li></ul></div><divid="interface"><h1>Documentation</h1><divclass="top"><pclass="src"><spanclass="keyword">type</span><aid="t:GradientCompatible"class="def">GradientCompatible</a> a = (<ahref="../base-4.9.1.0/Prelude.html#t:Num">Num</a> a, <ahref="../tensorflow-0.1.0.2/TensorFlow-Types.html#t:OneOf">OneOf</a> '[<ahref="../base-4.9.1.0/Prelude.html#t:Float">Float</a>, <ahref="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a><ahref="../base-4.9.1.0/Prelude.html#t:Float">Float</a>, <ahref="../base-4.9.1.0/Data-Complex.html#t:Complex">Complex</a><ahref="../base-4.9.1.0/Prelude.html#t:Double">Double</a>] a) <ahref="src/TensorFlow.Gradient.html#GradientCompatible"class="link">Source</a><ahref="#t:GradientCompatible"class="selflink">#</a></p></div><divclass="top"><pclass="src"><aid="v:gradients"class="def">gradients</a><ahref="src/TensorFlow.Gradient.html#gradients"class="link">Source</a><ahref="#v:gradients"class="selflink">#</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: (<ahref="../tensorflow-0.1.0.2/TensorFlow-Build.html#t:MonadBuild">MonadBuild</a> m, <ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Rendered">Rendered</a> t, <ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:ToTensor">ToTensor</a> t, <ahref="TensorFlow-Gradient.html#t:GradientCompatible">GradientCompatible</a> a)</td><tdclass="doc empty"> </td></tr><tr><tdclass="src">=><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a> v1 a</td><tdclass="doc"><p>The output of the graph.</p></td></tr><tr><tdclass="src">-> [t a]</td><tdclass="doc"><p>Tensors for which gradients are computed.</p></td></tr><tr><tdclass="src">-> m [<ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Tensor">Tensor</a><ahref="../tensorflow-0.1.0.2/TensorFlow-Tensor.html#t:Value">Value</a> a]</td><tdclass="doc empty"> </td></tr></table></div><divclass="doc"><p>Gradient of <code>y</code> w.r.t. each element of <code>xs</code>.</p></div></div></div></div><divid="footer"><p>Produced by <ahref="http://www.haskell.org/