hasktorch-0.2.0.0: Functional differentiable programming in Haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Torch.Data.Internal

Documentation

runWithBuffer :: forall a m b. MonadBaseControl IO m => Int -> (Output a -> m ()) -> ContT b m (ListT m a) Source #

liftedBracket :: MonadBaseControl IO m => m a -> (a -> m b) -> (a -> m c) -> m c Source #

withBufferLifted :: MonadBaseControl IO m => Buffer a -> (Output a -> m l) -> (Input a -> m r) -> m (l, r) Source #

liftedFinally :: MonadBaseControl IO m => m a -> m b -> m a Source #

atomically :: MonadIO m => STM a -> m a Source #

Orphan instances

MonadBase IO m => MonadBase IO (Proxy a' a b' b m) Source # 
Instance details

Methods

liftBase :: IO α -> Proxy a' a b' b m α Source #