Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- module Torch.Types.TH.Structs
- type C'THState = ()
- type C'THNNState = C'THState
- type CState = C'THState
- newtype State = State {}
- asState :: ForeignPtr C'THState -> State
- torchstate :: ForeignPtr C'THState
- type CAllocator = C'THAllocator
- data Allocator
- type CGenerator = C'THGenerator
- newtype Generator = Generator {}
- generatorToRng :: ForeignPtr CGenerator -> Generator
- newtype Seed = Seed {}
- type CDescBuff = C'THDescBuff
- type DescBuff = String
- descBuff :: Ptr CDescBuff -> IO DescBuff
- type CNNState = CState
- type CDim = CLLong
- type CNNGenerator = CGenerator
- type CInt' = CInt
- type CMaskTensor = CByteTensor
- type CIndexTensor = CLongTensor
- type CIndexStorage = CLongStorage
- type C'THIndexTensor = CLongTensor
- type C'THIntegerTensor = CLongTensor
- type MaskDynamic = ByteDynamic
- type IndexDynamic = LongDynamic
- type MaskTensor = ByteTensor
- type IndexTensor = LongTensor
- type IndexStorage = LongStorage
- type CByteTensor = C'THByteTensor
- newtype ByteDynamic = ByteDynamic {}
- byteDynamic :: ForeignPtr CState -> ForeignPtr CByteTensor -> ByteDynamic
- newtype ByteTensor (ds :: [Nat]) = ByteTensor {}
- byteAsStatic :: ByteDynamic -> ByteTensor ds
- type CByteStorage = C'THByteStorage
- newtype ByteStorage = ByteStorage {}
- byteStorage :: ForeignPtr CState -> ForeignPtr CByteStorage -> ByteStorage
- type CCharTensor = C'THCharTensor
- newtype CharDynamic = CharDynamic {}
- charDynamic :: ForeignPtr CState -> ForeignPtr CCharTensor -> CharDynamic
- newtype CharTensor (ds :: [Nat]) = CharTensor {}
- charAsStatic :: CharDynamic -> CharTensor ds
- type CCharStorage = C'THCharStorage
- newtype CharStorage = CharStorage {}
- charStorage :: ForeignPtr CState -> ForeignPtr CCharStorage -> CharStorage
- type CLongTensor = C'THLongTensor
- newtype LongDynamic = LongDynamic {}
- longDynamic :: ForeignPtr CState -> ForeignPtr CLongTensor -> LongDynamic
- newtype LongTensor (ds :: [Nat]) = LongTensor {}
- longAsStatic :: LongDynamic -> LongTensor ds
- type CLongStorage = C'THLongStorage
- newtype LongStorage = LongStorage {}
- longStorage :: ForeignPtr CState -> ForeignPtr CLongStorage -> LongStorage
- type CShortTensor = C'THShortTensor
- newtype ShortDynamic = ShortDynamic {}
- shortDynamic :: ForeignPtr CState -> ForeignPtr CShortTensor -> ShortDynamic
- newtype ShortTensor (ds :: [Nat]) = ShortTensor {}
- shortAsStatic :: ShortDynamic -> ShortTensor ds
- type CShortStorage = C'THShortStorage
- newtype ShortStorage = ShortStorage {}
- shortStorage :: ForeignPtr CState -> ForeignPtr CShortStorage -> ShortStorage
- type CIntTensor = C'THIntTensor
- newtype IntDynamic = IntDynamic {}
- intDynamic :: ForeignPtr CState -> ForeignPtr CIntTensor -> IntDynamic
- newtype IntTensor (ds :: [Nat]) = IntTensor {}
- intAsStatic :: IntDynamic -> IntTensor ds
- type CIntStorage = C'THIntStorage
- newtype IntStorage = IntStorage {}
- intStorage :: ForeignPtr CState -> ForeignPtr CIntStorage -> IntStorage
- type CFloatTensor = C'THFloatTensor
- newtype FloatDynamic = FloatDynamic {}
- floatDynamic :: ForeignPtr CState -> ForeignPtr CFloatTensor -> FloatDynamic
- newtype FloatTensor (ds :: [Nat]) = FloatTensor {}
- floatAsStatic :: FloatDynamic -> FloatTensor ds
- type CFloatStorage = C'THFloatStorage
- newtype FloatStorage = FloatStorage {}
- floatStorage :: ForeignPtr CState -> ForeignPtr CFloatStorage -> FloatStorage
- type CDoubleTensor = C'THDoubleTensor
- newtype DoubleDynamic = DoubleDynamic {}
- doubleDynamic :: ForeignPtr CState -> ForeignPtr CDoubleTensor -> DoubleDynamic
- newtype DoubleTensor (ds :: [Nat]) = DoubleTensor {}
- doubleAsStatic :: DoubleDynamic -> DoubleTensor ds
- type CDoubleStorage = C'THDoubleStorage
- newtype DoubleStorage = DoubleStorage {}
- doubleStorage :: ForeignPtr CState -> ForeignPtr CDoubleStorage -> DoubleStorage
- type C'THHalfTensor = ()
- type C'THHalfStorage = ()
- type C'THFile = ()
- type C'THHalf = Ptr ()
Documentation
module Torch.Types.TH.Structs
type C'THNNState = C'THState Source #
torchstate :: ForeignPtr C'THState Source #
torchstate
is just a foreign pointer wrapping around a null pointer with a noop
finalizer. This is to keep the API unified with THC.
type CAllocator = C'THAllocator Source #
type CGenerator Source #
= C'THGenerator | Backpack type alias for TH's CPU generator |
Representation of a CPU-bound random number generator
Representation of a CPU-bound random seed
type CDescBuff = C'THDescBuff Source #
type CNNGenerator = CGenerator Source #
type CMaskTensor = CByteTensor Source #
type CIndexTensor = CLongTensor Source #
type CIndexStorage = CLongStorage Source #
type C'THIndexTensor = CLongTensor Source #
type C'THIntegerTensor = CLongTensor Source #
type MaskDynamic = ByteDynamic Source #
type IndexDynamic = LongDynamic Source #
type MaskTensor = ByteTensor Source #
type IndexTensor = LongTensor Source #
type IndexStorage = LongStorage Source #
Unsigned types
type CByteTensor = C'THByteTensor Source #
A C-level representation of the Byte Tensor type. These need to be wrapped in Ptr
newtype ByteDynamic Source #
A memory-managed representation of TH's Byte Tensor type. These carry a reference to the CState
Instances
Eq ByteDynamic Source # | |
Defined in Torch.Types.TH (==) :: ByteDynamic -> ByteDynamic -> Bool # (/=) :: ByteDynamic -> ByteDynamic -> Bool # |
byteDynamic :: ForeignPtr CState -> ForeignPtr CByteTensor -> ByteDynamic Source #
smart constructor for ByteDynamic
.
newtype ByteTensor (ds :: [Nat]) Source #
A newtype wrapper around ByteDynamic
which imbues a ByteDynamic
with static tensor dimensions.
Instances
Eq (ByteTensor ds) Source # | |
Defined in Torch.Types.TH (==) :: ByteTensor ds -> ByteTensor ds -> Bool # (/=) :: ByteTensor ds -> ByteTensor ds -> Bool # |
byteAsStatic :: ByteDynamic -> ByteTensor ds Source #
smart constructor for ByteTensor
.
type CByteStorage = C'THByteStorage Source #
newtype ByteStorage Source #
Instances
Eq ByteStorage Source # | |
Defined in Torch.Types.TH (==) :: ByteStorage -> ByteStorage -> Bool # (/=) :: ByteStorage -> ByteStorage -> Bool # |
type CCharTensor = C'THCharTensor Source #
newtype CharDynamic Source #
Instances
Eq CharDynamic Source # | |
Defined in Torch.Types.TH (==) :: CharDynamic -> CharDynamic -> Bool # (/=) :: CharDynamic -> CharDynamic -> Bool # |
newtype CharTensor (ds :: [Nat]) Source #
Instances
Eq (CharTensor ds) Source # | |
Defined in Torch.Types.TH (==) :: CharTensor ds -> CharTensor ds -> Bool # (/=) :: CharTensor ds -> CharTensor ds -> Bool # |
charAsStatic :: CharDynamic -> CharTensor ds Source #
type CCharStorage = C'THCharStorage Source #
newtype CharStorage Source #
Instances
Eq CharStorage Source # | |
Defined in Torch.Types.TH (==) :: CharStorage -> CharStorage -> Bool # (/=) :: CharStorage -> CharStorage -> Bool # |
Signed types
type CLongTensor = C'THLongTensor Source #
newtype LongDynamic Source #
Instances
Eq LongDynamic Source # | |
Defined in Torch.Types.TH (==) :: LongDynamic -> LongDynamic -> Bool # (/=) :: LongDynamic -> LongDynamic -> Bool # |
newtype LongTensor (ds :: [Nat]) Source #
Instances
Eq (LongTensor ds) Source # | |
Defined in Torch.Types.TH (==) :: LongTensor ds -> LongTensor ds -> Bool # (/=) :: LongTensor ds -> LongTensor ds -> Bool # |
longAsStatic :: LongDynamic -> LongTensor ds Source #
type CLongStorage = C'THLongStorage Source #
newtype LongStorage Source #
Instances
Eq LongStorage Source # | |
Defined in Torch.Types.TH (==) :: LongStorage -> LongStorage -> Bool # (/=) :: LongStorage -> LongStorage -> Bool # |
type CShortTensor = C'THShortTensor Source #
newtype ShortDynamic Source #
Instances
Eq ShortDynamic Source # | |
Defined in Torch.Types.TH (==) :: ShortDynamic -> ShortDynamic -> Bool # (/=) :: ShortDynamic -> ShortDynamic -> Bool # |
newtype ShortTensor (ds :: [Nat]) Source #
Instances
Eq (ShortTensor ds) Source # | |
Defined in Torch.Types.TH (==) :: ShortTensor ds -> ShortTensor ds -> Bool # (/=) :: ShortTensor ds -> ShortTensor ds -> Bool # |
shortAsStatic :: ShortDynamic -> ShortTensor ds Source #
type CShortStorage = C'THShortStorage Source #
newtype ShortStorage Source #
Instances
Eq ShortStorage Source # | |
Defined in Torch.Types.TH (==) :: ShortStorage -> ShortStorage -> Bool # (/=) :: ShortStorage -> ShortStorage -> Bool # |
type CIntTensor = C'THIntTensor Source #
newtype IntDynamic Source #
Instances
Eq IntDynamic Source # | |
Defined in Torch.Types.TH (==) :: IntDynamic -> IntDynamic -> Bool # (/=) :: IntDynamic -> IntDynamic -> Bool # |
intDynamic :: ForeignPtr CState -> ForeignPtr CIntTensor -> IntDynamic Source #
intAsStatic :: IntDynamic -> IntTensor ds Source #
type CIntStorage = C'THIntStorage Source #
newtype IntStorage Source #
Instances
Eq IntStorage Source # | |
Defined in Torch.Types.TH (==) :: IntStorage -> IntStorage -> Bool # (/=) :: IntStorage -> IntStorage -> Bool # |
intStorage :: ForeignPtr CState -> ForeignPtr CIntStorage -> IntStorage Source #
Floating types
type CFloatTensor = C'THFloatTensor Source #
newtype FloatDynamic Source #
Instances
Eq FloatDynamic Source # | |
Defined in Torch.Types.TH (==) :: FloatDynamic -> FloatDynamic -> Bool # (/=) :: FloatDynamic -> FloatDynamic -> Bool # |
newtype FloatTensor (ds :: [Nat]) Source #
Instances
Eq (FloatTensor ds) Source # | |
Defined in Torch.Types.TH (==) :: FloatTensor ds -> FloatTensor ds -> Bool # (/=) :: FloatTensor ds -> FloatTensor ds -> Bool # |
floatAsStatic :: FloatDynamic -> FloatTensor ds Source #
type CFloatStorage = C'THFloatStorage Source #
newtype FloatStorage Source #
Instances
Eq FloatStorage Source # | |
Defined in Torch.Types.TH (==) :: FloatStorage -> FloatStorage -> Bool # (/=) :: FloatStorage -> FloatStorage -> Bool # |
type CDoubleTensor = C'THDoubleTensor Source #
newtype DoubleDynamic Source #
Instances
Eq DoubleDynamic Source # | |
Defined in Torch.Types.TH (==) :: DoubleDynamic -> DoubleDynamic -> Bool # (/=) :: DoubleDynamic -> DoubleDynamic -> Bool # |
newtype DoubleTensor (ds :: [Nat]) Source #
Instances
Eq (DoubleTensor ds) Source # | |
Defined in Torch.Types.TH (==) :: DoubleTensor ds -> DoubleTensor ds -> Bool # (/=) :: DoubleTensor ds -> DoubleTensor ds -> Bool # |
doubleAsStatic :: DoubleDynamic -> DoubleTensor ds Source #
type CDoubleStorage = C'THDoubleStorage Source #
newtype DoubleStorage Source #
Instances
Eq DoubleStorage Source # | |
Defined in Torch.Types.TH (==) :: DoubleStorage -> DoubleStorage -> Bool # (/=) :: DoubleStorage -> DoubleStorage -> Bool # |
type C'THHalfTensor = () Source #
type C'THHalfStorage = () Source #