Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data DType
- type family BoolSym0 :: DType where ...
- type family UInt8Sym0 :: DType where ...
- type family Int8Sym0 :: DType where ...
- type family Int16Sym0 :: DType where ...
- type family Int32Sym0 :: DType where ...
- type family Int64Sym0 :: DType where ...
- type family HalfSym0 :: DType where ...
- type family FloatSym0 :: DType where ...
- type family DoubleSym0 :: DType where ...
- type family ComplexHalfSym0 :: DType where ...
- type family ComplexFloatSym0 :: DType where ...
- type family ComplexDoubleSym0 :: DType where ...
- type family QInt8Sym0 :: DType where ...
- type family QUInt8Sym0 :: DType where ...
- type family QInt32Sym0 :: DType where ...
- type family BFloat16Sym0 :: DType where ...
- data SDType :: DType -> Type where
- SBool :: SDType ('Bool :: DType)
- SUInt8 :: SDType ('UInt8 :: DType)
- SInt8 :: SDType ('Int8 :: DType)
- SInt16 :: SDType ('Int16 :: DType)
- SInt32 :: SDType ('Int32 :: DType)
- SInt64 :: SDType ('Int64 :: DType)
- SHalf :: SDType ('Half :: DType)
- SFloat :: SDType ('Float :: DType)
- SDouble :: SDType ('Double :: DType)
- SComplexHalf :: SDType ('ComplexHalf :: DType)
- SComplexFloat :: SDType ('ComplexFloat :: DType)
- SComplexDouble :: SDType ('ComplexDouble :: DType)
- SQInt8 :: SDType ('QInt8 :: DType)
- SQUInt8 :: SDType ('QUInt8 :: DType)
- SQInt32 :: SDType ('QInt32 :: DType)
- SBFloat16 :: SDType ('BFloat16 :: DType)
- class KnownDType (dType :: DType) where
- data DataType (dType :: Type) where
- UncheckedDataType :: forall dType. DataType dType
- DataType :: forall dType. dType -> DataType dType
- data SDataType (dataType :: DataType DType) where
- SUncheckedDataType :: DType -> SDataType 'UncheckedDataType
- SDataType :: forall dType. SDType dType -> SDataType ('DataType dType)
- class KnownDataType (dataType :: DataType DType) where
- type family GetDataTypes f where ...
Documentation
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
type family DoubleSym0 :: DType where ... Source #
DoubleSym0 = 'Double |
type family ComplexHalfSym0 :: DType where ... Source #
type family ComplexFloatSym0 :: DType where ... Source #
type family ComplexDoubleSym0 :: DType where ... Source #
type family QUInt8Sym0 :: DType where ... Source #
QUInt8Sym0 = 'QUInt8 |
type family QInt32Sym0 :: DType where ... Source #
QInt32Sym0 = 'QInt32 |
type family BFloat16Sym0 :: DType where ... Source #
data SDType :: DType -> Type where Source #
SBool :: SDType ('Bool :: DType) | |
SUInt8 :: SDType ('UInt8 :: DType) | |
SInt8 :: SDType ('Int8 :: DType) | |
SInt16 :: SDType ('Int16 :: DType) | |
SInt32 :: SDType ('Int32 :: DType) | |
SInt64 :: SDType ('Int64 :: DType) | |
SHalf :: SDType ('Half :: DType) | |
SFloat :: SDType ('Float :: DType) | |
SDouble :: SDType ('Double :: DType) | |
SComplexHalf :: SDType ('ComplexHalf :: DType) | |
SComplexFloat :: SDType ('ComplexFloat :: DType) | |
SComplexDouble :: SDType ('ComplexDouble :: DType) | |
SQInt8 :: SDType ('QInt8 :: DType) | |
SQUInt8 :: SDType ('QUInt8 :: DType) | |
SQInt32 :: SDType ('QInt32 :: DType) | |
SBFloat16 :: SDType ('BFloat16 :: DType) |
class KnownDType (dType :: DType) where Source #
Instances
KnownDType 'Bool Source # | |
Defined in Torch.GraduallyTyped.DType | |
KnownDType 'Double Source # | |
Defined in Torch.GraduallyTyped.DType | |
KnownDType 'Float Source # | |
Defined in Torch.GraduallyTyped.DType | |
KnownDType 'Half Source # | |
Defined in Torch.GraduallyTyped.DType | |
KnownDType 'Int16 Source # | |
Defined in Torch.GraduallyTyped.DType | |
KnownDType 'Int32 Source # | |
Defined in Torch.GraduallyTyped.DType | |
KnownDType 'Int64 Source # | |
Defined in Torch.GraduallyTyped.DType | |
KnownDType 'Int8 Source # | |
Defined in Torch.GraduallyTyped.DType | |
KnownDType 'UInt8 Source # | |
Defined in Torch.GraduallyTyped.DType |
data DataType (dType :: Type) where Source #
Data type to represent whether or not the tensor data type is checked, that is, known to the compiler.
UncheckedDataType :: forall dType. DataType dType | The tensor data type is unknown to the compiler. |
DataType :: forall dType. dType -> DataType dType | The tensor data type is known to the compiler. |
data SDataType (dataType :: DataType DType) where Source #
SUncheckedDataType :: DType -> SDataType 'UncheckedDataType | |
SDataType :: forall dType. SDType dType -> SDataType ('DataType dType) |
class KnownDataType (dataType :: DataType DType) where Source #
Instances
KnownDataType ('UncheckedDataType :: DataType DType) Source # | |
Defined in Torch.GraduallyTyped.DType | |
KnownDType dType => KnownDataType ('DataType dType) Source # | |
Defined in Torch.GraduallyTyped.DType |
type family GetDataTypes f where ... Source #
GetDataTypes (a :: DataType DType) = '[a] | |
GetDataTypes (f g) = Concat (GetDataTypes f) (GetDataTypes g) | |
GetDataTypes _ = '[] |