pub struct WeightLoweringCapability { /* private fields */ }Expand description
One exact weight lowering implemented by a backend.
Implementations§
Source§impl WeightLoweringCapability
impl WeightLoweringCapability
Sourcepub fn new(
descriptor: WeightLoweringDescriptor,
kind: WeightLoweringKind,
) -> Self
pub fn new( descriptor: WeightLoweringDescriptor, kind: WeightLoweringKind, ) -> Self
Creates one exact backend lowering mechanism.
Sourcepub const fn source(&self) -> &SourceTensorEncoding
pub const fn source(&self) -> &SourceTensorEncoding
Returns the admitted source encoding.
Sourcepub const fn executable(&self) -> LinearFormat
pub const fn executable(&self) -> LinearFormat
Returns the executable format produced by this mechanism.
Sourcepub const fn kind(&self) -> WeightLoweringKind
pub const fn kind(&self) -> WeightLoweringKind
Returns whether materialization retains or transforms the source.
Sourcepub const fn descriptor(&self) -> &WeightLoweringDescriptor
pub const fn descriptor(&self) -> &WeightLoweringDescriptor
Returns the exact geometry-bearing lowering request.
Trait Implementations§
Source§impl Clone for WeightLoweringCapability
impl Clone for WeightLoweringCapability
Source§fn clone(&self) -> WeightLoweringCapability
fn clone(&self) -> WeightLoweringCapability
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 moreSource§impl Debug for WeightLoweringCapability
impl Debug for WeightLoweringCapability
impl Eq for WeightLoweringCapability
Source§impl PartialEq for WeightLoweringCapability
impl PartialEq for WeightLoweringCapability
impl StructuralPartialEq for WeightLoweringCapability
Auto Trait Implementations§
impl Freeze for WeightLoweringCapability
impl RefUnwindSafe for WeightLoweringCapability
impl Send for WeightLoweringCapability
impl Sync for WeightLoweringCapability
impl Unpin for WeightLoweringCapability
impl UnsafeUnpin for WeightLoweringCapability
impl UnwindSafe for WeightLoweringCapability
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