pub struct ReferenceShim;Expand description
The shim that allows everything: the meaning alone, for graph-level tests. It answers no class by name — every class is one it links whole, whatever the registry adds.
Trait Implementations§
Source§impl Clone for ReferenceShim
impl Clone for ReferenceShim
Source§fn clone(&self) -> ReferenceShim
fn clone(&self) -> ReferenceShim
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReferenceShim
impl Debug for ReferenceShim
Source§impl Default for ReferenceShim
impl Default for ReferenceShim
Source§fn default() -> ReferenceShim
fn default() -> ReferenceShim
Returns the “default value” for a type. Read more
Source§impl Shim for ReferenceShim
impl Shim for ReferenceShim
Source§fn name(&self) -> String
fn name(&self) -> String
The chip and the configuration it answers for, e.g.
cuda-lane:rtx3060:TwoPassInt8.Source§fn supports(&self, _: ClassId) -> Support
fn supports(&self, _: ClassId) -> Support
What the chip’s link does with
class. Every chip answers by a match over every class with no catch-all arm,
so a class added to the registry fails the build until each chip answers it.Source§fn fits(&self, _: &Op, _: &TensorGraph) -> Result<(), String>
fn fits(&self, _: &Op, _: &TensorGraph) -> Result<(), String>
Whether the chip’s link builds
op as it stands — its shapes, its accesses, its destination: Ok, or why not.Source§fn numerics(&self) -> Option<Contract>
fn numerics(&self) -> Option<Contract>
The numerics contract of the knob point the chip answers for, or
None while the chip has not declared it.Source§fn activation(
&self,
_consumer: &Op,
_operand: usize,
_g: &TensorGraph,
) -> Option<QuantFormat>
fn activation( &self, _consumer: &Op, _operand: usize, _g: &TensorGraph, ) -> Option<QuantFormat>
The quantized form
consumer reads its operand operand in, or None for one it reads as its values.impl Copy for ReferenceShim
Auto Trait Implementations§
impl Freeze for ReferenceShim
impl RefUnwindSafe for ReferenceShim
impl Send for ReferenceShim
impl Sync for ReferenceShim
impl Unpin for ReferenceShim
impl UnsafeUnpin for ReferenceShim
impl UnwindSafe for ReferenceShim
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn 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.§fn 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.