libtorch-ffi-1.11.0.0: test out alternative options for ffi interface to libtorch 1.x
Safe HaskellSafe-Inferred
LanguageHaskell2010

Torch.Internal.GC

Synopsis

Documentation

dumpLibtorchObjects Source #

Arguments

:: Int

age

-> IO ()

output

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.

unsafeThrowableIO :: forall a m. MonadThrow m => IO a -> m a Source #

retryWithGC' :: Int -> IO a -> IO a Source #

monitorMemory :: IO () -> IO () Source #