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

14 lines
4.4 KiB
HTML
Raw Normal View History

<!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 type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_TensorFlow-OpGen.html");};
//]]>
2016-11-23 19:55:35 +01: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
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
the form <code>Tensor Ref a</code>, <code>Tensor v a</code> or <code>ResourceHandle 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
<code>Build (T_1,...,T_N)</code> for &quot;stateful&quot; ops. An op is considered &quot;stateful&quot; if
it takes a <code>Tensor Ref</code> or <code>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 name="t:OpGenFlags" class="def">OpGenFlags</a> <a href="src/TensorFlow-OpGen.html#OpGenFlags" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="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><dl><dt class="src"><a name="v:outputFile" class="def">outputFile</a> :: <a href="../base-4.8.2.0/Data-String.html#t:String">String</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:prefix" class="def">prefix</a> :: <a href="../base-4.8.2.0/Data-String.html#t:String">String</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:excludeList" class="def">excludeList</a> :: <a href="../base-4.8.2.0/Data-String.html#t:String">String</a></dt><dd class="doc empty">&nbsp;</dd></dl><div class="clear"></div></div></td></tr></table></div></div><div class="top"><p class="src"><a name="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; <a href="../mainland-pretty-0.4.1.4/Text-PrettyPrint-Mainland.html#t:Doc">Doc</a> <a href="src/TensorFlow-OpGen.html#docOpList" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:flagParser" class="def">flagParser</a> :: <a href="../optparse-applicative-0.12.1.0/Options-Applicative-Types.html#t:Parser">Parser</a> <a href="TensorFlow-OpGen.html#t:OpGenFlags">OpGenFlags</a> <a href="src/TensorFlow-OpGen.html#flagParser" class="link">Source</a></p></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>