<!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.Internal.FFI</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-Internal-FFI.html");};
be canceled before withSession returns.</p></td></tr><tr><tdclass="src">-><ahref="../base-4.8.2.0/System-IO.html#t:IO">IO</a> a</td><tdclass="doc empty"> </td></tr></table></div><divclass="doc"><p>Runs the given action after creating a session with options
populated by the given optionSetter.</p></div></div><divclass="top"><pclass="src"><aname="v:extendGraph"class="def">extendGraph</a> :: <ahref="TensorFlow-Internal-FFI.html#t:Session">Session</a> -><ahref="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Framework-Graph.html#t:GraphDef">GraphDef</a> -><ahref="../base-4.8.2.0/System-IO.html#t:IO">IO</a> ()</p></div><divclass="top"><pclass="src"><aname="v:run"class="def">run</a></p><divclass="subs arguments"><pclass="caption">Arguments</p><table><tr><tdclass="src">:: <ahref="TensorFlow-Internal-FFI.html#t:Session">Session</a></td><tdclass="doc empty"> </td></tr><tr><tdclass="src">-> [(<ahref="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>, <ahref="TensorFlow-Internal-FFI.html#t:TensorData">TensorData</a>)]</td><tdclass="doc"><p>Feeds.</p></td></tr><tr><tdclass="src">-> [<ahref="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><tdclass="doc"><p>Fetches.</p></td></tr><tr><tdclass="src">-> [<ahref="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><tdclass="doc"><p>Targets.</p></td></tr><tr><tdclass="src">-><ahref="../base-4.8.2.0/System-IO.html#t:IO">IO</a> [<ahref="TensorFlow-Internal-FFI.html#t:TensorData">TensorData</a>]</td><tdclass="doc empty"> </td></tr></table></div></div><divclass="top"><pclass="src"><spanclass="keyword">data</span><aname="t:TensorData"class="def">TensorData</a></p><divclass="doc"><p>All of the data needed to represent a tensor.</p></div><divclass="subs constructors"><pclass="caption">Constructors</p><table><tr><tdclass="src"><aname="v:TensorData"class="def">TensorData</a></td><tdclass="doc empty"> </td></tr><tr><tdcolspan="2"><divclass="subs fields"><pclass="caption">Fields</p><dl><dtclass="src"><aname="v:tensorDataDimensions"class="def">tensorDataDimensions</a> :: [<ahref="../base-4.8.2.0/Data-Int.html#t:Int64">Int64</a>]</dt><ddclass="doc empty"> </dd><dtclass="src"><aname="v:tensorDataType"class="def">tensorDataType</a> :: !<ahref="TensorFlow-Types.html#t:DataType">DataType</a></dt><ddclass="doc empty"> </dd><dtclass="src"><aname="v:tensorDataBytes"class="def">tensorDataBytes</a> :: !(Vector <ahref="../base-4.8.2.0/Data-Word.html#t:Word8">Word8</a>)</dt><ddclass="doc empty"> </dd></dl><divclass="clear"></div></div></td></tr></table></div><divclass="subs instances"><pid="control.i:TensorData"class="caption collapser"onclick="toggleSection('i:TensorData')">Instances</p><divid="section.i:TensorData"class="show"><table><tr><tdclass="src clearfix"><spanclass="inst-left"><ahref="../base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a><ahref="TensorFlow-Internal-FFI.html#t:TensorData">TensorData</a></span></td><tdclass="doc empty"> </td></tr><tr><tdclass="src clearfix"><spanclass="inst-left"><ahref="../base-4.8.2.0/Text-Show.html#t:Show">Show</a><ahref="TensorFlow-Internal-FFI.html#t:TensorData">TensorData</a></span></td><tdclass="doc empty"> </td></tr></table></div></div></div><divclass="top"><pclass="src"><aname="v:setSessionConfig"class="def">setSessionConfig</a> :: <ahref="../tensorflow-proto-0.1.0.0/Proto-Tensorflow-Core-Protobuf-Config.html#t:ConfigProto">ConfigProto</a> -> SessionOptions -><ahref="../base-4.8.2.0/System-IO.html#t:IO">IO</a> ()</p></div><divclass="top"><pclass="src"><aname="v:setSessionTarget"class="def">setSessionTarget</a> :: <ahref="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> SessionOptions -><ahref="../base-4.8.2.0/System-IO.html#t:IO">IO</a> ()</p></div><divclass="top"><pclass="src"><aname="v:getAllOpList"class="def">getAllOpList</a> :: <ahref="../base-4.8.2.0/System-IO.html#t:IO">IO</a><ahref="../bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></p><divclass="doc"><p>Returns the serialized OpList of all OpDefs defined in this
address space.</p></div></div><h1id="g:1">Internal helper.</h1><divclass="top"><pclass="src"><aname="v:useProtoAsVoidPtrLen"class="def">useProtoAsVoidPtrLen</a> :: (Message msg, <ahref="../base-4.8.2.0/Prelude.html#t:Integral">Integral</a> c, <ahref="../base-4.8.2.0/Text-Show.html#t:Show">Show</a> c, <ahref="../base-4.8.2.0/Data-Bits.html#t:Bits">Bits</a> c) => msg -> (<ahref="../base-4.8.2.0/Foreign-Ptr.html#t:Ptr">Ptr</a> b -> c -><ahref="../base-4.8.2.0/System-IO.html#t:IO">IO</a> a) -><ahref="../base-4.8.2.0/System-IO.html#t:IO">IO</a> a</p><divclass="doc"><p>Serializes the given msg and provides it as (ptr,len) argument
to the given action.</p></div></div></div></div><divid="footer"><p>Produced by <ahref="http://www.haskell.org/haddock/">Haddock</a> version 2.16.1</p></div></body></html>