module Torch.Internal.Managed.Serialize where

import Foreign.ForeignPtr

import qualified Torch.Internal.Unmanaged.Serialize as Unmanaged
import Torch.Internal.Type
import Torch.Internal.Class
import Torch.Internal.Cast
import Torch.Internal.Objects


save :: ForeignPtr TensorList -> FilePath -> IO ()
save :: ForeignPtr TensorList -> FilePath -> IO ()
save = forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
_cast2 Ptr TensorList -> FilePath -> IO ()
Unmanaged.save

load :: FilePath -> IO (ForeignPtr TensorList)
load :: FilePath -> IO (ForeignPtr TensorList)
load = forall a ca y cy.
(Castable a ca, Castable y cy) =>
(ca -> IO cy) -> a -> IO y
_cast1 FilePath -> IO (Ptr TensorList)
Unmanaged.load

pickleSave :: ForeignPtr IValue -> FilePath -> IO ()
pickleSave :: ForeignPtr IValue -> FilePath -> IO ()
pickleSave = forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
_cast2 Ptr IValue -> FilePath -> IO ()
Unmanaged.pickleSave

pickleLoad :: FilePath -> IO (ForeignPtr IValue)
pickleLoad :: FilePath -> IO (ForeignPtr IValue)
pickleLoad = forall a ca y cy.
(Castable a ca, Castable y cy) =>
(ca -> IO cy) -> a -> IO y
_cast1 FilePath -> IO (Ptr IValue)
Unmanaged.pickleLoad