TensorFlow.Session (original) (raw)
Documentation
class Monad m => MonadBuild m where Source #
Lift a [Build](TensorFlow-Build.html#t:Build "TensorFlow.Build") action into a monad, including any explicit op renderings.
Instances
Instances details
extend :: MonadIO m => SessionT m () Source #
Add all pending rendered nodes to the TensorFlow graph and runs any pending initializers.
Note that run, runWithFeeds, etc. will all call this function implicitly.
run :: (MonadIO m, Fetchable t a) => t -> SessionT m a Source #
Run a subgraph t, rendering any dependent nodes that aren't already rendered, and fetch the corresponding values for a.
runWithFeeds :: (MonadIO m, Fetchable t a) => [Feed] -> t -> SessionT m a Source #
Run a subgraph t, rendering any dependent nodes that aren't already rendered, feed the given input values, and fetch the corresponding result values for a.
run_ :: (MonadIO m, Nodes t) => t -> SessionT m () Source #
Run a subgraph t, rendering and extending any dependent nodes that aren't already rendered. This behaves like [run](TensorFlow-Session.html#v:run "TensorFlow.Session") except that it doesn't do any fetches.
runWithFeeds_ :: (MonadIO m, Nodes t) => [Feed] -> t -> SessionT m () Source #
Run a subgraph t, rendering any dependent nodes that aren't already rendered, feed the given input values, and fetch the corresponding result values for a. This behaves like [runWithFeeds](TensorFlow-Session.html#v:runWithFeeds "TensorFlow.Session") except that it doesn't do any fetches.
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.