<!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.OpGen</title><linkhref="ocean.css"rel="stylesheet"type="text/css"title="Ocean"/><scriptsrc="haddock-util.js"type="text/javascript"></script><scripttype="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_TensorFlow-OpGen.html");};
</script></head><body><divid="package-header"><ulclass="links"id="page-menu"><li><ahref="src/TensorFlow-OpGen.html">Source</a></li><li><ahref="index.html">Contents</a></li><li><ahref="doc-index.html">Index</a></li></ul><pclass="caption">tensorflow-opgen-0.1.0.0: Code generation for TensorFlow operations.</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.OpGen</p></div><divid="description"><pclass="caption">Description</p><divclass="doc"><p>Rendering of TensorFlow operations as Haskell functions.</p><p>The basic type signature generated for each op is:</p><pre>{constraints} => {mandatory attrs} -> {input tensors} -> {output tensors}</pre><p>where:</p><ul><li><code>{mandatory attrs}</code> is of the form <code>A_1 -> ... -> 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 -> ... -> 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 "pure" ops, and
<code>Build (T_1,...,T_N)</code> for "stateful" ops. An op is considered "stateful" if
it takes a <code>Tensor Ref</code> or <code>ResourceHandle</code> as input, or if it's explicitly
marked "Stateful" 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><divid="interface"><h1>Documentation</h1><divclass="top"><pclass="src"><spanclass="keyword">data</span><aname="t:OpGenFlags"class="def">OpGenFlags</a><ahref="src/TensorFlow-OpGen.html#OpGenFlags"class="link">Source</a></p><divclass="subs constructors"><pclass="caption">Constructors</p><table><tr><tdclass="src"><aname="v:OpGenFlags"class="def">OpGenFlags</a></td><tdclass="doc empty"> </td></tr><tr><tdcolspan="2"><divclass="subs fields"><pclass="caption">Fields</p><dl><dtclass="src"><aname="v:outputFile"class="def">outputFile</a> :: <ahref="../base-4.8.2.0/Data-String.html#t:String">String</a></dt><ddclass="doc empty"> </dd><dtclass="src"><aname="v:prefix"class="def">prefix</a> :: <ahref="../base-4.8.2.0/Data-String.html#t:String">String</a></dt><ddclass="doc empty"> </dd><dtclass="src"><aname="v:excludeList"class="def">excludeList</a> :: <ahref="../base-4.8.2.0/Data-String.html#t:String">String</a></dt><ddclass="doc empty"> </dd></dl><divclass="clear"></div></div></td></tr></table></div></div><divclass="top"><pclass="src"><aname="v:docOpList"class="def">docOpList</a> :: <ahref="TensorFlow-OpGen.html#t:OpGenFlags">OpGenFlags</a> -><ahref="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-OpDef.html#t:OpList">OpList</a> -><ahref="../mainland-pretty-0.4.1.4/Text-PrettyPrint-Mainland.html#t:Doc">Doc</a><ahref="src/TensorFlow-OpGen.html#docOpList"class="link">Source</a></p></div><divclass="top"><pclass="src"><aname="v:flagParser"class="def">flagParser</a> :: <ahref="../optparse-applicative-0.12.1.0/Options-Applicative-Types.html#t:Parser">Parser</a><ahref="TensorFlow-OpGen.html#t:OpGenFlags">OpGenFlags</a><ahref="src/TensorFlow-OpGen.html#flagParser"class="link">Source</a></p></div></div></div><divid="footer"><p>Produced by <ahref="http://www.haskell.org/haddock/">Haddock</a> version 2.16.1</p></div></body></html>