mirror of
https://github.com/tensorflow/haskell.git
synced 2024-12-27 03:59:46 +01:00
6b19e54722
* Update README to refer to 2.3.0-gpu. * Remove old package documentation from haddock directory.
16 lines
No EOL
36 KiB
HTML
16 lines
No EOL
36 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" /><meta name="viewport" content="width=device-width, initial-scale=1" /><title>TensorFlow.Session</title><link href="linuwial.css" rel="stylesheet" type="text/css" title="Linuwial" /><link rel="stylesheet" type="text/css" href="quick-jump.css" /><link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" /><script src="haddock-bundle.min.js" async="async" type="text/javascript"></script><script type="text/x-mathjax-config">MathJax.Hub.Config({ tex2jax: { processClass: "mathjax", ignoreClass: ".*" } });</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script></head><body><div id="package-header"><span class="caption">tensorflow-0.3.0.0: TensorFlow bindings.</span><ul class="links" id="page-menu"><li><a href="src/TensorFlow.Session.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul></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.Session</p></div><div id="synopsis"><details id="syn"><summary>Synopsis</summary><ul class="details-toggle" data-details-id="syn"><li class="src short"><span class="keyword">type</span> <a href="#t:Session">Session</a> = <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> <a href="../base-4.13.0.0/System-IO.html#t:IO" title="System.IO">IO</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:SessionT">SessionT</a> m a</li><li class="src short"><span class="keyword">data</span> <a href="#t:Options">Options</a></li><li class="src short"><a href="#v:sessionConfig">sessionConfig</a> :: Lens' <a href="TensorFlow-Session.html#t:Options" title="TensorFlow.Session">Options</a> <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Protobuf-Config.html#t:ConfigProto" title="Proto.Tensorflow.Core.Protobuf.Config">ConfigProto</a></li><li class="src short"><a href="#v:sessionTarget">sessionTarget</a> :: Lens' <a href="TensorFlow-Session.html#t:Options" title="TensorFlow.Session">Options</a> <a href="../bytestring-0.10.10.1/Data-ByteString.html#t:ByteString" title="Data.ByteString">ByteString</a></li><li class="src short"><a href="#v:sessionTracer">sessionTracer</a> :: Lens' <a href="TensorFlow-Session.html#t:Options" title="TensorFlow.Session">Options</a> Tracer</li><li class="src short"><a href="#v:runSession">runSession</a> :: (MonadMask m, <a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m) => <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a -> m a</li><li class="src short"><a href="#v:runSessionWithOptions">runSessionWithOptions</a> :: (MonadMask m, <a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m) => <a href="TensorFlow-Session.html#t:Options" title="TensorFlow.Session">Options</a> -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a -> m a</li><li class="src short"><span class="keyword">class</span> <a href="../base-4.13.0.0/Control-Monad.html#t:Monad" title="Control.Monad">Monad</a> m => <a href="#t:MonadBuild">MonadBuild</a> m <span class="keyword">where</span><ul class="subs"><li><a href="#v:build">build</a> :: <a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a> a -> m a</li></ul></li><li class="src short"><a href="#v:extend">extend</a> :: <a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m => <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m ()</li><li class="src short"><a href="#v:addGraphDef">addGraphDef</a> :: <a href="TensorFlow-Session.html#t:MonadBuild" title="TensorFlow.Session">MonadBuild</a> m => <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-Graph.html#t:GraphDef" title="Proto.Tensorflow.Core.Framework.Graph">GraphDef</a> -> m ()</li><li class="src short"><a href="#v:run">run</a> :: (<a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m, <a href="TensorFlow-Nodes.html#t:Fetchable" title="TensorFlow.Nodes">Fetchable</a> t a) => t -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a</li><li class="src short"><a href="#v:runWithFeeds">runWithFeeds</a> :: (<a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m, <a href="TensorFlow-Nodes.html#t:Fetchable" title="TensorFlow.Nodes">Fetchable</a> t a) => [<a href="TensorFlow-Tensor.html#t:Feed" title="TensorFlow.Tensor">Feed</a>] -> t -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a</li><li class="src short"><a href="#v:run_">run_</a> :: (<a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m, <a href="TensorFlow-Nodes.html#t:Nodes" title="TensorFlow.Nodes">Nodes</a> t) => t -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m ()</li><li class="src short"><a href="#v:runWithFeeds_">runWithFeeds_</a> :: (<a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m, <a href="TensorFlow-Nodes.html#t:Nodes" title="TensorFlow.Nodes">Nodes</a> t) => [<a href="TensorFlow-Tensor.html#t:Feed" title="TensorFlow.Tensor">Feed</a>] -> t -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m ()</li><li class="src short"><a href="#v:asyncProdNodes">asyncProdNodes</a> :: (<a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m, <a href="TensorFlow-Nodes.html#t:Nodes" title="TensorFlow.Nodes">Nodes</a> t) => t -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m ()</li></ul></details></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:Session" class="def">Session</a> = <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> <a href="../base-4.13.0.0/System-IO.html#t:IO" title="System.IO">IO</a> <a href="src/TensorFlow.Session.html#Session" class="link">Source</a> <a href="#t:Session" class="selflink">#</a></p></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:SessionT" class="def">SessionT</a> m a <a href="src/TensorFlow.Session.html#SessionT" class="link">Source</a> <a href="#t:SessionT" class="selflink">#</a></p><div class="subs instances"><h4 class="instances details-toggle-control details-toggle" data-details-id="i:SessionT">Instances</h4><details id="i:SessionT" open="open"><summary class="hide-when-js-enabled">Instances details</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:SessionT:MonadTrans:1"></span> <a href="../transformers-0.5.6.2/Control-Monad-Trans-Class.html#t:MonadTrans" title="Control.Monad.Trans.Class">MonadTrans</a> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a></span> <a href="src/TensorFlow.Session.html#line-83" class="link">Source</a> <a href="#t:SessionT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:SessionT:MonadTrans:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Session.html">TensorFlow.Session</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:lift">lift</a> :: <a href="../base-4.13.0.0/Control-Monad.html#t:Monad" title="Control.Monad">Monad</a> m => m a -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a <a href="#v:lift" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:SessionT:Monad:2"></span> <a href="../base-4.13.0.0/Control-Monad.html#t:Monad" title="Control.Monad">Monad</a> m => <a href="../base-4.13.0.0/Control-Monad.html#t:Monad" title="Control.Monad">Monad</a> (<a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m)</span> <a href="src/TensorFlow.Session.html#line-80" class="link">Source</a> <a href="#t:SessionT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:SessionT:Monad:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Session.html">TensorFlow.Session</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-62--62--61-">(>>=)</a> :: <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a -> (a -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m b) -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m b <a href="#v:-62--62--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62--62-">(>>)</a> :: <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m b -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m b <a href="#v:-62--62-" class="selflink">#</a></p><p class="src"><a href="#v:return">return</a> :: a -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a <a href="#v:return" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:SessionT:Functor:3"></span> <a href="../base-4.13.0.0/Data-Functor.html#t:Functor" title="Data.Functor">Functor</a> m => <a href="../base-4.13.0.0/Data-Functor.html#t:Functor" title="Data.Functor">Functor</a> (<a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m)</span> <a href="src/TensorFlow.Session.html#line-80" class="link">Source</a> <a href="#t:SessionT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:SessionT:Functor:3"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Session.html">TensorFlow.Session</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m b -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a <a href="#v:-60--36-" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:SessionT:MonadFail:4"></span> <a href="../base-4.13.0.0/Control-Monad-Fail.html#t:MonadFail" title="Control.Monad.Fail">MonadFail</a> m => <a href="../base-4.13.0.0/Control-Monad-Fail.html#t:MonadFail" title="Control.Monad.Fail">MonadFail</a> (<a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m)</span> <a href="src/TensorFlow.Session.html#line-81" class="link">Source</a> <a href="#t:SessionT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:SessionT:MonadFail:4"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Session.html">TensorFlow.Session</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fail">fail</a> :: <a href="../base-4.13.0.0/Data-String.html#t:String" title="Data.String">String</a> -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a <a href="#v:fail" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:SessionT:Applicative:5"></span> <a href="../base-4.13.0.0/Control-Monad.html#t:Monad" title="Control.Monad">Monad</a> m => <a href="../base-4.13.0.0/Control-Applicative.html#t:Applicative" title="Control.Applicative">Applicative</a> (<a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m)</span> <a href="src/TensorFlow.Session.html#line-80" class="link">Source</a> <a href="#t:SessionT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:SessionT:Applicative:5"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Session.html">TensorFlow.Session</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:pure">pure</a> :: a -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a <a href="#v:pure" class="selflink">#</a></p><p class="src"><a href="#v:-60--42--62-">(<*>)</a> :: <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m (a -> b) -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m b <a href="#v:-60--42--62-" class="selflink">#</a></p><p class="src"><a href="#v:liftA2">liftA2</a> :: (a -> b -> c) -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m b -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m c <a href="#v:liftA2" class="selflink">#</a></p><p class="src"><a href="#v:-42--62-">(*>)</a> :: <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m b -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m b <a href="#v:-42--62-" class="selflink">#</a></p><p class="src"><a href="#v:-60--42-">(<*)</a> :: <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m b -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a <a href="#v:-60--42-" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:SessionT:MonadIO:6"></span> <a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m => <a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> (<a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m)</span> <a href="src/TensorFlow.Session.html#line-80" class="link">Source</a> <a href="#t:SessionT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:SessionT:MonadIO:6"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Session.html">TensorFlow.Session</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftIO">liftIO</a> :: <a href="../base-4.13.0.0/System-IO.html#t:IO" title="System.IO">IO</a> a -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a <a href="#v:liftIO" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:SessionT:MonadCatch:7"></span> MonadCatch m => MonadCatch (<a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m)</span> <a href="src/TensorFlow.Session.html#line-80" class="link">Source</a> <a href="#t:SessionT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:SessionT:MonadCatch:7"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Session.html">TensorFlow.Session</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:catch">catch</a> :: <a href="../base-4.13.0.0/Control-Exception-Base.html#t:Exception" title="Control.Exception.Base">Exception</a> e => <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a -> (e -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a) -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a</p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:SessionT:MonadMask:8"></span> MonadMask m => MonadMask (<a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m)</span> <a href="src/TensorFlow.Session.html#line-81" class="link">Source</a> <a href="#t:SessionT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:SessionT:MonadMask:8"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Session.html">TensorFlow.Session</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:mask">mask</a> :: ((<span class="keyword">forall</span> a. <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a) -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m b) -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m b</p><p class="src"><a href="#v:uninterruptibleMask">uninterruptibleMask</a> :: ((<span class="keyword">forall</span> a. <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a) -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m b) -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m b</p><p class="src"><a href="#v:generalBracket">generalBracket</a> :: <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a -> (a -> ExitCase b -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m c) -> (a -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m b) -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m (b, c)</p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:SessionT:MonadThrow:9"></span> MonadThrow m => MonadThrow (<a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m)</span> <a href="src/TensorFlow.Session.html#line-80" class="link">Source</a> <a href="#t:SessionT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:SessionT:MonadThrow:9"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Session.html">TensorFlow.Session</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:throwM">throwM</a> :: <a href="../base-4.13.0.0/Control-Exception-Base.html#t:Exception" title="Control.Exception.Base">Exception</a> e => e -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a</p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:SessionT:MonadBuild:10"></span> <a href="../base-4.13.0.0/Control-Monad.html#t:Monad" title="Control.Monad">Monad</a> m => <a href="TensorFlow-Session.html#t:MonadBuild" title="TensorFlow.Session">MonadBuild</a> (<a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m)</span> <a href="src/TensorFlow.Session.html#line-132" class="link">Source</a> <a href="#t:SessionT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:SessionT:MonadBuild:10"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Session.html">TensorFlow.Session</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:build">build</a> :: <a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a> a -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a <a href="src/TensorFlow.Build.html#build" class="link">Source</a> <a href="#v:build" class="selflink">#</a></p></div></details></td></tr></table></details></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:Options" class="def">Options</a> <a href="src/TensorFlow.Session.html#Options" class="link">Source</a> <a href="#t:Options" class="selflink">#</a></p><div class="doc"><p>Customization for session. Use the lenses to update:
|
|
<code><a href="TensorFlow-Session.html#v:sessionTarget" title="TensorFlow.Session">sessionTarget</a></code>, <code><a href="TensorFlow-Session.html#v:sessionTracer" title="TensorFlow.Session">sessionTracer</a></code>, <code><a href="TensorFlow-Session.html#v:sessionConfig" title="TensorFlow.Session">sessionConfig</a></code>.</p></div><div class="subs instances"><h4 class="instances details-toggle-control details-toggle" data-details-id="i:Options">Instances</h4><details id="i:Options" open="open"><summary class="hide-when-js-enabled">Instances details</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:Options:Default:1"></span> Default <a href="TensorFlow-Session.html#t:Options" title="TensorFlow.Session">Options</a></span> <a href="src/TensorFlow.Session.html#line-100" class="link">Source</a> <a href="#t:Options" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:Options:Default:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Session.html">TensorFlow.Session</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:def">def</a> :: <a href="TensorFlow-Session.html#t:Options" title="TensorFlow.Session">Options</a></p></div></details></td></tr></table></details></div></div><div class="top"><p class="src"><a id="v:sessionConfig" class="def">sessionConfig</a> :: Lens' <a href="TensorFlow-Session.html#t:Options" title="TensorFlow.Session">Options</a> <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Protobuf-Config.html#t:ConfigProto" title="Proto.Tensorflow.Core.Protobuf.Config">ConfigProto</a> <a href="src/TensorFlow.Session.html#sessionConfig" class="link">Source</a> <a href="#v:sessionConfig" class="selflink">#</a></p><div class="doc"><p>Uses the specified config for the created session.</p></div></div><div class="top"><p class="src"><a id="v:sessionTarget" class="def">sessionTarget</a> :: Lens' <a href="TensorFlow-Session.html#t:Options" title="TensorFlow.Session">Options</a> <a href="../bytestring-0.10.10.1/Data-ByteString.html#t:ByteString" title="Data.ByteString">ByteString</a> <a href="src/TensorFlow.Session.html#sessionTarget" class="link">Source</a> <a href="#v:sessionTarget" class="selflink">#</a></p><div class="doc"><p>Target can be: "local", ip:port, host:port.
|
|
The set of supported factories depends on the linked in libraries.</p></div></div><div class="top"><p class="src"><a id="v:sessionTracer" class="def">sessionTracer</a> :: Lens' <a href="TensorFlow-Session.html#t:Options" title="TensorFlow.Session">Options</a> Tracer <a href="src/TensorFlow.Session.html#sessionTracer" class="link">Source</a> <a href="#v:sessionTracer" class="selflink">#</a></p><div class="doc"><p>Uses the given logger to monitor session progress.</p></div></div><div class="top"><p class="src"><a id="v:runSession" class="def">runSession</a> :: (MonadMask m, <a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m) => <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a -> m a <a href="src/TensorFlow.Session.html#runSession" class="link">Source</a> <a href="#v:runSession" class="selflink">#</a></p><div class="doc"><p>Run <code><a href="TensorFlow-Session.html#t:Session" title="TensorFlow.Session">Session</a></code> actions in a new TensorFlow session.</p></div></div><div class="top"><p class="src"><a id="v:runSessionWithOptions" class="def">runSessionWithOptions</a> :: (MonadMask m, <a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m) => <a href="TensorFlow-Session.html#t:Options" title="TensorFlow.Session">Options</a> -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a -> m a <a href="src/TensorFlow.Session.html#runSessionWithOptions" class="link">Source</a> <a href="#v:runSessionWithOptions" class="selflink">#</a></p><div class="doc"><p>Run <code><a href="TensorFlow-Session.html#t:Session" title="TensorFlow.Session">Session</a></code> actions in a new TensorFlow session created with
|
|
the given option setter actions (<code><a href="TensorFlow-Session.html#v:sessionTarget" title="TensorFlow.Session">sessionTarget</a></code>, <code><a href="TensorFlow-Session.html#v:sessionConfig" title="TensorFlow.Session">sessionConfig</a></code>).</p></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="../base-4.13.0.0/Control-Monad.html#t:Monad" title="Control.Monad">Monad</a> m => <a id="t:MonadBuild" class="def">MonadBuild</a> m <span class="keyword">where</span> <a href="src/TensorFlow.Build.html#MonadBuild" class="link">Source</a> <a href="#t:MonadBuild" class="selflink">#</a></p><div class="doc"><p>Lift a <code><a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a></code> action into a monad, including any explicit op renderings.</p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:build" class="def">build</a> :: <a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a> a -> m a <a href="src/TensorFlow.Build.html#build" class="link">Source</a> <a href="#v:build" class="selflink">#</a></p></div><div class="subs instances"><h4 class="instances details-toggle-control details-toggle" data-details-id="i:MonadBuild">Instances</h4><details id="i:MonadBuild" open="open"><summary class="hide-when-js-enabled">Instances details</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:ic:MonadBuild:MonadBuild:1"></span> <a href="../base-4.13.0.0/Control-Monad.html#t:Monad" title="Control.Monad">Monad</a> m => <a href="TensorFlow-Session.html#t:MonadBuild" title="TensorFlow.Session">MonadBuild</a> (<a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m)</span> <a href="src/TensorFlow.Build.html#line-212" class="link">Source</a> <a href="#t:MonadBuild" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:ic:MonadBuild:MonadBuild:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Build.html">TensorFlow.Build</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:build">build</a> :: <a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a> a -> <a href="TensorFlow-Build.html#t:BuildT" title="TensorFlow.Build">BuildT</a> m a <a href="src/TensorFlow.Build.html#build" class="link">Source</a> <a href="#v:build" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:ic:MonadBuild:MonadBuild:2"></span> <a href="../base-4.13.0.0/Control-Monad.html#t:Monad" title="Control.Monad">Monad</a> m => <a href="TensorFlow-Session.html#t:MonadBuild" title="TensorFlow.Session">MonadBuild</a> (<a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m)</span> <a href="src/TensorFlow.Session.html#line-132" class="link">Source</a> <a href="#t:MonadBuild" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:ic:MonadBuild:MonadBuild:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="TensorFlow-Session.html">TensorFlow.Session</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:build">build</a> :: <a href="TensorFlow-Build.html#t:Build" title="TensorFlow.Build">Build</a> a -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a <a href="src/TensorFlow.Build.html#build" class="link">Source</a> <a href="#v:build" class="selflink">#</a></p></div></details></td></tr></table></details></div></div><div class="top"><p class="src"><a id="v:extend" class="def">extend</a> :: <a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m => <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m () <a href="src/TensorFlow.Session.html#extend" class="link">Source</a> <a href="#v:extend" class="selflink">#</a></p><div class="doc"><p>Add all pending rendered nodes to the TensorFlow graph and runs
|
|
any pending initializers.</p><p>Note that run, runWithFeeds, etc. will all call this function implicitly.</p></div></div><div class="top"><p class="src"><a id="v:addGraphDef" class="def">addGraphDef</a> :: <a href="TensorFlow-Session.html#t:MonadBuild" title="TensorFlow.Session">MonadBuild</a> m => <a href="../tensorflow-proto-0.3.0.0/Proto-Tensorflow-Core-Framework-Graph.html#t:GraphDef" title="Proto.Tensorflow.Core.Framework.Graph">GraphDef</a> -> m () <a href="src/TensorFlow.Build.html#addGraphDef" class="link">Source</a> <a href="#v:addGraphDef" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:run" class="def">run</a> :: (<a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m, <a href="TensorFlow-Nodes.html#t:Fetchable" title="TensorFlow.Nodes">Fetchable</a> t a) => t -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a <a href="src/TensorFlow.Session.html#run" class="link">Source</a> <a href="#v:run" class="selflink">#</a></p><div class="doc"><p>Run a subgraph <code>t</code>, rendering any dependent nodes that aren't already
|
|
rendered, and fetch the corresponding values for <code>a</code>.</p></div></div><div class="top"><p class="src"><a id="v:runWithFeeds" class="def">runWithFeeds</a> :: (<a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m, <a href="TensorFlow-Nodes.html#t:Fetchable" title="TensorFlow.Nodes">Fetchable</a> t a) => [<a href="TensorFlow-Tensor.html#t:Feed" title="TensorFlow.Tensor">Feed</a>] -> t -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m a <a href="src/TensorFlow.Session.html#runWithFeeds" class="link">Source</a> <a href="#v:runWithFeeds" class="selflink">#</a></p><div class="doc"><p>Run a subgraph <code>t</code>, rendering any dependent nodes that aren't already
|
|
rendered, feed the given input values, and fetch the corresponding result
|
|
values for <code>a</code>.</p></div></div><div class="top"><p class="src"><a id="v:run_" class="def">run_</a> :: (<a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m, <a href="TensorFlow-Nodes.html#t:Nodes" title="TensorFlow.Nodes">Nodes</a> t) => t -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m () <a href="src/TensorFlow.Session.html#run_" class="link">Source</a> <a href="#v:run_" class="selflink">#</a></p><div class="doc"><p>Run a subgraph <code>t</code>, rendering and extending any dependent nodes that aren't
|
|
already rendered. This behaves like <code><a href="TensorFlow-Session.html#v:run" title="TensorFlow.Session">run</a></code> except that it doesn't do any
|
|
fetches.</p></div></div><div class="top"><p class="src"><a id="v:runWithFeeds_" class="def">runWithFeeds_</a> :: (<a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m, <a href="TensorFlow-Nodes.html#t:Nodes" title="TensorFlow.Nodes">Nodes</a> t) => [<a href="TensorFlow-Tensor.html#t:Feed" title="TensorFlow.Tensor">Feed</a>] -> t -> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m () <a href="src/TensorFlow.Session.html#runWithFeeds_" class="link">Source</a> <a href="#v:runWithFeeds_" class="selflink">#</a></p><div class="doc"><p>Run a subgraph <code>t</code>, rendering any dependent nodes that aren't already
|
|
rendered, feed the given input values, and fetch the corresponding result
|
|
values for <code>a</code>. This behaves like <code><a href="TensorFlow-Session.html#v:runWithFeeds" title="TensorFlow.Session">runWithFeeds</a></code> except that it doesn't do
|
|
any fetches.</p></div></div><div class="top"><p class="src"><a id="v:asyncProdNodes" class="def">asyncProdNodes</a> <a href="src/TensorFlow.Session.html#asyncProdNodes" class="link">Source</a> <a href="#v:asyncProdNodes" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="../base-4.13.0.0/Control-Monad-IO-Class.html#t:MonadIO" title="Control.Monad.IO.Class">MonadIO</a> m, <a href="TensorFlow-Nodes.html#t:Nodes" title="TensorFlow.Nodes">Nodes</a> t)</td><td class="doc empty"> </td></tr><tr><td class="src">=> t</td><td class="doc"><p>Node to evaluate concurrently.</p></td></tr><tr><td class="src">-> <a href="TensorFlow-Session.html#t:SessionT" title="TensorFlow.Session">SessionT</a> m ()</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Starts a concurrent thread which evaluates the given Nodes
|
|
forever until runSession exits or an exception occurs. Graph
|
|
extension happens synchronously, but the resultant run proceeds as
|
|
a separate thread.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.23.0</p></div></body></html> |