Copyright | (c) Sam Stites 2017 |
---|---|
License | BSD3 |
Maintainer | sam@stites.io |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
A package of type aliases to satisfy a backpack Torch.Sig.Types signature.
Synopsis
- type CStorage = CByteStorage
- type CTensor = CByteTensor
- type CReal = CUChar
- type CAccReal = CLong
- type HsReal = Word8
- type HsAccReal = Word64
- real2acc :: HsReal -> HsAccReal
- acc2real :: HsAccReal -> HsReal
- hs2cReal :: HsReal -> CReal
- hs2cAccReal :: HsAccReal -> CAccReal
- c2hsReal :: CReal -> HsReal
- c2hsAccReal :: CAccReal -> HsAccReal
- i2hsReal :: Integral i => i -> HsReal
- type Storage = ByteStorage
- cstorage :: ByteStorage -> ForeignPtr CByteStorage
- storage :: ForeignPtr CState -> ForeignPtr CByteStorage -> ByteStorage
- storageState :: ByteStorage -> (ForeignPtr CState, ForeignPtr CByteStorage)
- storageStateRef :: ByteStorage -> ForeignPtr CState
- type Dynamic = ByteDynamic
- ctensor :: ByteDynamic -> ForeignPtr CByteTensor
- dynamic :: ForeignPtr CState -> ForeignPtr CByteTensor -> ByteDynamic
- dynamicState :: ByteDynamic -> (ForeignPtr CState, ForeignPtr CByteTensor)
- dynamicStateRef :: ByteDynamic -> ForeignPtr CState
- type Tensor = ByteTensor
- asDynamic :: ByteTensor ds -> ByteDynamic
- asStatic :: ByteDynamic -> ByteTensor ds
Documentation
type CStorage = CByteStorage Source #
type alias of CByteStorage
type CTensor = CByteTensor Source #
type alias of CByteTensor
i2hsReal :: Integral i => i -> HsReal Source #
convert an integral type to its hask-level representation
type Storage = ByteStorage Source #
type alias to ByteStorage
cstorage :: ByteStorage -> ForeignPtr CByteStorage Source #
get the C-level representation of a ByteStorage
out of byteStorageState
storage :: ForeignPtr CState -> ForeignPtr CByteStorage -> ByteStorage Source #
alias to byteStorage
storageState :: ByteStorage -> (ForeignPtr CState, ForeignPtr CByteStorage) Source #
alias to byteStorageState
storageStateRef :: ByteStorage -> ForeignPtr CState Source #
get the C-level representation of the CState
from a ByteStorage
out of byteStorageState
type Dynamic = ByteDynamic Source #
type alias to ByteDynamic
ctensor :: ByteDynamic -> ForeignPtr CByteTensor Source #
get the C-level representation of a ByteDynamic
out of byteDynamicState
dynamic :: ForeignPtr CState -> ForeignPtr CByteTensor -> ByteDynamic Source #
alias to byteDynamic
dynamicState :: ByteDynamic -> (ForeignPtr CState, ForeignPtr CByteTensor) Source #
alias to byteDynamicState
dynamicStateRef :: ByteDynamic -> ForeignPtr CState Source #
get the C-level representation of the CState
from a ByteDynamic
out of byteDynamicState
type Tensor = ByteTensor Source #
type alias to ByteTensor
asDynamic :: ByteTensor ds -> ByteDynamic Source #
type alias to byteAsDynamic
asStatic :: ByteDynamic -> ByteTensor ds Source #
type alias to byteAsStatic