pub enum CqError {
UnsupportedBits(u8),
BadGroup(usize),
BadCodebookLen(usize),
ShortBlob {
need: usize,
got: usize,
},
EmptyShape,
}Expand description
Errors from constructing a CqWeight.
Variants§
UnsupportedBits(u8)
Record bits is not 2, 3, 4 or TERNARY_RECORD_BITS.
BadGroup(usize)
group is zero, not a multiple of 8, not a power of two, or above
MAX_GROUP.
BadCodebookLen(usize)
The header codebook is not CODEBOOK_LEN long.
ShortBlob
The blob is shorter than the packed indices plus FP16 norms require.
EmptyShape
out_feat or in_feat is zero.
Trait Implementations§
impl Eq for CqError
impl StructuralPartialEq for CqError
Auto Trait Implementations§
impl Freeze for CqError
impl RefUnwindSafe for CqError
impl Send for CqError
impl Sync for CqError
impl Unpin for CqError
impl UnsafeUnpin for CqError
impl UnwindSafe for CqError
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