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

Torch.Internal.Class

Documentation

class Castable a b where Source #

Methods

cast :: a -> (b -> IO r) -> IO r Source #

uncast :: b -> (a -> IO r) -> IO r Source #

Instances

Instances details
Castable Int16 CShort Source # 
Instance details

Defined in Torch.Internal.Cast

Methods

cast :: Int16 -> (CShort -> IO r) -> IO r Source #

uncast :: CShort -> (Int16 -> IO r) -> IO r Source #

Castable Int8 CChar Source # 
Instance details

Defined in Torch.Internal.Cast

Methods

cast :: Int8 -> (CChar -> IO r) -> IO r Source #

uncast :: CChar -> (Int8 -> IO r) -> IO r Source #

Castable Word8 CChar Source # 
Instance details

Defined in Torch.Internal.Cast

Methods

cast :: Word8 -> (CChar -> IO r) -> IO r Source #

uncast :: CChar -> (Word8 -> IO r) -> IO r Source #

Castable ByteString CString Source # 
Instance details

Defined in Torch.Internal.Cast

Methods

cast :: ByteString -> (CString -> IO r) -> IO r Source #

uncast :: CString -> (ByteString -> IO r) -> IO r Source #

Castable String CString Source # 
Instance details

Defined in Torch.Internal.Cast

Methods

cast :: String -> (CString -> IO r) -> IO r Source #

uncast :: CString -> (String -> IO r) -> IO r Source #

Castable Bool CBool Source # 
Instance details

Defined in Torch.Internal.Cast

Methods

cast :: Bool -> (CBool -> IO r) -> IO r Source #

uncast :: CBool -> (Bool -> IO r) -> IO r Source #

Castable Double CDouble Source # 
Instance details

Defined in Torch.Internal.Cast

Methods

cast :: Double -> (CDouble -> IO r) -> IO r Source #

uncast :: CDouble -> (Double -> IO r) -> IO r Source #

Castable Int CInt Source # 
Instance details

Defined in Torch.Internal.Cast

Methods

cast :: Int -> (CInt -> IO r) -> IO r Source #

uncast :: CInt -> (Int -> IO r) -> IO r Source #

Castable Int Int64 Source # 
Instance details

Defined in Torch.Internal.Cast

Methods

cast :: Int -> (Int64 -> IO r) -> IO r Source #

uncast :: Int64 -> (Int -> IO r) -> IO r Source #

Castable Word CUInt Source # 
Instance details

Defined in Torch.Internal.Cast

Methods

cast :: Word -> (CUInt -> IO r) -> IO r Source #

uncast :: CUInt -> (Word -> IO r) -> IO r Source #

Castable a a Source # 
Instance details

Defined in Torch.Internal.Cast

Methods

cast :: a -> (a -> IO r) -> IO r Source #

uncast :: a -> (a -> IO r) -> IO r Source #

Castable String (ForeignPtr StdString) Source # 
Instance details

Defined in Torch.Internal.Managed.Type.StdString

Methods

cast :: String -> (ForeignPtr StdString -> IO r) -> IO r Source #

uncast :: ForeignPtr StdString -> (String -> IO r) -> IO r Source #

Castable Int (ForeignPtr IntArray) Source # 
Instance details

Defined in Torch.Internal.Managed.Cast

Methods

cast :: Int -> (ForeignPtr IntArray -> IO r) -> IO r Source #

uncast :: ForeignPtr IntArray -> (Int -> IO r) -> IO r Source #

CppObject a => Castable (ForeignPtr a) (Ptr a) Source # 
Instance details

Defined in Torch.Internal.Cast

Methods

cast :: ForeignPtr a -> (Ptr a -> IO r) -> IO r Source #

uncast :: Ptr a -> (ForeignPtr a -> IO r) -> IO r Source #

Castable a a' => Castable (Maybe a) (Maybe a') Source # 
Instance details

Defined in Torch.Internal.Cast

Methods

cast :: Maybe a -> (Maybe a' -> IO r) -> IO r Source #

uncast :: Maybe a' -> (Maybe a -> IO r) -> IO r Source #

Castable [CBool] (ForeignPtr (C10List CBool)) Source # 
Instance details

Defined in Torch.Internal.Managed.Cast

Methods

cast :: [CBool] -> (ForeignPtr (C10List CBool) -> IO r) -> IO r Source #

uncast :: ForeignPtr (C10List CBool) -> ([CBool] -> IO r) -> IO r Source #

Castable [CDouble] (ForeignPtr (C10List CDouble)) Source # 
Instance details

Defined in Torch.Internal.Managed.Cast

Methods

cast :: [CDouble] -> (ForeignPtr (C10List CDouble) -> IO r) -> IO r Source #

uncast :: ForeignPtr (C10List CDouble) -> ([CDouble] -> IO r) -> IO r Source #

Castable [ForeignPtr IValue] (ForeignPtr (C10List IValue)) Source # 
Instance details

Defined in Torch.Internal.Managed.Cast

Castable [ForeignPtr IValue] (ForeignPtr (C10Ptr IVTuple)) Source # 
Instance details

Defined in Torch.Internal.Managed.Cast

Castable [ForeignPtr IValue] (ForeignPtr IValueList) Source # 
Instance details

Defined in Torch.Internal.Managed.Cast

Castable [ForeignPtr Tensor] (ForeignPtr (C10List (C10Optional Tensor))) Source # 
Instance details

Defined in Torch.Internal.Managed.Cast

Castable [ForeignPtr Tensor] (ForeignPtr (C10List Tensor)) Source # 
Instance details

Defined in Torch.Internal.Managed.Cast

Castable [ForeignPtr Tensor] (ForeignPtr TensorList) Source # 
Instance details

Defined in Torch.Internal.Managed.Cast

Castable [Int64] (ForeignPtr (C10List Int64)) Source # 
Instance details

Defined in Torch.Internal.Managed.Cast

Methods

cast :: [Int64] -> (ForeignPtr (C10List Int64) -> IO r) -> IO r Source #

uncast :: ForeignPtr (C10List Int64) -> ([Int64] -> IO r) -> IO r Source #

Castable [ByteString] (Ptr CString) Source # 
Instance details

Defined in Torch.Internal.Cast

Methods

cast :: [ByteString] -> (Ptr CString -> IO r) -> IO r Source #

uncast :: Ptr CString -> ([ByteString] -> IO r) -> IO r Source #

Castable [(ForeignPtr IValue, ForeignPtr IValue)] (ForeignPtr (C10Dict '(IValue, IValue))) Source # 
Instance details

Defined in Torch.Internal.Managed.Cast

Castable [Double] (ForeignPtr (StdVector CDouble)) Source # 
Instance details

Defined in Torch.Internal.Managed.Cast

Methods

cast :: [Double] -> (ForeignPtr (StdVector CDouble) -> IO r) -> IO r Source #

uncast :: ForeignPtr (StdVector CDouble) -> ([Double] -> IO r) -> IO r Source #

Castable [Double] (Ptr CDouble) Source # 
Instance details

Defined in Torch.Internal.Cast

Methods

cast :: [Double] -> (Ptr CDouble -> IO r) -> IO r Source #

uncast :: Ptr CDouble -> ([Double] -> IO r) -> IO r Source #

Castable [Int] (ForeignPtr IntArray) Source # 
Instance details

Defined in Torch.Internal.Managed.Cast

Methods

cast :: [Int] -> (ForeignPtr IntArray -> IO r) -> IO r Source #

uncast :: ForeignPtr IntArray -> ([Int] -> IO r) -> IO r Source #

Castable [Int] (Ptr CInt) Source # 
Instance details

Defined in Torch.Internal.Cast

Methods

cast :: [Int] -> (Ptr CInt -> IO r) -> IO r Source #

uncast :: Ptr CInt -> ([Int] -> IO r) -> IO r Source #

(CppTuple2 c, Castable a (A c), Castable b (B c)) => Castable (a, b) c Source # 
Instance details

Defined in Torch.Internal.Cast

Methods

cast :: (a, b) -> (c -> IO r) -> IO r Source #

uncast :: c -> ((a, b) -> IO r) -> IO r Source #

(Castable a a', Castable b b') => Castable (a, b) (a', b') Source # 
Instance details

Defined in Torch.Internal.Cast

Methods

cast :: (a, b) -> ((a', b') -> IO r) -> IO r Source #

uncast :: (a', b') -> ((a, b) -> IO r) -> IO r Source #

(CppTuple3 d, Castable a (A d), Castable b (B d), Castable c (C d)) => Castable (a, b, c) d Source # 
Instance details

Defined in Torch.Internal.Cast

Methods

cast :: (a, b, c) -> (d -> IO r) -> IO r Source #

uncast :: d -> ((a, b, c) -> IO r) -> IO r Source #

(Castable a a', Castable b b', Castable c c') => Castable (a, b, c) (a', b', c') Source # 
Instance details

Defined in Torch.Internal.Cast

Methods

cast :: (a, b, c) -> ((a', b', c') -> IO r) -> IO r Source #

uncast :: (a', b', c') -> ((a, b, c) -> IO r) -> IO r Source #

(CppTuple4 e, Castable a (A e), Castable b (B e), Castable c (C e), Castable d (D e)) => Castable (a, b, c, d) e Source # 
Instance details

Defined in Torch.Internal.Cast

Methods

cast :: (a, b, c, d) -> (e -> IO r) -> IO r Source #

uncast :: e -> ((a, b, c, d) -> IO r) -> IO r Source #

(Castable a a', Castable b b', Castable c c', Castable d d') => Castable (a, b, c, d) (a', b', c', d') Source # 
Instance details

Defined in Torch.Internal.Cast

Methods

cast :: (a, b, c, d) -> ((a', b', c', d') -> IO r) -> IO r Source #

uncast :: (a', b', c', d') -> ((a, b, c, d) -> IO r) -> IO r Source #

(CppTuple5 f, Castable a (A f), Castable b (B f), Castable c (C f), Castable d (D f), Castable e (E f)) => Castable (a, b, c, d, e) f Source # 
Instance details

Defined in Torch.Internal.Cast

Methods

cast :: (a, b, c, d, e) -> (f -> IO r) -> IO r Source #

uncast :: f -> ((a, b, c, d, e) -> IO r) -> IO r Source #

(Castable a a', Castable b b', Castable c c', Castable d d', Castable e e') => Castable (a, b, c, d, e) (a', b', c', d', e') Source # 
Instance details

Defined in Torch.Internal.Cast

Methods

cast :: (a, b, c, d, e) -> ((a', b', c', d', e') -> IO r) -> IO r Source #

uncast :: (a', b', c', d', e') -> ((a, b, c, d, e) -> IO r) -> IO r Source #

(CppTuple6 g, Castable a (A g), Castable b (B g), Castable c (C g), Castable d (D g), Castable e (E g), Castable f (F g)) => Castable (a, b, c, d, e, f) g Source # 
Instance details

Defined in Torch.Internal.Cast

Methods

cast :: (a, b, c, d, e, f) -> (g -> IO r) -> IO r Source #

uncast :: g -> ((a, b, c, d, e, f) -> IO r) -> IO r Source #

(Castable a a', Castable b b', Castable c c', Castable d d', Castable e e', Castable f f') => Castable (a, b, c, d, e, f) (a', b', c', d', e', f') Source # 
Instance details

Defined in Torch.Internal.Cast

Methods

cast :: (a, b, c, d, e, f) -> ((a', b', c', d', e', f') -> IO r) -> IO r Source #

uncast :: (a', b', c', d', e', f') -> ((a, b, c, d, e, f) -> IO r) -> IO r Source #

class CppObject a where Source #

Methods

fromPtr :: Ptr a -> IO (ForeignPtr a) Source #

deletePtr :: Ptr a -> IO () Source #

Instances

Instances details
CppObject Context Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject Dimname Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject DimnameList Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject Generator Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject IValue Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject IValueList Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject IntArray Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject JitNode Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject JitValue Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject Module Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject Optimizer Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject Scalar Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject StdString Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject Storage Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject Stream Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject Symbol Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject Tensor Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject TensorIndex Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject TensorList Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject TensorOptions Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject (ArrayRef Scalar) Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject (C10Dict '(IValue, IValue)) Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject (C10List CBool) Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject (C10List CDouble) Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject (C10List Int64) Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject (C10List (C10Optional Tensor)) Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject (C10List IValue) Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject (C10List Tensor) Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject (C10Ptr IVTuple) Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject (SharedPtr JitGraph) Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject (StdArray '(CBool, 2)) Source # 
Instance details

Defined in Torch.Internal.Objects

Methods

fromPtr :: Ptr (StdArray '(CBool, 2)) -> IO (ForeignPtr (StdArray '(CBool, 2))) Source #

deletePtr :: Ptr (StdArray '(CBool, 2)) -> IO () Source #

CppObject (StdArray '(CBool, 3)) Source # 
Instance details

Defined in Torch.Internal.Objects

Methods

fromPtr :: Ptr (StdArray '(CBool, 3)) -> IO (ForeignPtr (StdArray '(CBool, 3))) Source #

deletePtr :: Ptr (StdArray '(CBool, 3)) -> IO () Source #

CppObject (StdArray '(CBool, 4)) Source # 
Instance details

Defined in Torch.Internal.Objects

Methods

fromPtr :: Ptr (StdArray '(CBool, 4)) -> IO (ForeignPtr (StdArray '(CBool, 4))) Source #

deletePtr :: Ptr (StdArray '(CBool, 4)) -> IO () Source #

CppObject (StdTuple '(CDouble, CDouble)) Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject (StdTuple '(CDouble, Int64)) Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject (StdTuple '(Tensor, Generator)) Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject (StdTuple '(Tensor, Tensor)) Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject (StdTuple '(Tensor, Tensor, Tensor)) Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject (StdTuple '(Tensor, Tensor, CDouble, Int64)) Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject (StdTuple '(Tensor, Tensor, Tensor, Tensor)) Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject (StdTuple '(Tensor, Tensor, Tensor, TensorList)) Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject (StdTuple '(Tensor, Tensor, Tensor, Tensor, Int64)) Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject (StdTuple '(Tensor, Tensor, Tensor, Tensor, Tensor)) Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject (StdVector CBool) Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject (StdVector CDouble) Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject (StdVector CInt) Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject (StdVector Scalar) Source # 
Instance details

Defined in Torch.Internal.Objects

CppObject (StdVector TensorIndex) Source # 
Instance details

Defined in Torch.Internal.Objects

class CppTuple2 m where Source #

Minimal complete definition

get0, get1

Associated Types

type A m Source #

type B m Source #

Methods

get0 :: m -> IO (A m) Source #

get1 :: m -> IO (B m) Source #

makeTuple2 :: (A m, B m) -> IO m Source #

Instances

Instances details
CppTuple2 (ForeignPtr (StdArray '(CBool, 2))) Source # 
Instance details

Defined in Torch.Internal.Managed.Type.StdArray

Associated Types

type A (ForeignPtr (StdArray '(CBool, 2))) Source #

type B (ForeignPtr (StdArray '(CBool, 2))) Source #

CppTuple2 (ForeignPtr (StdArray '(CBool, 3))) Source # 
Instance details

Defined in Torch.Internal.Managed.Type.StdArray

Associated Types

type A (ForeignPtr (StdArray '(CBool, 3))) Source #

type B (ForeignPtr (StdArray '(CBool, 3))) Source #

CppTuple2 (ForeignPtr (StdArray '(CBool, 4))) Source # 
Instance details

Defined in Torch.Internal.Managed.Type.StdArray

Associated Types

type A (ForeignPtr (StdArray '(CBool, 4))) Source #

type B (ForeignPtr (StdArray '(CBool, 4))) Source #

CppTuple2 (ForeignPtr (StdTuple '(CDouble, CDouble))) Source # 
Instance details

Defined in Torch.Internal.Managed.Type.Tuple

Associated Types

type A (ForeignPtr (StdTuple '(CDouble, CDouble))) Source #

type B (ForeignPtr (StdTuple '(CDouble, CDouble))) Source #

CppTuple2 (ForeignPtr (StdTuple '(CDouble, Int64))) Source # 
Instance details

Defined in Torch.Internal.Managed.Type.Tuple

Associated Types

type A (ForeignPtr (StdTuple '(CDouble, Int64))) Source #

type B (ForeignPtr (StdTuple '(CDouble, Int64))) Source #

CppTuple2 (ForeignPtr (StdTuple '(Tensor, Generator))) Source # 
Instance details

Defined in Torch.Internal.Managed.Type.Tuple

CppTuple2 (ForeignPtr (StdTuple '(Tensor, Tensor))) Source # 
Instance details

Defined in Torch.Internal.Managed.Type.Tuple

Associated Types

type A (ForeignPtr (StdTuple '(Tensor, Tensor))) Source #

type B (ForeignPtr (StdTuple '(Tensor, Tensor))) Source #

CppTuple2 (ForeignPtr (StdTuple '(Tensor, Tensor, Tensor))) Source # 
Instance details

Defined in Torch.Internal.Managed.Type.Tuple

CppTuple2 (ForeignPtr (StdTuple '(Tensor, Tensor, CDouble, Int64))) Source # 
Instance details

Defined in Torch.Internal.Managed.Type.Tuple

CppTuple2 (ForeignPtr (StdTuple '(Tensor, Tensor, Tensor, Tensor))) Source # 
Instance details

Defined in Torch.Internal.Managed.Type.Tuple

CppTuple2 (ForeignPtr (StdTuple '(Tensor, Tensor, Tensor, TensorList))) Source # 
Instance details

Defined in Torch.Internal.Managed.Type.Tuple

CppTuple2 (ForeignPtr (StdTuple '(Tensor, Tensor, Tensor, Tensor, Int64))) Source # 
Instance details

Defined in Torch.Internal.Managed.Type.Tuple

CppTuple2 (ForeignPtr (StdTuple '(Tensor, Tensor, Tensor, Tensor, Tensor))) Source # 
Instance details

Defined in Torch.Internal.Managed.Type.Tuple

CppTuple2 (Ptr (StdArray '(CBool, 2))) Source # 
Instance details

Defined in Torch.Internal.Unmanaged.Type.StdArray

Associated Types

type A (Ptr (StdArray '(CBool, 2))) Source #

type B (Ptr (StdArray '(CBool, 2))) Source #

Methods

get0 :: Ptr (StdArray '(CBool, 2)) -> IO (A (Ptr (StdArray '(CBool, 2)))) Source #

get1 :: Ptr (StdArray '(CBool, 2)) -> IO (B (Ptr (StdArray '(CBool, 2)))) Source #

makeTuple2 :: (A (Ptr (StdArray '(CBool, 2))), B (Ptr (StdArray '(CBool, 2)))) -> IO (Ptr (StdArray '(CBool, 2))) Source #

CppTuple2 (Ptr (StdArray '(CBool, 3))) Source # 
Instance details

Defined in Torch.Internal.Unmanaged.Type.StdArray

Associated Types

type A (Ptr (StdArray '(CBool, 3))) Source #

type B (Ptr (StdArray '(CBool, 3))) Source #

Methods

get0 :: Ptr (StdArray '(CBool, 3)) -> IO (A (Ptr (StdArray '(CBool, 3)))) Source #

get1 :: Ptr (StdArray '(CBool, 3)) -> IO (B (Ptr (StdArray '(CBool, 3)))) Source #

makeTuple2 :: (A (Ptr (StdArray '(CBool, 3))), B (Ptr (StdArray '(CBool, 3)))) -> IO (Ptr (StdArray '(CBool, 3))) Source #

CppTuple2 (Ptr (StdArray '(CBool, 4))) Source # 
Instance details

Defined in Torch.Internal.Unmanaged.Type.StdArray

Associated Types

type A (Ptr (StdArray '(CBool, 4))) Source #

type B (Ptr (StdArray '(CBool, 4))) Source #

Methods

get0 :: Ptr (StdArray '(CBool, 4)) -> IO (A (Ptr (StdArray '(CBool, 4)))) Source #

get1 :: Ptr (StdArray '(CBool, 4)) -> IO (B (Ptr (StdArray '(CBool, 4)))) Source #

makeTuple2 :: (A (Ptr (StdArray '(CBool, 4))), B (Ptr (StdArray '(CBool, 4)))) -> IO (Ptr (StdArray '(CBool, 4))) Source #

CppTuple2 (Ptr (StdTuple '(CDouble, CDouble))) Source # 
Instance details

Defined in Torch.Internal.Unmanaged.Type.Tuple

Associated Types

type A (Ptr (StdTuple '(CDouble, CDouble))) Source #

type B (Ptr (StdTuple '(CDouble, CDouble))) Source #

CppTuple2 (Ptr (StdTuple '(CDouble, Int64))) Source # 
Instance details

Defined in Torch.Internal.Unmanaged.Type.Tuple

Associated Types

type A (Ptr (StdTuple '(CDouble, Int64))) Source #

type B (Ptr (StdTuple '(CDouble, Int64))) Source #

CppTuple2 (Ptr (StdTuple '(Tensor, Generator))) Source # 
Instance details

Defined in Torch.Internal.Unmanaged.Type.Tuple

Associated Types

type A (Ptr (StdTuple '(Tensor, Generator))) Source #

type B (Ptr (StdTuple '(Tensor, Generator))) Source #

CppTuple2 (Ptr (StdTuple '(Tensor, Tensor))) Source # 
Instance details

Defined in Torch.Internal.Unmanaged.Type.Tuple

Associated Types

type A (Ptr (StdTuple '(Tensor, Tensor))) Source #

type B (Ptr (StdTuple '(Tensor, Tensor))) Source #

CppTuple2 (Ptr (StdTuple '(Tensor, Tensor, Tensor))) Source # 
Instance details

Defined in Torch.Internal.Unmanaged.Type.Tuple

Associated Types

type A (Ptr (StdTuple '(Tensor, Tensor, Tensor))) Source #

type B (Ptr (StdTuple '(Tensor, Tensor, Tensor))) Source #

CppTuple2 (Ptr (StdTuple '(Tensor, Tensor, CDouble, Int64))) Source # 
Instance details

Defined in Torch.Internal.Unmanaged.Type.Tuple

Associated Types

type A (Ptr (StdTuple '(Tensor, Tensor, CDouble, Int64))) Source #

type B (Ptr (StdTuple '(Tensor, Tensor, CDouble, Int64))) Source #

CppTuple2 (Ptr (StdTuple '(Tensor, Tensor, Tensor, Tensor))) Source # 
Instance details

Defined in Torch.Internal.Unmanaged.Type.Tuple

Associated Types

type A (Ptr (StdTuple '(Tensor, Tensor, Tensor, Tensor))) Source #

type B (Ptr (StdTuple '(Tensor, Tensor, Tensor, Tensor))) Source #

CppTuple2 (Ptr (StdTuple '(Tensor, Tensor, Tensor, TensorList))) Source # 
Instance details

Defined in Torch.Internal.Unmanaged.Type.Tuple

CppTuple2 (Ptr (StdTuple '(Tensor, Tensor, Tensor, Tensor, Int64))) Source # 
Instance details

Defined in Torch.Internal.Unmanaged.Type.Tuple

Associated Types

type A (Ptr (StdTuple '(Tensor, Tensor, Tensor, Tensor, Int64))) Source #

type B (Ptr (StdTuple '(Tensor, Tensor, Tensor, Tensor, Int64))) Source #

CppTuple2 (Ptr (StdTuple '(Tensor, Tensor, Tensor, Tensor, Tensor))) Source # 
Instance details

Defined in Torch.Internal.Unmanaged.Type.Tuple

Associated Types

type A (Ptr (StdTuple '(Tensor, Tensor, Tensor, Tensor, Tensor))) Source #

type B (Ptr (StdTuple '(Tensor, Tensor, Tensor, Tensor, Tensor))) Source #

class CppTuple2 m => CppTuple3 m where Source #

Minimal complete definition

get2

Associated Types

type C m Source #

Methods

get2 :: m -> IO (C m) Source #

makeTuple3 :: (A m, B m, C m) -> IO m Source #

Instances

Instances details
CppTuple3 (ForeignPtr (StdArray '(CBool, 3))) Source # 
Instance details

Defined in Torch.Internal.Managed.Type.StdArray

Associated Types

type C (ForeignPtr (StdArray '(CBool, 3))) Source #

CppTuple3 (ForeignPtr (StdArray '(CBool, 4))) Source # 
Instance details

Defined in Torch.Internal.Managed.Type.StdArray

Associated Types

type C (ForeignPtr (StdArray '(CBool, 4))) Source #

CppTuple3 (ForeignPtr (StdTuple '(Tensor, Tensor, Tensor))) Source # 
Instance details

Defined in Torch.Internal.Managed.Type.Tuple

Associated Types

type C (ForeignPtr (StdTuple '(Tensor, Tensor, Tensor))) Source #

CppTuple3 (ForeignPtr (StdTuple '(Tensor, Tensor, CDouble, Int64))) Source # 
Instance details

Defined in Torch.Internal.Managed.Type.Tuple

Associated Types

type C (ForeignPtr (StdTuple '(Tensor, Tensor, CDouble, Int64))) Source #

CppTuple3 (ForeignPtr (StdTuple '(Tensor, Tensor, Tensor, Tensor))) Source # 
Instance details

Defined in Torch.Internal.Managed.Type.Tuple

Associated Types

type C (ForeignPtr (StdTuple '(Tensor, Tensor, Tensor, Tensor))) Source #

CppTuple3 (ForeignPtr (StdTuple '(Tensor, Tensor, Tensor, TensorList))) Source # 
Instance details

Defined in Torch.Internal.Managed.Type.Tuple

Associated Types

type C (ForeignPtr (StdTuple '(Tensor, Tensor, Tensor, TensorList))) Source #

CppTuple3 (ForeignPtr (StdTuple '(Tensor, Tensor, Tensor, Tensor, Int64))) Source # 
Instance details

Defined in Torch.Internal.Managed.Type.Tuple

Associated Types

type C (ForeignPtr (StdTuple '(Tensor, Tensor, Tensor, Tensor, Int64))) Source #

CppTuple3 (ForeignPtr (StdTuple '(Tensor, Tensor, Tensor, Tensor, Tensor))) Source # 
Instance details

Defined in Torch.Internal.Managed.Type.Tuple

Associated Types

type C (ForeignPtr (StdTuple '(Tensor, Tensor, Tensor, Tensor, Tensor))) Source #

CppTuple3 (Ptr (StdArray '(CBool, 3))) Source # 
Instance details

Defined in Torch.Internal.Unmanaged.Type.StdArray

Associated Types

type C (Ptr (StdArray '(CBool, 3))) Source #

Methods

get2 :: Ptr (StdArray '(CBool, 3)) -> IO (C (Ptr (StdArray '(CBool, 3)))) Source #

makeTuple3 :: (A (Ptr (StdArray '(CBool, 3))), B (Ptr (StdArray '(CBool, 3))), C (Ptr (StdArray '(CBool, 3)))) -> IO (Ptr (StdArray '(CBool, 3))) Source #

CppTuple3 (Ptr (StdArray '(CBool, 4))) Source # 
Instance details

Defined in Torch.Internal.Unmanaged.Type.StdArray

Associated Types

type C (Ptr (StdArray '(CBool, 4))) Source #

Methods

get2 :: Ptr (StdArray '(CBool, 4)) -> IO (C (Ptr (StdArray '(CBool, 4)))) Source #

makeTuple3 :: (A (Ptr (StdArray '(CBool, 4))), B (Ptr (StdArray '(CBool, 4))), C (Ptr (StdArray '(CBool, 4)))) -> IO (Ptr (StdArray '(CBool, 4))) Source #

CppTuple3 (Ptr (StdTuple '(Tensor, Tensor, Tensor))) Source # 
Instance details

Defined in Torch.Internal.Unmanaged.Type.Tuple

Associated Types

type C (Ptr (StdTuple '(Tensor, Tensor, Tensor))) Source #

CppTuple3 (Ptr (StdTuple '(Tensor, Tensor, CDouble, Int64))) Source # 
Instance details

Defined in Torch.Internal.Unmanaged.Type.Tuple

Associated Types

type C (Ptr (StdTuple '(Tensor, Tensor, CDouble, Int64))) Source #

CppTuple3 (Ptr (StdTuple '(Tensor, Tensor, Tensor, Tensor))) Source # 
Instance details

Defined in Torch.Internal.Unmanaged.Type.Tuple

Associated Types

type C (Ptr (StdTuple '(Tensor, Tensor, Tensor, Tensor))) Source #

CppTuple3 (Ptr (StdTuple '(Tensor, Tensor, Tensor, TensorList))) Source # 
Instance details

Defined in Torch.Internal.Unmanaged.Type.Tuple

Associated Types

type C (Ptr (StdTuple '(Tensor, Tensor, Tensor, TensorList))) Source #

CppTuple3 (Ptr (StdTuple '(Tensor, Tensor, Tensor, Tensor, Int64))) Source # 
Instance details

Defined in Torch.Internal.Unmanaged.Type.Tuple

Associated Types

type C (Ptr (StdTuple '(Tensor, Tensor, Tensor, Tensor, Int64))) Source #

CppTuple3 (Ptr (StdTuple '(Tensor, Tensor, Tensor, Tensor, Tensor))) Source # 
Instance details

Defined in Torch.Internal.Unmanaged.Type.Tuple

Associated Types

type C (Ptr (StdTuple '(Tensor, Tensor, Tensor, Tensor, Tensor))) Source #

class CppTuple3 m => CppTuple4 m where Source #

Minimal complete definition

get3

Associated Types

type D m Source #

Methods

get3 :: m -> IO (D m) Source #

makeTuple4 :: (A m, B m, C m, D m) -> IO m Source #

Instances

Instances details
CppTuple4 (ForeignPtr (StdArray '(CBool, 4))) Source # 
Instance details

Defined in Torch.Internal.Managed.Type.StdArray

Associated Types

type D (ForeignPtr (StdArray '(CBool, 4))) Source #

CppTuple4 (ForeignPtr (StdTuple '(Tensor, Tensor, CDouble, Int64))) Source # 
Instance details

Defined in Torch.Internal.Managed.Type.Tuple

Associated Types

type D (ForeignPtr (StdTuple '(Tensor, Tensor, CDouble, Int64))) Source #

CppTuple4 (ForeignPtr (StdTuple '(Tensor, Tensor, Tensor, Tensor))) Source # 
Instance details

Defined in Torch.Internal.Managed.Type.Tuple

Associated Types

type D (ForeignPtr (StdTuple '(Tensor, Tensor, Tensor, Tensor))) Source #

CppTuple4 (ForeignPtr (StdTuple '(Tensor, Tensor, Tensor, TensorList))) Source # 
Instance details

Defined in Torch.Internal.Managed.Type.Tuple

Associated Types

type D (ForeignPtr (StdTuple '(Tensor, Tensor, Tensor, TensorList))) Source #

CppTuple4 (ForeignPtr (StdTuple '(Tensor, Tensor, Tensor, Tensor, Int64))) Source # 
Instance details

Defined in Torch.Internal.Managed.Type.Tuple

Associated Types

type D (ForeignPtr (StdTuple '(Tensor, Tensor, Tensor, Tensor, Int64))) Source #

CppTuple4 (ForeignPtr (StdTuple '(Tensor, Tensor, Tensor, Tensor, Tensor))) Source # 
Instance details

Defined in Torch.Internal.Managed.Type.Tuple

Associated Types

type D (ForeignPtr (StdTuple '(Tensor, Tensor, Tensor, Tensor, Tensor))) Source #

CppTuple4 (Ptr (StdArray '(CBool, 4))) Source # 
Instance details

Defined in Torch.Internal.Unmanaged.Type.StdArray

Associated Types

type D (Ptr (StdArray '(CBool, 4))) Source #

Methods

get3 :: Ptr (StdArray '(CBool, 4)) -> IO (D (Ptr (StdArray '(CBool, 4)))) Source #

makeTuple4 :: (A (Ptr (StdArray '(CBool, 4))), B (Ptr (StdArray '(CBool, 4))), C (Ptr (StdArray '(CBool, 4))), D (Ptr (StdArray '(CBool, 4)))) -> IO (Ptr (StdArray '(CBool, 4))) Source #

CppTuple4 (Ptr (StdTuple '(Tensor, Tensor, CDouble, Int64))) Source # 
Instance details

Defined in Torch.Internal.Unmanaged.Type.Tuple

Associated Types

type D (Ptr (StdTuple '(Tensor, Tensor, CDouble, Int64))) Source #

CppTuple4 (Ptr (StdTuple '(Tensor, Tensor, Tensor, Tensor))) Source # 
Instance details

Defined in Torch.Internal.Unmanaged.Type.Tuple

Associated Types

type D (Ptr (StdTuple '(Tensor, Tensor, Tensor, Tensor))) Source #

CppTuple4 (Ptr (StdTuple '(Tensor, Tensor, Tensor, TensorList))) Source # 
Instance details

Defined in Torch.Internal.Unmanaged.Type.Tuple

Associated Types

type D (Ptr (StdTuple '(Tensor, Tensor, Tensor, TensorList))) Source #

CppTuple4 (Ptr (StdTuple '(Tensor, Tensor, Tensor, Tensor, Int64))) Source # 
Instance details

Defined in Torch.Internal.Unmanaged.Type.Tuple

Associated Types

type D (Ptr (StdTuple '(Tensor, Tensor, Tensor, Tensor, Int64))) Source #

CppTuple4 (Ptr (StdTuple '(Tensor, Tensor, Tensor, Tensor, Tensor))) Source # 
Instance details

Defined in Torch.Internal.Unmanaged.Type.Tuple

Associated Types

type D (Ptr (StdTuple '(Tensor, Tensor, Tensor, Tensor, Tensor))) Source #

class CppTuple4 m => CppTuple5 m where Source #

Minimal complete definition

get4

Associated Types

type E m Source #

Methods

get4 :: m -> IO (E m) Source #

makeTuple5 :: (A m, B m, C m, D m, E m) -> IO m Source #

Instances

Instances details
CppTuple5 (ForeignPtr (StdTuple '(Tensor, Tensor, Tensor, Tensor, Int64))) Source # 
Instance details

Defined in Torch.Internal.Managed.Type.Tuple

Associated Types

type E (ForeignPtr (StdTuple '(Tensor, Tensor, Tensor, Tensor, Int64))) Source #

CppTuple5 (ForeignPtr (StdTuple '(Tensor, Tensor, Tensor, Tensor, Tensor))) Source # 
Instance details

Defined in Torch.Internal.Managed.Type.Tuple

Associated Types

type E (ForeignPtr (StdTuple '(Tensor, Tensor, Tensor, Tensor, Tensor))) Source #

CppTuple5 (Ptr (StdTuple '(Tensor, Tensor, Tensor, Tensor, Int64))) Source # 
Instance details

Defined in Torch.Internal.Unmanaged.Type.Tuple

Associated Types

type E (Ptr (StdTuple '(Tensor, Tensor, Tensor, Tensor, Int64))) Source #

CppTuple5 (Ptr (StdTuple '(Tensor, Tensor, Tensor, Tensor, Tensor))) Source # 
Instance details

Defined in Torch.Internal.Unmanaged.Type.Tuple

Associated Types

type E (Ptr (StdTuple '(Tensor, Tensor, Tensor, Tensor, Tensor))) Source #

class CppTuple5 m => CppTuple6 m where Source #

Minimal complete definition

get5

Associated Types

type F m Source #

Methods

get5 :: m -> IO (F m) Source #

makeTuple6 :: (A m, B m, C m, D m, E m, F m) -> IO m Source #