1
0
Fork 0
mirror of https://github.com/tensorflow/haskell.git synced 2024-11-24 03:49:44 +01:00
tensorflow-haskell/docs/haddock/tensorflow-0.1.0.0/TensorFlow-Internal-FFI.html
2016-11-23 10:55:35 -08:00

8 lines
No EOL
13 KiB
HTML

<!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.Internal.FFI</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-Internal-FFI.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/TensorFlow-Internal-FFI.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-0.1.0.0: 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.Internal.FFI</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Internal helper.</a></li></ul></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"><span class="keyword">data</span> <a href="#t:TensorFlowException">TensorFlowException</a> = <a href="#v:TensorFlowException">TensorFlowException</a> Code <a href="../text-1.2.2.1/Data-Text.html#t:Text">Text</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:Session">Session</a></li><li class="src short"><a href="#v:withSession">withSession</a> :: (SessionOptions -&gt; <a href="../base-4.8.2.0/System-IO.html#t:IO">IO</a> ()) -&gt; ((<a href="../base-4.8.2.0/System-IO.html#t:IO">IO</a> () -&gt; <a href="../base-4.8.2.0/System-IO.html#t:IO">IO</a> ()) -&gt; <a href="TensorFlow-Internal-FFI.html#t:Session">Session</a> -&gt; <a href="../base-4.8.2.0/System-IO.html#t:IO">IO</a> a) -&gt; <a href="../base-4.8.2.0/System-IO.html#t:IO">IO</a> a</li><li class="src short"><a href="#v:extendGraph">extendGraph</a> :: <a href="TensorFlow-Internal-FFI.html#t:Session">Session</a> -&gt; <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-Graph.html#t:GraphDef">GraphDef</a> -&gt; <a href="../base-4.8.2.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:run">run</a> :: <a href="TensorFlow-Internal-FFI.html#t:Session">Session</a> -&gt; [(<a href="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="TensorFlow-Internal-FFI.html#t:TensorData">TensorData</a>)] -&gt; [<a href="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -&gt; [<a href="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -&gt; <a href="../base-4.8.2.0/System-IO.html#t:IO">IO</a> [<a href="TensorFlow-Internal-FFI.html#t:TensorData">TensorData</a>]</li><li class="src short"><span class="keyword">data</span> <a href="#t:TensorData">TensorData</a> = <a href="#v:TensorData">TensorData</a> {<ul class="subs"><li><a href="#v:tensorDataDimensions">tensorDataDimensions</a> :: [<a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a>]</li><li><a href="#v:tensorDataType">tensorDataType</a> :: !<a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-Types.html#t:DataType">DataType</a></li><li><a href="#v:tensorDataBytes">tensorDataBytes</a> :: !(<a href="../vector-0.11.0.0/Data-Vector-Storable.html#t:Vector">Vector</a> <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a>)</li></ul>}</li><li class="src short"><a href="#v:setSessionConfig">setSessionConfig</a> :: <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Protobuf-Config.html#t:ConfigProto">ConfigProto</a> -&gt; SessionOptions -&gt; <a href="../base-4.8.2.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:setSessionTarget">setSessionTarget</a> :: <a href="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; SessionOptions -&gt; <a href="../base-4.8.2.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:getAllOpList">getAllOpList</a> :: <a href="../base-4.8.2.0/System-IO.html#t:IO">IO</a> <a href="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:useProtoAsVoidPtrLen">useProtoAsVoidPtrLen</a> :: (<a href="../proto-lens-0.1.0.4/Data-ProtoLens-Message.html#t:Message">Message</a> msg, <a href="../base-4.8.2.0/Prelude.html#t:Integral">Integral</a> c, <a href="../base-4.8.2.0/Text-Show.html#t:Show">Show</a> c, <a href="../base-4.8.2.0/Data-Bits.html#t:Bits">Bits</a> c) =&gt; msg -&gt; (<a href="../base-4.8.2.0/Foreign-Ptr.html#t:Ptr">Ptr</a> b -&gt; c -&gt; <a href="../base-4.8.2.0/System-IO.html#t:IO">IO</a> a) -&gt; <a href="../base-4.8.2.0/System-IO.html#t:IO">IO</a> a</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:TensorFlowException" class="def">TensorFlowException</a> <a href="src/TensorFlow-Internal-FFI.html#TensorFlowException" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:TensorFlowException" class="def">TensorFlowException</a> Code <a href="../text-1.2.2.1/Data-Text.html#t:Text">Text</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:TensorFlowException" class="caption collapser" onclick="toggleSection('i:TensorFlowException')">Instances</p><div id="section.i:TensorFlowException" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="../base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> <a href="TensorFlow-Internal-FFI.html#t:TensorFlowException">TensorFlowException</a></span> <a href="src/TensorFlow-Internal-FFI.html#line-64" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="../base-4.8.2.0/Text-Show.html#t:Show">Show</a> <a href="TensorFlow-Internal-FFI.html#t:TensorFlowException">TensorFlowException</a></span> <a href="src/TensorFlow-Internal-FFI.html#line-64" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="../base-4.8.2.0/Control-Exception-Base.html#t:Exception">Exception</a> <a href="TensorFlow-Internal-FFI.html#t:TensorFlowException">TensorFlowException</a></span> <a href="src/TensorFlow-Internal-FFI.html#line-66" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Session" class="def">Session</a> <a href="src/TensorFlow-Internal-Raw.html#Session" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:withSession" class="def">withSession</a> <a href="src/TensorFlow-Internal-FFI.html#withSession" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (SessionOptions -&gt; <a href="../base-4.8.2.0/System-IO.html#t:IO">IO</a> ())</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; ((<a href="../base-4.8.2.0/System-IO.html#t:IO">IO</a> () -&gt; <a href="../base-4.8.2.0/System-IO.html#t:IO">IO</a> ()) -&gt; <a href="TensorFlow-Internal-FFI.html#t:Session">Session</a> -&gt; <a href="../base-4.8.2.0/System-IO.html#t:IO">IO</a> a)</td><td class="doc"><p>The action can spawn concurrent tasks which will
be canceled before withSession returns.</p></td></tr><tr><td class="src">-&gt; <a href="../base-4.8.2.0/System-IO.html#t:IO">IO</a> a</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Runs the given action after creating a session with options
populated by the given optionSetter.</p></div></div><div class="top"><p class="src"><a name="v:extendGraph" class="def">extendGraph</a> :: <a href="TensorFlow-Internal-FFI.html#t:Session">Session</a> -&gt; <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-Graph.html#t:GraphDef">GraphDef</a> -&gt; <a href="../base-4.8.2.0/System-IO.html#t:IO">IO</a> () <a href="src/TensorFlow-Internal-FFI.html#extendGraph" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:run" class="def">run</a> <a href="src/TensorFlow-Internal-FFI.html#run" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="TensorFlow-Internal-FFI.html#t:Session">Session</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; [(<a href="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="TensorFlow-Internal-FFI.html#t:TensorData">TensorData</a>)]</td><td class="doc"><p>Feeds.</p></td></tr><tr><td class="src">-&gt; [<a href="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><td class="doc"><p>Fetches.</p></td></tr><tr><td class="src">-&gt; [<a href="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><td class="doc"><p>Targets.</p></td></tr><tr><td class="src">-&gt; <a href="../base-4.8.2.0/System-IO.html#t:IO">IO</a> [<a href="TensorFlow-Internal-FFI.html#t:TensorData">TensorData</a>]</td><td class="doc empty">&nbsp;</td></tr></table></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:TensorData" class="def">TensorData</a> <a href="src/TensorFlow-Internal-FFI.html#TensorData" class="link">Source</a></p><div class="doc"><p>All of the data needed to represent a tensor.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:TensorData" class="def">TensorData</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:tensorDataDimensions" class="def">tensorDataDimensions</a> :: [<a href="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a>]</dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:tensorDataType" class="def">tensorDataType</a> :: !<a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-Types.html#t:DataType">DataType</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:tensorDataBytes" class="def">tensorDataBytes</a> :: !(<a href="../vector-0.11.0.0/Data-Vector-Storable.html#t:Vector">Vector</a> <a href="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a>)</dt><dd class="doc empty">&nbsp;</dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:TensorData" class="caption collapser" onclick="toggleSection('i:TensorData')">Instances</p><div id="section.i:TensorData" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="../base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> <a href="TensorFlow-Internal-FFI.html#t:TensorData">TensorData</a></span> <a href="src/TensorFlow-Internal-FFI.html#line-74" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="../base-4.8.2.0/Text-Show.html#t:Show">Show</a> <a href="TensorFlow-Internal-FFI.html#t:TensorData">TensorData</a></span> <a href="src/TensorFlow-Internal-FFI.html#line-74" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:setSessionConfig" class="def">setSessionConfig</a> :: <a href="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Protobuf-Config.html#t:ConfigProto">ConfigProto</a> -&gt; SessionOptions -&gt; <a href="../base-4.8.2.0/System-IO.html#t:IO">IO</a> () <a href="src/TensorFlow-Internal-FFI.html#setSessionConfig" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:setSessionTarget" class="def">setSessionTarget</a> :: <a href="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; SessionOptions -&gt; <a href="../base-4.8.2.0/System-IO.html#t:IO">IO</a> () <a href="src/TensorFlow-Internal-FFI.html#setSessionTarget" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:getAllOpList" class="def">getAllOpList</a> :: <a href="../base-4.8.2.0/System-IO.html#t:IO">IO</a> <a href="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> <a href="src/TensorFlow-Internal-FFI.html#getAllOpList" class="link">Source</a></p><div class="doc"><p>Returns the serialized OpList of all OpDefs defined in this
address space.</p></div></div><h1 id="g:1">Internal helper.</h1><div class="top"><p class="src"><a name="v:useProtoAsVoidPtrLen" class="def">useProtoAsVoidPtrLen</a> :: (<a href="../proto-lens-0.1.0.4/Data-ProtoLens-Message.html#t:Message">Message</a> msg, <a href="../base-4.8.2.0/Prelude.html#t:Integral">Integral</a> c, <a href="../base-4.8.2.0/Text-Show.html#t:Show">Show</a> c, <a href="../base-4.8.2.0/Data-Bits.html#t:Bits">Bits</a> c) =&gt; msg -&gt; (<a href="../base-4.8.2.0/Foreign-Ptr.html#t:Ptr">Ptr</a> b -&gt; c -&gt; <a href="../base-4.8.2.0/System-IO.html#t:IO">IO</a> a) -&gt; <a href="../base-4.8.2.0/System-IO.html#t:IO">IO</a> a <a href="src/TensorFlow-Internal-FFI.html#useProtoAsVoidPtrLen" class="link">Source</a></p><div class="doc"><p>Serializes the given msg and provides it as (ptr,len) argument
to the given action.</p></div></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>