1
0
Fork 0
mirror of https://github.com/tensorflow/haskell.git synced 2024-11-16 16:09:43 +01:00
tensorflow-haskell/docs/haddock/tensorflow-opgen-0.1.0.0/TensorFlow-OpGen.html

13 lines
4.5 KiB
HTML
Raw Normal View History

2017-10-20 05:56:38 +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.OpGen</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_TensorFlow-OpGen.html");};
//]]>
2017-10-20 05:56:38 +02:00
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/TensorFlow.OpGen.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-opgen-0.1.0.0: Code generation for TensorFlow operations.</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.OpGen</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Rendering of TensorFlow operations as Haskell functions.</p><p>The basic type signature generated for each op is:</p><pre>{constraints} =&gt; {mandatory attrs} -&gt; {input tensors} -&gt; {output tensors}</pre><p>where:</p><ul><li><code>{mandatory attrs}</code> is of the form <code>A_1 -&gt; ... -&gt; A_N</code>, where each <code>A</code> is an
2016-11-23 19:55:35 +01:00
op attribute that doesn't have a default and can't be inferred from other
inputs.</li><li><code>{constraints}</code> restrict the type parameters of the input and output tensors
(for example: <code>TensorType</code> or <code>OneOf</code>).</li><li><code>{input tensors}</code> is of the form <code>T_1 -&gt; ... -&gt; T_N</code>, where each <code>T</code> is of
2017-10-20 05:56:38 +02:00
the form <code>Tensor Ref a</code> or <code>Tensor v a</code> (or a list of one of those types),
and <code>a</code> is either a concrete type or a (constrained) type variable.</li><li><code>{output tensors}</code> is of the form <code>(T_1,...,T_N)</code> for &quot;pure&quot; ops, and
2016-11-23 19:55:35 +01:00
<code>Build (T_1,...,T_N)</code> for &quot;stateful&quot; ops. An op is considered &quot;stateful&quot; if
2017-10-20 05:56:38 +02:00
it takes a <code>Tensor Ref</code> or <code>Tensor v ResourceHandle</code> as input, or if it's
explicitly marked &quot;Stateful&quot; in its <code>REGISTER_OP</code> definition. (If there
are no outputs, it is either <code>ControlNode</code> or <code>Build ControlNode</code>.)</li></ul></div></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:OpGenFlags" class="def">OpGenFlags</a> <a href="src/TensorFlow.OpGen.html#OpGenFlags" class="link">Source</a> <a href="#t:OpGenFlags" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:OpGenFlags" class="def">OpGenFlags</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:outputFile" class="def">outputFile</a> :: <a href="../base-4.9.1.0/Data-String.html#t:String">String</a></dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:prefix" class="def">prefix</a> :: <a href="../base-4.9.1.0/Data-String.html#t:String">String</a></dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:excludeList" class="def">excludeList</a> :: <a href="../base-4.9.1.0/Data-String.html#t:String">String</a></dfn><div class="doc empty">&nbsp;</div></li></ul></div></td></tr></table></div></div><div class="top"><p class="src"><a id="v:docOpList" class="def">docOpList</a> :: <a href="TensorFlow-OpGen.html#t:OpGenFlags">OpGenFlags</a> -&gt; <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-OpDef.html#t:OpList">OpList</a> -&gt; Doc <a href="src/TensorFlow.OpGen.html#docOpList" class="link">Source</a> <a href="#v:docOpList" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:flagParser" class="def">flagParser</a> :: Parser <a href="TensorFlow-OpGen.html#t:OpGenFlags">OpGenFlags</a> <a href="src/TensorFlow.OpGen.html#flagParser" class="link">Source</a> <a href="#v:flagParser" class="selflink">#</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.3</p></div></body></html>