module Torch.Internal.Managed.Autograd where import Foreign.ForeignPtr import qualified Torch.Internal.Unmanaged.Autograd as Unmanaged import Torch.Internal.Type import Torch.Internal.Class import Torch.Internal.Cast import Torch.Internal.Objects import Foreign.C.Types (CBool) grad :: ForeignPtr Tensor -> ForeignPtr TensorList -> IO (ForeignPtr TensorList) grad :: ForeignPtr Tensor -> ForeignPtr TensorList -> IO (ForeignPtr TensorList) grad = 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 Tensor -> Ptr TensorList -> IO (Ptr TensorList) Unmanaged.grad makeIndependent :: ForeignPtr Tensor -> CBool -> IO (ForeignPtr Tensor) makeIndependent :: ForeignPtr Tensor -> CBool -> IO (ForeignPtr Tensor) makeIndependent = 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 Tensor -> CBool -> IO (Ptr Tensor) Unmanaged.makeIndependent dropVariable :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) dropVariable :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) dropVariable = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.dropVariable