Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Torch.Internal.GC
Synopsis
- c_showWeakPtrList :: CInt -> IO ()
- mallocTrim :: CInt -> IO ()
- dumpLibtorchObjects :: Int -> IO ()
- newtype HasktorchException = HasktorchException String
- unsafeThrowableIO :: forall a m. MonadThrow m => IO a -> m a
- prettyException :: IO a -> IO a
- retryWithGC' :: Int -> IO a -> IO a
- retryWithGC :: IO a -> IO a
- checkOSMemoryWithGC :: IO ()
- monitorMemory :: IO () -> IO ()
Documentation
c_showWeakPtrList :: CInt -> IO () Source #
mallocTrim :: CInt -> IO () Source #
Returns all objects of libtorch. Each time it is called, the age of the object increases by one. Dumps objects that are greater than or equal to the argument of age.
newtype HasktorchException Source #
Constructors
HasktorchException String |
Instances
Exception HasktorchException Source # | |
Defined in Torch.Internal.GC Methods toException :: HasktorchException -> SomeException Source # fromException :: SomeException -> Maybe HasktorchException Source # | |
Show HasktorchException Source # | |
Defined in Torch.Internal.GC |
unsafeThrowableIO :: forall a m. MonadThrow m => IO a -> m a Source #
prettyException :: IO a -> IO a Source #
retryWithGC :: IO a -> IO a Source #
checkOSMemoryWithGC :: IO () Source #
monitorMemory :: IO () -> IO () Source #