hasktorch-0.2.0.0: Functional differentiable programming in Haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Torch.DType

Documentation

data DType Source #

Constructors

Bool

Bool

UInt8

Byte

Int8

Char

Int16

Short

Int32

Int

Int64

Long

Half

Half

Float

Float

Double

Double

ComplexHalf

ComplexHalf

ComplexFloat

ComplexFloat

ComplexDouble

ComplexDouble

QInt8

QInt8

QUInt8

QUInt8

QInt32

QInt32

BFloat16

BFloat16

Instances

Instances details
Read DType Source # 
Instance details

Defined in Torch.DType

Show DType Source # 
Instance details

Defined in Torch.DType

Eq DType Source # 
Instance details

Defined in Torch.DType

Methods

(==) :: DType -> DType -> Bool Source #

(/=) :: DType -> DType -> Bool Source #

Castable DType ScalarType Source # 
Instance details

Defined in Torch.DType

Methods

cast :: DType -> (ScalarType -> IO r) -> IO r Source #

uncast :: ScalarType -> (DType -> IO r) -> IO r Source #

Reifies 'Bool DType Source # 
Instance details

Defined in Torch.DType

Methods

reflect :: proxy 'Bool -> DType Source #

Reifies 'ComplexDouble DType Source # 
Instance details

Defined in Torch.DType

Methods

reflect :: proxy 'ComplexDouble -> DType Source #

Reifies 'ComplexFloat DType Source # 
Instance details

Defined in Torch.DType

Methods

reflect :: proxy 'ComplexFloat -> DType Source #

Reifies 'ComplexHalf DType Source # 
Instance details

Defined in Torch.DType

Methods

reflect :: proxy 'ComplexHalf -> DType Source #

Reifies 'Double DType Source # 
Instance details

Defined in Torch.DType

Methods

reflect :: proxy 'Double -> DType Source #

Reifies 'Float DType Source # 
Instance details

Defined in Torch.DType

Methods

reflect :: proxy 'Float -> DType Source #

Reifies 'Half DType Source # 
Instance details

Defined in Torch.DType

Methods

reflect :: proxy 'Half -> DType Source #

Reifies 'Int16 DType Source # 
Instance details

Defined in Torch.DType

Methods

reflect :: proxy 'Int16 -> DType Source #

Reifies 'Int32 DType Source # 
Instance details

Defined in Torch.DType

Methods

reflect :: proxy 'Int32 -> DType Source #

Reifies 'Int64 DType Source # 
Instance details

Defined in Torch.DType

Methods

reflect :: proxy 'Int64 -> DType Source #

Reifies 'Int8 DType Source # 
Instance details

Defined in Torch.DType

Methods

reflect :: proxy 'Int8 -> DType Source #

Reifies Int16 DType Source # 
Instance details

Defined in Torch.DType

Methods

reflect :: proxy Int16 -> DType Source #

Reifies Int32 DType Source # 
Instance details

Defined in Torch.DType

Methods

reflect :: proxy Int32 -> DType Source #

Reifies Int64 DType Source # 
Instance details

Defined in Torch.DType

Methods

reflect :: proxy Int64 -> DType Source #

Reifies Int8 DType Source # 
Instance details

Defined in Torch.DType

Methods

reflect :: proxy Int8 -> DType Source #

Reifies Word8 DType Source # 
Instance details

Defined in Torch.DType

Methods

reflect :: proxy Word8 -> DType Source #

Reifies Bool DType Source # 
Instance details

Defined in Torch.DType

Methods

reflect :: proxy Bool -> DType Source #

Reifies Double DType Source # 
Instance details

Defined in Torch.DType

Methods

reflect :: proxy Double -> DType Source #

Reifies Float DType Source # 
Instance details

Defined in Torch.DType

Methods

reflect :: proxy Float -> DType Source #

Reifies Int DType Source # 
Instance details

Defined in Torch.DType

Methods

reflect :: proxy Int -> DType Source #

(g ~ ReplaceDType f dtype' dtype, f ~ ReplaceDType g dtype dtype', Generic f, Generic g, GHasToDType dtype' dtype (Rep f) (Rep g)) => HasToDType (dtype' :: DType) (dtype :: DType) f g Source # 
Instance details

Defined in Torch.Typed.DType

Methods

toDType :: f -> g Source #

KnownDType dtype' => HasToDType (dtype' :: DType) (dtype :: DType) (Parameter device dtype shape) (Parameter device dtype' shape) Source # 
Instance details

Defined in Torch.Typed.DType

Methods

toDType :: Parameter device dtype shape -> Parameter device dtype' shape Source #

KnownDType dtype' => HasToDType (dtype' :: DType) (dtype :: DType) (Tensor device dtype shape) (Tensor device dtype' shape) Source # 
Instance details

Defined in Torch.Typed.DType

Methods

toDType :: Tensor device dtype shape -> Tensor device dtype' shape Source #

Reifies (Complex Half) DType Source # 
Instance details

Defined in Torch.DType

Methods

reflect :: proxy (Complex Half) -> DType Source #

Reifies (Complex Double) DType Source # 
Instance details

Defined in Torch.DType

Methods

reflect :: proxy (Complex Double) -> DType Source #

Reifies (Complex Float) DType Source # 
Instance details

Defined in Torch.DType

Methods

reflect :: proxy (Complex Float) -> DType Source #

Reifies Half DType Source # 
Instance details

Defined in Torch.DType

Methods

reflect :: proxy Half -> DType Source #

Orphan instances

Reifies Int16 DType Source # 
Instance details

Methods

reflect :: proxy Int16 -> DType Source #

Reifies Int32 DType Source # 
Instance details

Methods

reflect :: proxy Int32 -> DType Source #

Reifies Int64 DType Source # 
Instance details

Methods

reflect :: proxy Int64 -> DType Source #

Reifies Int8 DType Source # 
Instance details

Methods

reflect :: proxy Int8 -> DType Source #

Reifies Word8 DType Source # 
Instance details

Methods

reflect :: proxy Word8 -> DType Source #

Reifies Bool DType Source # 
Instance details

Methods

reflect :: proxy Bool -> DType Source #

Reifies Double DType Source # 
Instance details

Methods

reflect :: proxy Double -> DType Source #

Reifies Float DType Source # 
Instance details

Methods

reflect :: proxy Float -> DType Source #

Reifies Int DType Source # 
Instance details

Methods

reflect :: proxy Int -> DType Source #

Reifies (Complex Half) DType Source # 
Instance details

Methods

reflect :: proxy (Complex Half) -> DType Source #

Reifies (Complex Double) DType Source # 
Instance details

Methods

reflect :: proxy (Complex Double) -> DType Source #

Reifies (Complex Float) DType Source # 
Instance details

Methods

reflect :: proxy (Complex Float) -> DType Source #

Reifies Half DType Source # 
Instance details

Methods

reflect :: proxy Half -> DType Source #