argamak/format
Types
A 16-bit brain floating point type.
pub type Bfloat16 {
Bfloat16
}
Constructors
-
Bfloat16
A 32-bit floating point type, argamak’s standard for working with floats.
pub type Float32 {
Float32
}
Constructors
-
Float32
Numerical formats for tensors.
Each Format uses a set number of bits to represent every Float-like or
Int-like value.
pub opaque type Format(a)
A 32-bit signed integer type, argamak’s standard for working with ints.
pub type Int32 {
Int32
}
Constructors
-
Int32
Functions
pub fn float32() -> Format(Float32)
Creates a 32-bit floating point Format, argamak’s standard for working
with floats.
pub fn int32() -> Format(Int32)
Creates a 32-bit signed integer Format, argamak’s standard for working
with ints.
pub fn to_native(format: Format(a)) -> Native
Converts a given Format into its native representation.