Enum tract_core::ops::matmul::mir_quant::QParamKind
source · [−]Variants
Attr(Arc<Tensor>)
FromInput(usize)
FromQType
Implementations
sourceimpl QParamKind
impl QParamKind
pub fn as_static(&self) -> Option<&Arc<Tensor>>
pub fn offset_u8_as_i8(
&self,
model: &TypedModel,
inputs: &[OutletId]
) -> TractResult<Self>
Trait Implementations
sourceimpl Clone for QParamKind
impl Clone for QParamKind
sourcefn clone(&self) -> QParamKind
fn clone(&self) -> QParamKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for QParamKind
impl Debug for QParamKind
sourceimpl From<AttrOrInput> for QParamKind
impl From<AttrOrInput> for QParamKind
sourcefn from(at: AttrOrInput) -> Self
fn from(at: AttrOrInput) -> Self
Converts to this type from the input type.
sourceimpl From<Tensor> for QParamKind
impl From<Tensor> for QParamKind
sourceimpl From<usize> for QParamKind
impl From<usize> for QParamKind
sourceimpl Hash for QParamKind
impl Hash for QParamKind
sourceimpl PartialEq<QParamKind> for QParamKind
impl PartialEq<QParamKind> for QParamKind
sourcefn eq(&self, other: &QParamKind) -> bool
fn eq(&self, other: &QParamKind) -> bool
impl Eq for QParamKind
impl StructuralEq for QParamKind
impl StructuralPartialEq for QParamKind
Auto Trait Implementations
impl RefUnwindSafe for QParamKind
impl Send for QParamKind
impl Sync for QParamKind
impl Unpin for QParamKind
impl UnwindSafe for QParamKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
sourcefn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global>where
R: Read + ?Sized,impl<W> Write for Box<W, Global>where
W: Write + ?Sized,impl<I, A> Iterator for Box<I, A>where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A>where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global>where
R: Read + ?Sized,impl<W> Write for Box<W, Global>where
W: Write + ?Sized,impl<I, A> Iterator for Box<I, A>where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A>where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
R: Read + ?Sized,impl<W> Write for Box<W, Global>where
W: Write + ?Sized,impl<I, A> Iterator for Box<I, A>where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A>where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read moresourcefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read moresourcefn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s. Read moresourcefn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s. Read more