pub enum BiasElementKind {
F32,
I32,
}Expand description
Runtime tag for a BiasElement.
Intentionally NOT #[non_exhaustive] — the int-GEMM bias
dispatchers exhaustively match (T::KIND, BT::KIND) to pick
per-bias-dtype kernel SKUs. Adding a new bias dtype (e.g. f16
for quantized-GEMM) should surface as a build break across every
match site so each can wire or reject. New variants are a
deliberate breaking-change event.
Variants§
F32
IEEE 754 binary32 bias broadcast. The conservative default — matches the float-GEMM bias convention.
I32
Signed 32-bit integer bias broadcast. Matches the convention TensorRT uses for int8 inference (per-channel int32 bias).
Trait Implementations§
Source§impl Clone for BiasElementKind
impl Clone for BiasElementKind
Source§fn clone(&self) -> BiasElementKind
fn clone(&self) -> BiasElementKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BiasElementKind
Source§impl Debug for BiasElementKind
impl Debug for BiasElementKind
impl Eq for BiasElementKind
Source§impl Hash for BiasElementKind
impl Hash for BiasElementKind
Source§impl PartialEq for BiasElementKind
impl PartialEq for BiasElementKind
Source§fn eq(&self, other: &BiasElementKind) -> bool
fn eq(&self, other: &BiasElementKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BiasElementKind
Auto Trait Implementations§
impl Freeze for BiasElementKind
impl RefUnwindSafe for BiasElementKind
impl Send for BiasElementKind
impl Sync for BiasElementKind
impl Unpin for BiasElementKind
impl UnsafeUnpin for BiasElementKind
impl UnwindSafe for BiasElementKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more