Skip to main content

Element

type Element interface {
~float32 | ~float64 | ~int32 | ~int64
}

Element is the slice element set TensorOf accepts directly; the dtype is derived from the element type. Dtypes this language has no native element for enter through their bit carriers (Api.Float16FromBits / Api.BFloat16FromBits) or raw bytes (Api.FromBytes).