argamak/format

Types

A 16-bit brain floating point type.

pub type Bfloat16 {
  Bfloat16
}

Constructors

  • Bfloat16

A 16-bit floating point type.

pub type Float16 {
  Float16
}

Constructors

  • Float16

A 32-bit floating point type, argamak’s standard for working with floats.

pub type Float32 {
  Float32
}

Constructors

  • Float32

A 64-bit floating point type.

pub type Float64 {
  Float64
}

Constructors

  • Float64

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 16-bit signed integer type.

pub type Int16 {
  Int16
}

Constructors

  • Int16

A 32-bit signed integer type, argamak’s standard for working with ints.

pub type Int32 {
  Int32
}

Constructors

  • Int32

A 64-bit signed integer type.

pub type Int64 {
  Int64
}

Constructors

  • Int64

An 8-bit signed integer type.

pub type Int8 {
  Int8
}

Constructors

  • Int8

A type for Native format representations.

pub type Native

A 16-bit unsigned integer type.

pub type Uint16 {
  Uint16
}

Constructors

  • Uint16

A 32-bit unsigned integer type.

pub type Uint32 {
  Uint32
}

Constructors

  • Uint32

A 64-bit unsigned integer type.

pub type Uint64 {
  Uint64
}

Constructors

  • Uint64

An 8-bit unsigned integer type.

pub type Uint8 {
  Uint8
}

Constructors

  • Uint8

Functions

pub fn bfloat16() -> Format(Bfloat16)

Creates a 16-bit brain floating point Format.

pub fn float16() -> Format(Float16)

Creates a 16-bit floating point Format.

pub fn float32() -> Format(Float32)

Creates a 32-bit floating point Format, argamak’s standard for working with floats.

pub fn float64() -> Format(Float64)

Creates a 64-bit floating point Format.

pub fn int16() -> Format(Int16)

Creates a 16-bit signed integer Format.

pub fn int32() -> Format(Int32)

Creates a 32-bit signed integer Format, argamak’s standard for working with ints.

pub fn int64() -> Format(Int64)

Creates a 64-bit signed integer Format.

pub fn int8() -> Format(Int8)

Creates an 8-bit signed integer Format.

pub fn to_native(format: Format(a)) -> Native

Converts a given Format into its native representation.

pub fn to_string(format: Format(a)) -> String

Converts a Format into a String.

pub fn uint16() -> Format(Uint16)

Creates a 16-bit unsigned integer Format.

pub fn uint32() -> Format(Uint32)

Creates a 32-bit unsigned integer Format.

pub fn uint64() -> Format(Uint64)

Creates a 64-bit unsigned integer Format.

pub fn uint8() -> Format(Uint8)

Creates an 8-bit unsigned integer Format.

Search Document